summaryrefslogtreecommitdiff
path: root/classes
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
parent6a9bafc4b388310af2ec0d244df8cd52252e6f61 (diff)
module_strip.bbclass: filter out directories to stop recent binutils from barfing
package.bbclass: likewise
Diffstat (limited to 'classes')
-rw-r--r--classes/module_strip.bbclass6
-rw-r--r--classes/package.bbclass2
2 files changed, 6 insertions, 2 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
diff --git a/classes/package.bbclass b/classes/package.bbclass
index 27d5a3a685..7d3068852f 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -275,7 +275,7 @@ python populate_packages () {
for root, dirs, files in os.walk(dvar):
for f in files:
file = os.path.join(root, f)
- if not os.path.islink(file) and isexec(file):
+ if not os.path.islink(file) and not os.path.isdir(file) and isexec(file):
stripfunc += "\trunstrip %s || st=1\n" % (file)
if not stripfunc == "":
from bb import build