diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-28 11:09:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-30 10:10:36 +0100 |
commit | ef28fcd7feb13db21572d28549427ee153957097 (patch) | |
tree | dcdf0df760d32a3a56ff8900c425add9e78c4741 /bitbake/lib/bb/cooker.py | |
parent | f80334d8aa680c249d84df9109ceca9e7a479cdd (diff) | |
download | poky-ef28fcd7feb13db21572d28549427ee153957097.tar.gz |
bitbake: 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.
(Bitbake rev: 1249543c4dbf3edeac033d888497864cfc807a4e)
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 5d3ac607f5..e6916a621b 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -111,10 +111,12 @@ class BBCooker: | |||
111 | Manages one bitbake build run | 111 | Manages one bitbake build run |
112 | """ | 112 | """ |
113 | 113 | ||
114 | def __init__(self, configuration): | 114 | def __init__(self, configuration, featureSet = []): |
115 | self.recipecache = None | 115 | self.recipecache = None |
116 | self.skiplist = {} | 116 | self.skiplist = {} |
117 | self.featureset = CookerFeatures() | 117 | self.featureset = CookerFeatures() |
118 | for f in featureSet: | ||
119 | self.featureset.setFeature(f) | ||
118 | 120 | ||
119 | self.configuration = configuration | 121 | self.configuration = configuration |
120 | 122 | ||