diff options
author | Eric BENARD <eric@eukrea.com> | 2010-05-14 04:59:21 +0000 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2010-05-14 08:28:42 -0700 |
commit | dd333a30907c39526ca03e690aaecc45785df6c3 (patch) | |
tree | 3cf59175104bbbbd425864569cb89bc015bb2b47 /classes | |
parent | 3b41668fc1e3db2713cfa61067146cfdaf2be37a (diff) |
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@eukrea.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r-- | 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 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 |