Make module_strip obey INHIBIT_PACKAGE_STRIP.
authorChris Larson <clarson@kergoth.com>
Wed, 17 Nov 2004 05:22:31 +0000 (05:22 +0000)
committerChris Larson <clarson@kergoth.com>
Wed, 17 Nov 2004 05:22:31 +0000 (05:22 +0000)
BKrev: 419ae017k3d_CYpqodmMxk5Uh8N3hg

BitKeeper/etc/logging_ok
classes/module_strip.oeclass

index 701f564..66cd90c 100644 (file)
@@ -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)
index e69de29..85c4cf0 100644 (file)
@@ -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)
+}