From dd333a30907c39526ca03e690aaecc45785df6c3 Mon Sep 17 00:00:00 2001 From: Eric BENARD Date: Fri, 14 May 2010 04:59:21 +0000 Subject: [PATCH] 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 --- classes/module_strip.bbclass | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5