summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-04-23 14:36:09 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-23 23:04:43 +0100
commit4a224311ac618b720bfe144002dea80dff4e8b73 (patch)
treea41c68f16bd6decfada49b94379c4ad8989551f1 /meta/classes/sanity.bbclass
parent3639c6a19b2ba8f492e682595e5ac235ec9817ea (diff)
downloadpoky-4a224311ac618b720bfe144002dea80dff4e8b73.tar.gz
sanity.bbclass: add variable to disable the sanity checks
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. (From OE-Core rev: b022641f939bcfcdaddddc4db3af4d2dc70de832) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 9cd04c42bc..c3d4e5888d 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -453,7 +453,7 @@ def check_sanity(e):
453 453
454addhandler check_sanity_eventhandler 454addhandler check_sanity_eventhandler
455python check_sanity_eventhandler() { 455python check_sanity_eventhandler() {
456 if bb.event.getName(e) == "ConfigParsed" and e.data.getVar("BB_WORKERCONTEXT", True) != "1": 456 if bb.event.getName(e) == "ConfigParsed" and e.data.getVar("BB_WORKERCONTEXT", True) != "1" and e.data.getVar("DISABLE_SANITY_CHECKS", True) != "1":
457 check_sanity(e) 457 check_sanity(e)
458 458
459 return 459 return