From d3630f81747157198316fef874d59f9f120969d4 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 10 Aug 2010 14:47:41 +0100 Subject: kernel/package.bbclass: Handle kernel module stripping centrally Signed-off-by: Richard Purdie --- meta/classes/module_strip.bbclass | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'meta/classes/module_strip.bbclass') diff --git a/meta/classes/module_strip.bbclass b/meta/classes/module_strip.bbclass index 7636f1f403..e69de29bb2 100644 --- a/meta/classes/module_strip.bbclass +++ b/meta/classes/module_strip.bbclass @@ -1,22 +0,0 @@ -#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 - for module in $modules ; do - if ! [ -d "$module" ] ; then - ${STRIP} -v -g $module - fi - done -# NM="${STAGING_BINDIR_NATIVE}/${HOST_PREFIX}nm" OBJCOPY="${STAGING_BINDIR_NATIVE}/${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-54-g00ecf