From a8afb3b353486f5396c0dc92eeed2fb74b89eda2 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 30 Jun 2011 23:02:49 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/command.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/command.py') 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: def generateTargetsTree(self, command, params): """ - Generate a tree of all buildable targets. + Generate a tree of buildable targets. + If klass is provided ensure all recipes that inherit the class are + included in the package list. + If pkg_list provided use that list (plus any extras brought in by + klass) rather than generating a tree for all packages. """ klass = params[0] + if len(params) > 1: + pkg_list = params[1] + else: + pkg_list = [] - command.cooker.generateTargetsTree(klass) + command.cooker.generateTargetsTree(klass, pkg_list) command.finishAsyncCommand() generateTargetsTree.needcache = True -- cgit v1.2.3-54-g00ecf