diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-10 14:47:41 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-10 14:47:41 +0100 |
commit | d3630f81747157198316fef874d59f9f120969d4 (patch) | |
tree | fa4428e0ff8a726e670775a6cc242b02310b2f32 /meta/classes/module_strip.bbclass | |
parent | 708db1ef52a49098a0ab7972211b9beac74d7654 (diff) | |
download | poky-d3630f81747157198316fef874d59f9f120969d4.tar.gz |
kernel/package.bbclass: Handle kernel module stripping centrally
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/module_strip.bbclass')
-rw-r--r-- | meta/classes/module_strip.bbclass | 22 |
1 files changed, 0 insertions, 22 deletions
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 @@ | |||
1 | #DEPENDS_append = " module-strip" | ||
2 | |||
3 | do_strip_modules () { | ||
4 | for p in ${PACKAGES}; do | ||
5 | if test -e ${WORKDIR}/install/$p/lib/modules; then | ||
6 | modules="`find ${WORKDIR}/install/$p/lib/modules -name \*${KERNEL_OBJECT_SUFFIX}`" | ||
7 | if [ -n "$modules" ]; then | ||
8 | for module in $modules ; do | ||
9 | if ! [ -d "$module" ] ; then | ||
10 | ${STRIP} -v -g $module | ||
11 | fi | ||
12 | done | ||
13 | # NM="${STAGING_BINDIR_NATIVE}/${HOST_PREFIX}nm" OBJCOPY="${STAGING_BINDIR_NATIVE}/${HOST_PREFIX}objcopy" strip_module $modules | ||
14 | fi | ||
15 | fi | ||
16 | done | ||
17 | } | ||
18 | |||
19 | python do_package_append () { | ||
20 | if (bb.data.getVar('INHIBIT_PACKAGE_STRIP', d, 1) != '1'): | ||
21 | bb.build.exec_func('do_strip_modules', d) | ||
22 | } | ||