From 1b3eb0c35f504e8f652303a4b238034ecc5c5d02 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 4 Jan 2011 20:08:51 +0000 Subject: 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 --- bitbake/lib/bb/command.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bitbake/lib/bb/command.py') 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: command.finishAsyncCommand() generateDotGraph.needcache = True + def generateTargetsTree(self, command, params): + """ + Generate a tree of all buildable targets. + """ + klass = params[0] + + command.cooker.generateTargetsTree(klass) + command.finishAsyncCommand() + generateTargetsTree.needcache = True + def showVersions(self, command, params): """ Show the currently selected versions -- cgit v1.2.3-54-g00ecf