[oe] module_strip.bbclass and get_kernelmajorversion

pieterg pieterg at gmx.com
Wed Sep 29 12:49:52 UTC 2010


recipes inheriting 'module' are triggering this error:

NOTE: <type 'exceptions.NameError'>:name 'get_kernelmajorversion' is not 
defined while evaluating:
	if test -e ${PKGD}/lib/modules; then
		if [ "${KERNEL_MAJOR_VERSION}" == "2.6" ]; then

This is because module.bbclass inherits module-base, which inherits 
module_strip.
And module_strip uses get_kernelmajorversion, which is defined by 
linux-kernel-base.bbclass.
So as long as both module_strip and linux-kernel-base are both inherited, 
like kernel.bbclass does, everything is fine.
But with module.bbclass, get_kernelmajorversion is missing.

Should module_strip.bbclass inherit linux-kernel-base?
Or is there a better fix?

Rgds, Pieter




More information about the Openembedded-devel mailing list