Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-08-29 16:07:59 (GMT)
committer Daniel Drake <dsd@laptop.org>2012-08-29 16:07:59 (GMT)
commitf3f267e8f902ac31ed42ff0b76c090033274c822 (patch)
treeea2abc5d747d5505689b0c33c58d673ef548ecf3
parent32d7015ac1b6287f3e1dae4b84c056e625643edd (diff)
base: don't strip kernel modules
It looks like the strip invocation used here strips all symbols, even when you ask for it to strip a specific section. Exclude kernel modules from this so that they can still be loaded. Hopefully this will be the last oddity caused by minidebuginfo-stripping. If it causes much more trouble we should consider not doing this strip at all.
-rw-r--r--modules/base/kspost.50.stripdebug.nochroot.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/kspost.50.stripdebug.nochroot.inc b/modules/base/kspost.50.stripdebug.nochroot.inc
index 11b6b3a..cc1c36f 100644
--- a/modules/base/kspost.50.stripdebug.nochroot.inc
+++ b/modules/base/kspost.50.stripdebug.nochroot.inc
@@ -1,4 +1,4 @@
-find $INSTALL_ROOT/usr/{sbin,bin,lib,libexec} -xdev -type f | while read file; do
+find $INSTALL_ROOT/usr/{sbin,bin,lib,libexec} -xdev -type f -and ! -name '*.ko' | while read file; do
ftype=$(file -b "$file")
[ "${ftype:0:4}" = "ELF " ] && strip -R .gnu_debugdata "$file" || :
done