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>
This commit is contained in:
parent
2a6e1b0a0c
commit
f6864c1eed
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue