aboutsummaryrefslogtreecommitdiffstats
path: root/classes/module_strip.bbclass
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-10-18 21:37:27 +0000
committerKoen Kooi <koen@openembedded.org>2006-10-18 21:37:27 +0000
commitbc37acd5c46fb97318648d2e58f88798b9a2e0cb (patch)
tree75fa677bf4e07a8e9a5022a484d6cab6f1279851 /classes/module_strip.bbclass
parent6a9bafc4b388310af2ec0d244df8cd52252e6f61 (diff)
downloadopenembedded-bc37acd5c46fb97318648d2e58f88798b9a2e0cb.tar.gz
openembedded-bc37acd5c46fb97318648d2e58f88798b9a2e0cb.tar.bz2
openembedded-bc37acd5c46fb97318648d2e58f88798b9a2e0cb.zip
module_strip.bbclass: filter out directories to stop recent binutils from barfing
package.bbclass: likewise
Diffstat (limited to 'classes/module_strip.bbclass')
-rw-r--r--classes/module_strip.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/module_strip.bbclass b/classes/module_strip.bbclass
index 116e8b902f..63e6569799 100644
--- a/classes/module_strip.bbclass
+++ b/classes/module_strip.bbclass
@@ -5,7 +5,11 @@ do_strip_modules () {
if test -e ${WORKDIR}/install/$p/lib/modules; then
modules="`find ${WORKDIR}/install/$p/lib/modules -name \*${KERNEL_OBJECT_SUFFIX}`"
if [ -n "$modules" ]; then
- ${STRIP} -v -g $modules
+ for module in $modules ; do
+ if ! [ -d "$module" ] ; then
+ ${STRIP} -v -g $module
+ fi
+ done
# NM="${CROSS_DIR}/bin/${HOST_PREFIX}nm" OBJCOPY="${CROSS_DIR}/bin/${HOST_PREFIX}objcopy" strip_module $modules
fi
fi