aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2006-03-21 21:53:28 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2006-03-21 21:53:28 +0000
commitaf598e9c6d567cfdca7a17b0a6187fd7a622f6a4 (patch)
tree6aac38b829dc803c7e4c88acc0967d760ab00ef3 /bin
parent1564778d579eddaa9deae78ed68153a0122f4391 (diff)
downloadbitbake-af598e9c6d567cfdca7a17b0a6187fd7a622f6a4.tar.gz
bin/bitbake: Micro Optimisation
Do not build the World Package List unless we want to build 'world'. This saves from 10 to 20 seconds on a usual build. I think people doing a world build can survice the extra seconds.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/bitbake b/bin/bitbake
index 457fbb752..59caf075f 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -701,7 +701,12 @@ class BBCooker:
for p in self.pkgdata.keys():
self.status.bbfile_priority[p] = calc_bbfile_priority(p)
- # Build package list for "bitbake world"
+ def buildWorldTargetList(self):
+ """
+ Build package list for "bitbake world"
+ """
+ all_depends = self.status.all_depends
+ pn_provides = self.status.pn_provides
bb.debug(1, "collating packages for \"world\"")
for f in self.status.possible_world:
terminal = True
@@ -883,6 +888,7 @@ class BBCooker:
self.showVersions()
sys.exit( 0 )
if 'world' in pkgs_to_build:
+ self.buildWorldTargetList()
pkgs_to_build.remove('world')
for t in self.status.world_target:
pkgs_to_build.append(t)