summaryrefslogtreecommitdiffstats
path: root/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-09-18 13:15:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-18 15:14:13 +0100
commit75466a53b6eece5173a9bfe483414148e4c06517 (patch)
tree6d2a10a4fc4f25a6f5251d931fb18d4a8e7d1a9c /lib/bb/runqueue.py
parent98e594837aab89ea042cfa9f3740d20a661b14e2 (diff)
downloadbitbake-contrib-75466a53b6eece5173a9bfe483414148e4c06517.tar.gz
bitbake: cooker,runqueue: send the task dependency tree
Adding a CookerFeature that allows UIs to enable receving a dependency tree once the task data has been computed and the runQueue is ready to start. This will allow the clients to display dependency data in an efficient manner, and not recompute the runqueue specifically to get the dependency data. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r--lib/bb/runqueue.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 6346c7711..472509fa1 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -999,6 +999,11 @@ class RunQueue:
else:
self.state = runQueueSceneInit
+ # we are ready to run, see if any UI client needs the dependency info
+ if bb.cooker.CookerFeatures.SEND_DEPENDS_TREE in self.cooker.featureset:
+ depgraph = self.cooker.buildDependTree(self, self.rqdata.taskData)
+ bb.event.fire(bb.event.DepTreeGenerated(depgraph), self.cooker.data)
+
if self.state is runQueueSceneInit:
if self.cooker.configuration.dump_signatures:
self.dump_signatures()