Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [2011.03-maintenance] Bogus check in kernel.bbclass
@ 2011-07-31 22:29 Detlef Vollmann
  0 siblings, 0 replies; only message in thread
From: Detlef Vollmann @ 2011-07-31 22:29 UTC (permalink / raw)
  To: openembedded-devel

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-01  0:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-31 22:29 [2011.03-maintenance] Bogus check in kernel.bbclass Detlef Vollmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox