summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2005-04-06 12:11:57 +0000
committerMichael Lauer <mickey@vanille-media.de>2005-04-06 12:11:57 +0000
commit1b21711eee80c49e628967c011207c13daed6b47 (patch)
tree456aabfc09613af47f15ebc8668153e5e2157c7a /classes
parent3ed647374fc89ecfd8dc665a41f059fc89b04cfe (diff)
use the correct kernel object suffix when looking for
modules to strip. patch courtesy Peter Urbanec BKrev: 4253d20dRKweF8BdhxWSkLxATPQiVA
Diffstat (limited to 'classes')
-rw-r--r--classes/module_strip.bbclass18
1 files changed, 18 insertions, 0 deletions
diff --git a/classes/module_strip.bbclass b/classes/module_strip.bbclass
index e69de29bb2..116e8b902f 100644
--- a/classes/module_strip.bbclass
+++ b/classes/module_strip.bbclass
@@ -0,0 +1,18 @@
+#DEPENDS_append = " module-strip"
+
+do_strip_modules () {
+ for p in ${PACKAGES}; do
+ 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
+# NM="${CROSS_DIR}/bin/${HOST_PREFIX}nm" OBJCOPY="${CROSS_DIR}/bin/${HOST_PREFIX}objcopy" strip_module $modules
+ fi
+ fi
+ done
+}
+
+python do_package_append () {
+ if (bb.data.getVar('INHIBIT_PACKAGE_STRIP', d, 1) != '1'):
+ bb.build.exec_func('do_strip_modules', d)
+}