[oe-commits] Eric BENARD : module_strip.bbclass: set KERNEL_MAJOR_VERSION
git version control
git at git.openembedded.org
Fri May 14 15:29:02 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: dd333a30907c39526ca03e690aaecc45785df6c3
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=dd333a30907c39526ca03e690aaecc45785df6c3
Author: Eric BENARD <eric at eukrea.com>
Date: Fri May 14 04:59:21 2010 +0000
module_strip.bbclass: set KERNEL_MAJOR_VERSION
KERNEL_MAJOR_VERSION may not be set (for example when building a module)
and this was preventing modules from being stripped.
Signed-off-by: Eric Benard <eric at eukrea.com>
Signed-off-by: Tom Rini <tom_rini at mentor.com>
---
classes/module_strip.bbclass | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/classes/module_strip.bbclass b/classes/module_strip.bbclass
index 2650f71..998fb86 100644
--- a/classes/module_strip.bbclass
+++ b/classes/module_strip.bbclass
@@ -1,5 +1,8 @@
PACKAGESTRIPFUNCS += "do_strip_modules"
+# may be inherited by kernel.bbclass which sets KERNEL_MAJOR_VERSION
+KERNEL_MAJOR_VERSION ?= "${@get_kernelmajorversion('${KERNEL_VERSION}')}"
+
do_strip_modules () {
if test -e ${PKGD}/lib/modules; then
if [ "${KERNEL_MAJOR_VERSION}" == "2.6" ]; then
More information about the Openembedded-commits
mailing list