diff options
-rw-r--r-- | bitbake/lib/bb/cooker.py | 4 | ||||
-rw-r--r-- | bitbake/lib/bb/event.py | 10 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 2 |
3 files changed, 13 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index e4cff3a23e..e81d887268 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -82,7 +82,7 @@ class SkippedPackage: | |||
82 | 82 | ||
83 | 83 | ||
84 | class CookerFeatures(object): | 84 | class CookerFeatures(object): |
85 | _feature_list = [HOB_EXTRA_CACHES, SEND_DEPENDS_TREE, BASEDATASTORE_TRACKING] = range(3) | 85 | _feature_list = [HOB_EXTRA_CACHES, SEND_DEPENDS_TREE, BASEDATASTORE_TRACKING, SEND_SANITYEVENTS] = range(4) |
86 | 86 | ||
87 | def __init__(self): | 87 | def __init__(self): |
88 | self._features=set() | 88 | self._features=set() |
@@ -1268,6 +1268,8 @@ class BBCooker: | |||
1268 | 1268 | ||
1269 | if self.state != state.parsing: | 1269 | if self.state != state.parsing: |
1270 | self.parseConfiguration () | 1270 | self.parseConfiguration () |
1271 | if CookerFeatures.SEND_SANITYEVENTS in self.featureset: | ||
1272 | bb.event.fire(bb.event.SanityCheck(False), self.data) | ||
1271 | 1273 | ||
1272 | ignore = self.data.getVar("ASSUME_PROVIDED", True) or "" | 1274 | ignore = self.data.getVar("ASSUME_PROVIDED", True) or "" |
1273 | self.recipecache.ignored_dependencies = set(ignore.split()) | 1275 | self.recipecache.ignored_dependencies = set(ignore.split()) |
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index 10eae5fde8..e2050431ec 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -601,8 +601,11 @@ class MetadataEvent(Event): | |||
601 | 601 | ||
602 | class SanityCheck(Event): | 602 | class SanityCheck(Event): |
603 | """ | 603 | """ |
604 | Event to issue sanity check | 604 | Event to runs sanity checks, either raise errors or generate events as return status. |
605 | """ | 605 | """ |
606 | def __init__(self, generateevents = True): | ||
607 | Event.__init__(self) | ||
608 | self.generateevents = generateevents | ||
606 | 609 | ||
607 | class SanityCheckPassed(Event): | 610 | class SanityCheckPassed(Event): |
608 | """ | 611 | """ |
@@ -620,8 +623,11 @@ class SanityCheckFailed(Event): | |||
620 | 623 | ||
621 | class NetworkTest(Event): | 624 | class NetworkTest(Event): |
622 | """ | 625 | """ |
623 | Event to start network test | 626 | Event to run network connectivity tests, either raise errors or generate events as return status. |
624 | """ | 627 | """ |
628 | def __init__(self, generateevents = True): | ||
629 | Event.__init__(self) | ||
630 | self.generateevents = generateevents | ||
625 | 631 | ||
626 | class NetworkTestPassed(Event): | 632 | class NetworkTestPassed(Event): |
627 | """ | 633 | """ |
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 55cf50735c..009653c038 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -34,6 +34,8 @@ import copy | |||
34 | import atexit | 34 | import atexit |
35 | from bb.ui import uihelper | 35 | from bb.ui import uihelper |
36 | 36 | ||
37 | featureSet = [bb.cooker.CookerFeatures.SEND_SANITYEVENTS] | ||
38 | |||
37 | logger = logging.getLogger("BitBake") | 39 | logger = logging.getLogger("BitBake") |
38 | interactive = sys.stdout.isatty() | 40 | interactive = sys.stdout.isatty() |
39 | 41 | ||