summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-04-24 16:18:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-24 10:15:47 +0100
commit3ab5d73f0c49df9fefa2a46031d33436bbd7d7d8 (patch)
treef308c8cd36000c73132987a7b11cf61d9136f06f
parent33f048240def1c6b796b65355ca61b1541144413 (diff)
downloadpoky-3ab5d73f0c49df9fefa2a46031d33436bbd7d7d8.zip
poky-3ab5d73f0c49df9fefa2a46031d33436bbd7d7d8.tar.gz
poky-3ab5d73f0c49df9fefa2a46031d33436bbd7d7d8.tar.bz2
sanity.bbclass: Add a new case to issue sanity_check()
Judge if "SanityCheck" event is received, it will issue the sanity_check() and send "SanityCheckPassed" back if succeeded. (From OE-Core rev: 19704f9e69ecf09531687385b478b47f49fe372d) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/sanity.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index c3d4e58..687ddeb 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -455,6 +455,9 @@ addhandler check_sanity_eventhandler
python check_sanity_eventhandler() {
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)
+ elif bb.event.getName(e) == "SanityCheck":
+ check_sanity(e)
+ bb.event.fire(bb.event.SanityCheckPassed(), e.data)
return
}