[oe-commits] Joshua Lock : sanity.bbclass: check sanity at BuildStarted rather than ConfigParsed

git at git.openembedded.org git at git.openembedded.org
Thu May 24 07:52:12 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: be317df78535120137ecaadf797e3f4dfe04119e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=be317df78535120137ecaadf797e3f4dfe04119e

Author: Joshua Lock <josh at linux.intel.com>
Date:   Wed May 23 16:36:42 2012 -0700

sanity.bbclass: check sanity at BuildStarted rather than ConfigParsed

This enables a user to use bitbake -e even when the sanity checks are
failing.

Signed-off-by: Joshua Lock <josh at linux.intel.com>

---

 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 ff25834..a2b45bc 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -543,7 +543,7 @@ def copy_data(e):
 
 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":
+    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)
         check_sanity(sanity_data)
     elif bb.event.getName(e) == "SanityCheck":





More information about the Openembedded-commits mailing list