The patch number 10510 was added via Mauro Carvalho Chehab <mche...@redhat.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Mauro Carvalho Chehab  <mche...@redhat.com>
build system: preserve debug info inside /v4l dir


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 <mche...@redhat.com>


---

 v4l/scripts/make_makefile.pl |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -r e0f2b5e6929d -r 6ed5d5452f23 v4l/scripts/make_makefile.pl
--- a/v4l/scripts/make_makefile.pl      Mon Feb 09 06:33:54 2009 -0200
+++ b/v4l/scripts/make_makefile.pl      Mon Feb 09 13:03:46 2009 -0200
@@ -192,8 +192,6 @@ open_makefile('../linux/drivers/media/Ma
 
 # Creating Install rule
 print OUT "media-install::\n";
-print OUT "\...@echo \"Stripping debug info from files\"\n";
-print OUT "\...@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 "\...@echo\n";
 print OUT "\t/sbin/depmod -a \$(KERNELRELEASE) \$(if \$(DESTDIR),-b 
\$(DESTDIR))\n\n";


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/6ed5d5452f23775ca257738bcfac8cb7e5d31e0c

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to