diff options
author | Chris Larson <clarson@kergoth.com> | 2004-11-17 05:22:31 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-11-17 05:22:31 +0000 |
commit | 5a2fc4a6c8f5d6394eb24ee50ab83370a9a8b5f5 (patch) | |
tree | 63fa20bc69aed0bcbd80783aa9812acb29500b8b | |
parent | b70c0bb25fdf6e631a86cccd9278f9613bbb1420 (diff) |
Make module_strip obey INHIBIT_PACKAGE_STRIP.
BKrev: 419ae017k3d_CYpqodmMxk5Uh8N3hg
-rw-r--r-- | BitKeeper/etc/logging_ok | 1 | ||||
-rw-r--r-- | classes/module_strip.oeclass | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok index 701f564483..66cd90c510 100644 --- a/BitKeeper/etc/logging_ok +++ b/BitKeeper/etc/logging_ok @@ -39,6 +39,7 @@ kergoth@direwolf.itg.ti.com kergoth@direwolf.ppp.ti.com kergoth@handhelds.org kergoth@hyperion.(none) +kergoth@hyperion.kergoth.com kergoth@linux.local kergoth@nexus.(none) kergoth@odin.(none) diff --git a/classes/module_strip.oeclass b/classes/module_strip.oeclass index e69de29bb2..85c4cf08e6 100644 --- a/classes/module_strip.oeclass +++ b/classes/module_strip.oeclass @@ -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 \*.o`" + 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 (oe.data.getVar('INHIBIT_PACKAGE_STRIP', d, 1) != '1'): + oe.build.exec_func('do_strip_modules', d) +} |