From: Jeffrey Honig <[email protected]>

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 <[email protected]>
---
 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

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to