summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-08-27 10:21:38 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-27 11:16:58 +0100
commit39052cd70370ba6447fc1bc2c0fa880ac336c2fc (patch)
treec39565b794619dd87e7c3f74de07827f51a0c979
parent8d134e999e6d84c2046225c406f9f46325101ca5 (diff)
downloadpoky-39052cd70370ba6447fc1bc2c0fa880ac336c2fc.tar.gz
bitbake: hob: add event handlers filtering in Hob
Create the _evt_list for hob; it is longer than the knotty uses because it handles more events. (Bitbake rev: 715aed74f972bb6e9b6a5130ca9ede48d4f79f0a) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/bb/ui/hob.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index 2c75cb8fd1..bc5ee1434a 100755
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -58,6 +58,19 @@ def event_handle_idle_func(eventHandler, hobHandler):
58 event = eventHandler.getEvent() 58 event = eventHandler.getEvent()
59 return True 59 return True
60 60
61_evt_list = [ "bb.runqueue.runQueueExitWait", "bb.event.LogExecTTY", "logging.LogRecord",
62 "bb.build.TaskFailed", "bb.build.TaskBase", "bb.event.ParseStarted",
63 "bb.event.ParseProgress", "bb.event.ParseCompleted", "bb.event.CacheLoadStarted",
64 "bb.event.CacheLoadProgress", "bb.event.CacheLoadCompleted", "bb.command.CommandFailed",
65 "bb.command.CommandExit", "bb.command.CommandCompleted", "bb.cooker.CookerExit",
66 "bb.event.MultipleProviders", "bb.event.NoProvider", "bb.runqueue.sceneQueueTaskStarted",
67 "bb.runqueue.runQueueTaskStarted", "bb.runqueue.runQueueTaskFailed", "bb.runqueue.sceneQueueTaskFailed",
68 "bb.event.BuildBase", "bb.build.TaskStarted", "bb.build.TaskSucceeded", "bb.build.TaskFailedSilent",
69 "bb.event.SanityCheckPassed", "bb.event.SanityCheckFailed", "bb.event.PackageInfo",
70 "bb.event.TargetsTreeGenerated", "bb.event.ConfigFilesFound", "bb.event.ConfigFilePathFound",
71 "bb.event.FilesMatchingFound", "bb.event.NetworkTestFailed", "bb.event.NetworkTestPassed",
72 "bb.event.BuildStarted", "bb.event.BuildCompleted", "bb.event.DiskFull"]
73
61def main (server, eventHandler, params): 74def main (server, eventHandler, params):
62 params.updateFromServer(server) 75 params.updateFromServer(server)
63 gobject.threads_init() 76 gobject.threads_init()
@@ -68,6 +81,8 @@ def main (server, eventHandler, params):
68 recipe_model = RecipeListModel() 81 recipe_model = RecipeListModel()
69 package_model = PackageListModel() 82 package_model = PackageListModel()
70 83
84 llevel, debug_domains = bb.msg.constructLogOptions()
85 server.runCommand(["setEventMask", server.getEventHandle(), llevel, debug_domains, _evt_list])
71 hobHandler = HobHandler(server, recipe_model, package_model) 86 hobHandler = HobHandler(server, recipe_model, package_model)
72 builder = Builder(hobHandler, recipe_model, package_model) 87 builder = Builder(hobHandler, recipe_model, package_model)
73 88