Skip to contentSkip to conversation

Bogus check in kernel.bbclass

2011.03-maintenance Detlef Vollmann 1 participant 1 message Aug 1, 2011

lore
Share & tools
lore
#0 lore raw

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