From: Eric BENARD Date: Fri, 14 May 2010 04:59:21 +0000 (+0000) Subject: module_strip.bbclass: set KERNEL_MAJOR_VERSION X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd333a30907c39526ca03e690aaecc45785df6c3;p=openembedded.git 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 Signed-off-by: Tom Rini --- diff --git a/classes/module_strip.bbclass b/classes/module_strip.bbclass index 2650f71d50..998fb86461 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