Skip to contentSkip to conversation

module_strip.bbclass: set KERNEL_MAJOR_VERSION

PATCH New Eric Benard 1 participant 1 message May 14, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 module_strip.bbclass: set KERNEL_MAJOR_VERSION

KERNEL_MAJOR_VERSION may not be set (for example when building a module) , this was preventing modules from being stripped.

---
v2: moved to module_strip.bbclass following an advice from Tom Rini

 classes/module_strip.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
classes/module_strip.bbclass +3 -0
index 2650f71..998fb86 100644
@@ -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
Signature · 1 line
1.6.3.3