From a780643c4b6aa11e1a36965a69df7116477c7b4c Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 7 Dec 2004 22:05:47 +0000 Subject: Merge oe-devel@oe-devel.bkbits.net:packages.bb into handhelds.org:/home/kergoth/code/packages.bb 2004/12/07 04:58:25-06:00 ti.com!kergoth More updates per the core rename. 2004/12/07 04:46:51-06:00 ti.com!kergoth Update soundtracker per the core rename. 2004/12/07 04:44:14-06:00 ti.com!kergoth Merge 2004/12/07 04:42:38-06:00 ti.com!kergoth Updates per the recent rename of the oe core from 'oe' to 'bitbake'. BKrev: 41b6293b91LRHSxMOt6WnrZVAdLbFw --- classes/module_strip.bbclass | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 classes/module_strip.bbclass (limited to 'classes/module_strip.bbclass') diff --git a/classes/module_strip.bbclass b/classes/module_strip.bbclass new file mode 100644 index 0000000000..e69de29bb2 -- cgit v1.2.3 From 1b21711eee80c49e628967c011207c13daed6b47 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Wed, 6 Apr 2005 12:11:57 +0000 Subject: use the correct kernel object suffix when looking for modules to strip. patch courtesy Peter Urbanec BKrev: 4253d20dRKweF8BdhxWSkLxATPQiVA --- classes/module_strip.bbclass | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'classes/module_strip.bbclass') 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) +} -- cgit v1.2.3