summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/event.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-01-04 20:08:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-24 15:54:50 +0000
commit1b3eb0c35f504e8f652303a4b238034ecc5c5d02 (patch)
tree88193076474e939d0b18897eb5d341fb4d27258d /bitbake/lib/bb/event.py
parent920c402342bd490cd94b365c3e151de735dec0d6 (diff)
downloadpoky-1b3eb0c35f504e8f652303a4b238034ecc5c5d02.tar.gz
bitbake: implement command to get all possible targets and their dependencies
Add a new command generateTargetsTree() which returns a dependency tree of possible targets (tasks and recipes) as well as their dependency information. Optional parameter 'klass' also ensures any recipes which inherit the specified class path (i.e. 'classes/image.bbclass') are included in the model Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r--bitbake/lib/bb/event.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 3467ddd613..064848baef 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -350,6 +350,15 @@ class DepTreeGenerated(Event):
350 Event.__init__(self) 350 Event.__init__(self)
351 self._depgraph = depgraph 351 self._depgraph = depgraph
352 352
353class TargetsTreeGenerated(Event):
354 """
355 Event when a set of buildable targets has been generated
356 """
357
358 def __init__(self, model):
359 Event.__init__(self)
360 self._model = model
361
353class MsgBase(Event): 362class MsgBase(Event):
354 """Base class for messages""" 363 """Base class for messages"""
355 364