]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: add variable to disable the sanity checks
authorJoshua Lock <josh@linux.intel.com>
Mon, 23 Apr 2012 21:36:09 +0000 (14:36 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Apr 2012 22:02:53 +0000 (23:02 +0100)
It's useful for Hob to be able to disable the sanity checks completely
without marking them as passed so that the user can get into the GUI to
configure their settings, etc.

Add a variable, DISABLE_SANITY_CHECKS, to do so.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass

index 9cd04c42bc754485ecf12ea36dc22a11236404b9..c3d4e5888dd79d9aed2429b558b88b0f3615a12a 100644 (file)
@@ -453,7 +453,7 @@ def check_sanity(e):
 
 addhandler check_sanity_eventhandler
 python check_sanity_eventhandler() {
-    if bb.event.getName(e) == "ConfigParsed" and e.data.getVar("BB_WORKERCONTEXT", True) != "1":
+    if bb.event.getName(e) == "ConfigParsed" and e.data.getVar("BB_WORKERCONTEXT", True) != "1" and e.data.getVar("DISABLE_SANITY_CHECKS", True) != "1":
         check_sanity(e)
 
     return