diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-05-23 16:36:42 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-24 08:51:42 +0100 |
commit | 9ab9c52cfc10d36e5cc753cbe02fcf25470a999b (patch) | |
tree | 3ed66374b2fcc5a41c0187f7dee81fc6107e1928 /meta/classes | |
parent | 9509ed472a75d5696af7ecb8bf8a6acf5fc761f1 (diff) | |
download | poky-9ab9c52cfc10d36e5cc753cbe02fcf25470a999b.tar.gz |
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>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sanity.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index ff258349b5..a2b45bcda9 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -543,7 +543,7 @@ def copy_data(e): | |||
543 | 543 | ||
544 | addhandler check_sanity_eventhandler | 544 | addhandler check_sanity_eventhandler |
545 | python check_sanity_eventhandler() { | 545 | python check_sanity_eventhandler() { |
546 | if bb.event.getName(e) == "ConfigParsed" and e.data.getVar("BB_WORKERCONTEXT", True) != "1" and e.data.getVar("DISABLE_SANITY_CHECKS", True) != "1": | 546 | if bb.event.getName(e) == "BuildStarted" and e.data.getVar("BB_WORKERCONTEXT", True) != "1" and e.data.getVar("DISABLE_SANITY_CHECKS", True) != "1": |
547 | sanity_data = copy_data(e) | 547 | sanity_data = copy_data(e) |
548 | check_sanity(sanity_data) | 548 | check_sanity(sanity_data) |
549 | elif bb.event.getName(e) == "SanityCheck": | 549 | elif bb.event.getName(e) == "SanityCheck": |