summaryrefslogtreecommitdiffstats
path: root/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-28 11:09:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-28 13:44:37 +0000
commit1249543c4dbf3edeac033d888497864cfc807a4e (patch)
tree2553f4eefcd6b0856676689c098d6be30f423977 /lib/bb
parent9d8f7efbc39d64124936ccaeb3c47a112e595d78 (diff)
downloadbitbake-1249543c4dbf3edeac033d888497864cfc807a4e.tar.gz
bin/bitbake/cooker: Ensure initial featureset is optimal
If the featureset didn't match the defaults, we'd pay the price of two base configuration parses which showed up adversely in the performance benchmarks. This also passes the feature set into the cooker creation so in the common case we don't have to reset the server. This speeds up both knotty and hob startup. If the featureset doesn't match, the system will reset as before, this just streamlines the common case. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r--lib/bb/cooker.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 5d3ac607f..e6916a621 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -111,10 +111,12 @@ class BBCooker:
Manages one bitbake build run
"""
- def __init__(self, configuration):
+ def __init__(self, configuration, featureSet = []):
self.recipecache = None
self.skiplist = {}
self.featureset = CookerFeatures()
+ for f in featureSet:
+ self.featureset.setFeature(f)
self.configuration = configuration