Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] Refuse to run bitbake on a kernel that is too old.
@ 2014-10-20 18:30 jeffrey.honig
  2014-10-20 19:08 ` Burton, Ross
  2014-10-21 10:03 ` Enrico Scholz
  0 siblings, 2 replies; 5+ messages in thread
From: jeffrey.honig @ 2014-10-20 18:30 UTC (permalink / raw)
  To: openembedded-core

From: Jeffrey Honig <jeffrey.honig@windriver.com>

Fixes [YOCTO #6856]

Bitbake.conf now specifies OLDEST_KERNEL to insure that the SDK is not run
on a kernel that is not supported by a component of the SDK (i.e. glibc).  If this
is attempted an error will not be generated until deep into the SDK build.

This changes adds a specific test causing a failure whenever bitbake is run.

Signed-off-by: Jeffrey Honig <jeffrey.honig@windriver.com>
---
 meta/classes/sanity.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 5be5efb..3725a0b 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -675,6 +675,10 @@ def check_sanity_everybuild(status, d):
     if (LooseVersion(bb.__version__) < LooseVersion(minversion)):
         status.addresult('Bitbake version %s is required and version %s was found\n' % (minversion, bb.__version__))
 
+    # Check that our kernel will work for crosssdk
+    if os.uname()[0] == "Linux" and LooseVersion(os.uname()[2]) < LooseVersion(d.getVar('OLDEST_KERNEL')):
+        status.addresult("The system requires a kernel of at least %s to run\n" % d.getVar('OLDEST_KERNEL'))
+
     sanity_check_conffiles(status, d)
 
     paths = d.getVar('PATH', True).split(":")
-- 
2.1.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-22 10:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20 18:30 [PATCH] Refuse to run bitbake on a kernel that is too old jeffrey.honig
2014-10-20 19:08 ` Burton, Ross
2014-10-20 23:30   ` Mark Hatle
2014-10-21 10:03 ` Enrico Scholz
2014-10-22 10:49   ` Mark Hatle

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