[oe] [2011.03-maintenance] Bogus check in kernel.bbclass

Detlef Vollmann dv at vollmann.ch
Sun Jul 31 22:29:53 UTC 2011


kernel.bbclass has the following in kernel_do_compile:
   oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}"
   if [ "${KERNEL_MAJOR_VERSION}" != "2.6" ]; then
           oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}"
   fi

The check for KERNEL_MAJOR_VERSION here is bogus, it will always
be "None", because the expansion of KERNEL_MAJOR_VERSION requires
include/linux/version.h, but that file doesn't exist when the
variable is expanded.
The problem doesn't cause any harm here, as "make dep" on newer
kernels just issues a warning, but it irritates once you look at
run.do_compile for hunting down any other errors...

If anybody cares, I'll provide a patch that just calls "make dep"
unconditionally.

Regards,
   Detlef




More information about the Openembedded-devel mailing list