diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-02-09 13:03:46 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-02-09 13:03:46 -0200 |
commit | cc23fff2c44bd530f6d0f02eb246ee51a30101a7 (patch) | |
tree | b4ae3198807aee0ea29fd74a4fd96137c1ff2c03 /v4l/scripts/make_makefile.pl | |
parent | 3b9a242cbd6a8f91f6a3f13baf4519353d48372a (diff) | |
download | mediapointer-dvb-s2-cc23fff2c44bd530f6d0f02eb246ee51a30101a7.tar.gz mediapointer-dvb-s2-cc23fff2c44bd530f6d0f02eb246ee51a30101a7.tar.bz2 |
build system: preserve debug info inside /v4l dir
From: Mauro Carvalho Chehab <mchehab@redhat.com>
In order to make easier for debug, preserve debug info inside the /v4l
dir. Only the /lib/modules/`uname -r`/drivers/<foo> will have their
symbols stripped.
This allows using gcc to determine where a code broke, within the asm
code. This may also help in the future for its usage with systemtaps.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l/scripts/make_makefile.pl')
-rwxr-xr-x | v4l/scripts/make_makefile.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/v4l/scripts/make_makefile.pl b/v4l/scripts/make_makefile.pl index 43c563d47..35ab7dddf 100755 --- a/v4l/scripts/make_makefile.pl +++ b/v4l/scripts/make_makefile.pl @@ -192,8 +192,6 @@ open_makefile('../linux/drivers/media/Makefile'); # Creating Install rule print OUT "media-install::\n"; -print OUT "\t\@echo \"Stripping debug info from files\"\n"; -print OUT "\t\@strip --strip-debug \$(inst-m)\n\n"; removeobsolete(); removeubuntu(); @@ -210,7 +208,9 @@ while (my ($dir, $files) = each %instdir) { print OUT "if [ \$\$n -eq 4 ]; then echo; echo -n \"\t\t\"; n=1; fi; "; print OUT "echo -n \"\$\$i \"; "; print OUT "install -m 644 -c \$\$i \$(DESTDIR)\$(KDIR26)/$dir; fi; done; "; - print OUT "if [ \$\$n -ne 0 ]; then echo; fi;\n\n"; + print OUT "if [ \$\$n -ne 0 ]; then echo; "; + print OUT "strip --strip-debug \$(DESTDIR)\$(KDIR26)/$dir/*.ko; "; + print OUT "fi;\n\n"; } print OUT "\t@echo\n"; print OUT "\t/sbin/depmod -a \$(KERNELRELEASE) \$(if \$(DESTDIR),-b \$(DESTDIR))\n\n"; |