summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.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/command.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/command.py')
-rw-r--r--bitbake/lib/bb/command.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index b88089298c..42b5b06712 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -222,6 +222,16 @@ class CommandsAsync:
222 command.finishAsyncCommand() 222 command.finishAsyncCommand()
223 generateDotGraph.needcache = True 223 generateDotGraph.needcache = True
224 224
225 def generateTargetsTree(self, command, params):
226 """
227 Generate a tree of all buildable targets.
228 """
229 klass = params[0]
230
231 command.cooker.generateTargetsTree(klass)
232 command.finishAsyncCommand()
233 generateTargetsTree.needcache = True
234
225 def showVersions(self, command, params): 235 def showVersions(self, command, params):
226 """ 236 """
227 Show the currently selected versions 237 Show the currently selected versions