aboutsummaryrefslogtreecommitdiffstats
path: root/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-03-03 22:30:21 +0000
commited9178cc40c7659fda96f628aca5bcd13fd0bc61 (patch)
tree42662389c4b21475555516131e5d28daffc1dd31 /lib/bb/event.py
parentef1ba917193412b8a437bb0f9164c1031a55def7 (diff)
downloadbitbake-ed9178cc40c7659fda96f628aca5bcd13fd0bc61.tar.gz
bitbake-ed9178cc40c7659fda96f628aca5bcd13fd0bc61.tar.bz2
bitbake-ed9178cc40c7659fda96f628aca5bcd13fd0bc61.zip
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 (From Poky rev: 1b3eb0c35f504e8f652303a4b238034ecc5c5d02) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r--lib/bb/event.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 5c0db186..2acf9b11 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -351,6 +351,15 @@ class DepTreeGenerated(Event):
Event.__init__(self)
self._depgraph = depgraph
+class TargetsTreeGenerated(Event):
+ """
+ Event when a set of buildable targets has been generated
+ """
+
+ def __init__(self, model):
+ Event.__init__(self)
+ self._model = model
+
class MsgBase(Event):
"""Base class for messages"""