mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
sanity.bbclass: check sanity at BuildStarted rather than ConfigParsed
This enables a user to use bitbake -e even when the sanity checks are failing. (From OE-Core rev: be317df78535120137ecaadf797e3f4dfe04119e) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9509ed472a
commit
9ab9c52cfc
@@ -543,7 +543,7 @@ def copy_data(e):
|
|||||||
|
|
||||||
addhandler check_sanity_eventhandler
|
addhandler check_sanity_eventhandler
|
||||||
python 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":
|
if bb.event.getName(e) == "BuildStarted" and e.data.getVar("BB_WORKERCONTEXT", True) != "1" and e.data.getVar("DISABLE_SANITY_CHECKS", True) != "1":
|
||||||
sanity_data = copy_data(e)
|
sanity_data = copy_data(e)
|
||||||
check_sanity(sanity_data)
|
check_sanity(sanity_data)
|
||||||
elif bb.event.getName(e) == "SanityCheck":
|
elif bb.event.getName(e) == "SanityCheck":
|
||||||
|
|||||||
Reference in New Issue
Block a user