diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-04-24 16:18:15 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-24 10:14:17 +0100 |
commit | 19704f9e69ecf09531687385b478b47f49fe372d (patch) | |
tree | 9f8f63c481f9f05246c1b2ee232ae52428931463 /meta/classes/sanity.bbclass | |
parent | 85bebd85c4f6603ac8fc1290121c34b92cc434f9 (diff) | |
download | openembedded-core-19704f9e69ecf09531687385b478b47f49fe372d.tar.gz openembedded-core-19704f9e69ecf09531687385b478b47f49fe372d.tar.bz2 openembedded-core-19704f9e69ecf09531687385b478b47f49fe372d.zip |
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.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r-- | meta/classes/sanity.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index c3d4e5888d..687ddebccf 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 } |