summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-06-30 23:02:49 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-01 17:17:35 +0100
commita8afb3b353486f5396c0dc92eeed2fb74b89eda2 (patch)
treeae9631d693457fa4e08adc55431f2384e130e1c4 /bitbake/lib/bb/command.py
parentcbd00b89271086d273d0ea39e21cb3c05b5bc052 (diff)
downloadpoky-a8afb3b353486f5396c0dc92eeed2fb74b89eda2.tar.gz
command|cooker: allow generating targets tree for specified pkgs
Modify the generateTargetsTree command to allow a list of packages to be supplied by the caller, in this case we will only generate a target tree for user requested targets rather than building a tree for the world list. (Bitbake rev: d4e4f2ecae96e074b2ab3bb9882037af2e385fdd) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r--bitbake/lib/bb/command.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 9841e6874e..d597d1d39b 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -224,11 +224,19 @@ class CommandsAsync:
224 224
225 def generateTargetsTree(self, command, params): 225 def generateTargetsTree(self, command, params):
226 """ 226 """
227 Generate a tree of all buildable targets. 227 Generate a tree of buildable targets.
228 If klass is provided ensure all recipes that inherit the class are
229 included in the package list.
230 If pkg_list provided use that list (plus any extras brought in by
231 klass) rather than generating a tree for all packages.
228 """ 232 """
229 klass = params[0] 233 klass = params[0]
234 if len(params) > 1:
235 pkg_list = params[1]
236 else:
237 pkg_list = []
230 238
231 command.cooker.generateTargetsTree(klass) 239 command.cooker.generateTargetsTree(klass, pkg_list)
232 command.finishAsyncCommand() 240 command.finishAsyncCommand()
233 generateTargetsTree.needcache = True 241 generateTargetsTree.needcache = True
234 242