From ed9178cc40c7659fda96f628aca5bcd13fd0bc61 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 4 Jan 2011 20:08:51 +0000 Subject: 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 Signed-off-by: Richard Purdie --- lib/bb/event.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/bb/event.py') diff --git a/lib/bb/event.py b/lib/bb/event.py index 5c0db1862..2acf9b119 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""" -- cgit 1.2.3-korg