diff options
| author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
| commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
| tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/classes/module_strip.bbclass | |
| download | poky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz | |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/module_strip.bbclass')
| -rw-r--r-- | openembedded/classes/module_strip.bbclass | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/openembedded/classes/module_strip.bbclass b/openembedded/classes/module_strip.bbclass new file mode 100644 index 0000000000..116e8b902f --- /dev/null +++ b/openembedded/classes/module_strip.bbclass | |||
| @@ -0,0 +1,18 @@ | |||
| 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 | ${STRIP} -v -g $modules | ||
| 9 | # NM="${CROSS_DIR}/bin/${HOST_PREFIX}nm" OBJCOPY="${CROSS_DIR}/bin/${HOST_PREFIX}objcopy" strip_module $modules | ||
| 10 | fi | ||
| 11 | fi | ||
| 12 | done | ||
| 13 | } | ||
| 14 | |||
| 15 | python do_package_append () { | ||
| 16 | if (bb.data.getVar('INHIBIT_PACKAGE_STRIP', d, 1) != '1'): | ||
| 17 | bb.build.exec_func('do_strip_modules', d) | ||
| 18 | } | ||
