summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2011-04-21 11:44:45 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-03 12:10:53 +0100
commit28e7041a9c110be2ac5dea1eb1f55ca8f056111e (patch)
treea4c4b2b6025a31bc548ca0345524888df3e77dc2 /bitbake/lib/bb/cooker.py
parent3279737cdf164962b0121bd850634cb05a616f15 (diff)
downloadpoky-28e7041a9c110be2ac5dea1eb1f55ca8f056111e.tar.gz
universe target: add a new target to collect all recipe targets
This new universe target is not intended to be used for compiling or building everything, it use is for sanity checking and other tasks that need to find all targets. This does not exclude any broken or virtual targets. Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 97863e517a..3c7b60eb95 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -124,6 +124,8 @@ class BBCooker:
124 124
125 if 'world' in self.configuration.pkgs_to_build: 125 if 'world' in self.configuration.pkgs_to_build:
126 buildlog.error("'world' is not a valid target for --environment.") 126 buildlog.error("'world' is not a valid target for --environment.")
127 if 'universe' in self.configuration.pkgs_to_build:
128 buildlog.error("'universe' is not a valid target for --environment.")
127 elif len(self.configuration.pkgs_to_build) > 1: 129 elif len(self.configuration.pkgs_to_build) > 1:
128 buildlog.error("Only one target can be used with the --environment option.") 130 buildlog.error("Only one target can be used with the --environment option.")
129 elif self.configuration.buildfile and len(self.configuration.pkgs_to_build) > 0: 131 elif self.configuration.buildfile and len(self.configuration.pkgs_to_build) > 0:
@@ -889,6 +891,12 @@ class BBCooker:
889 for t in self.status.world_target: 891 for t in self.status.world_target:
890 pkgs_to_build.append(t) 892 pkgs_to_build.append(t)
891 893
894 if 'universe' in pkgs_to_build:
895 parselog.debug(1, "collating packages for \"universe\"")
896 pkgs_to_build.remove('universe')
897 for t in self.status.universe_target:
898 pkgs_to_build.append(t)
899
892 return pkgs_to_build 900 return pkgs_to_build
893 901
894 def get_bbfiles( self, path = os.getcwd() ): 902 def get_bbfiles( self, path = os.getcwd() ):