Openembedded Devel Discussions
 help / color / mirror / Atom feed
* kernel_do_compile uses wrong kernel version
@ 2010-07-11 23:58 Detlef Vollmann
  0 siblings, 0 replies; only message in thread
From: Detlef Vollmann @ 2010-07-11 23:58 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

kernel_do_compile in kernel.bbclass uses KERNEL_MAJOR_VERSION,
which is computed based on files that don't exist at that
point in time.
It's not a real problem, as a 'make dep' is still defined
and just gives a warning, but I attached a patch nevertheless.

BTW, I'm not sure how useful get_kernelversion() really is,
as for the DEPENDS the "2.6" or "2.4" needs to be computed
based on PV anyway.

   Detlef

[-- Attachment #2: kernel.bbclass.patch --]
[-- Type: text/x-diff, Size: 544 bytes --]

--- a/classes/kernel.bbclass	2010-06-14 00:02:08.000000000 +0200
+++ b/classes/kernel.bbclass	2010-07-12 01:49:03.000000000 +0200
@@ -85,7 +85,7 @@
 kernel_do_compile() {
 	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
 	oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}"
-	if [ "${KERNEL_MAJOR_VERSION}" != "2.6" ]; then
+	if [ "${@get_kernelmajorversion('${PV}')}" != "2.6" ]; then
 		oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}"
 	fi
 	oe_runmake ${KERNEL_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}"

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

only message in thread, other threads:[~2010-07-12  0:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-11 23:58 kernel_do_compile uses wrong kernel version Detlef Vollmann

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