diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-06-30 23:02:49 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-01 17:17:35 +0100 |
commit | a8afb3b353486f5396c0dc92eeed2fb74b89eda2 (patch) | |
tree | ae9631d693457fa4e08adc55431f2384e130e1c4 /bitbake/lib/bb/cooker.py | |
parent | cbd00b89271086d273d0ea39e21cb3c05b5bc052 (diff) | |
download | ast2050-yocto-poky-a8afb3b353486f5396c0dc92eeed2fb74b89eda2.zip ast2050-yocto-poky-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/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index ebf963d..a6f3bef 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -594,12 +594,14 @@ class BBCooker: return target_tree - def generateTargetsTree(self, klass): + def generateTargetsTree(self, klass=None, pkgs=[]): """ Generate a dependency tree of buildable targets Generate an event with the result """ - pkgs = ['world'] + # if the caller hasn't specified a pkgs list default to world + if not len(pkgs): + pkgs = ['world'] # if inherited_class passed ensure all recipes which inherit the # specified class are included in pkgs if klass: |