diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-09 10:02:08 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-10 11:09:59 -0700 |
commit | d51bf8d9f6d34542879d286e127dbeb4d3bd6253 (patch) | |
tree | 36e968db02ca0fa85b5fa0f6ebf81862708fdcfd /bitbake/lib/bb/cooker.py | |
parent | b28f00718ca9e4fd9f7c04c1cbfcdb9e4a411efd (diff) | |
download | poky-d51bf8d9f6d34542879d286e127dbeb4d3bd6253.tar.gz |
bitbake: cooker/command: Add setFeatures command
Add a command to allow backends to set particular 'features' on the
cooker (server).
(Bitbake rev: f547d6ec6cfd677d71fa96dd3c69823c00dc6c69)
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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 96f05b5309..8d63195189 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -149,6 +149,14 @@ class BBCooker: | |||
149 | 149 | ||
150 | self.parser = None | 150 | self.parser = None |
151 | 151 | ||
152 | def setFeatures(self, features): | ||
153 | original_featureset = list(self.featureset) | ||
154 | for feature in features: | ||
155 | self.featureset.setFeature(feature) | ||
156 | bb.debug(1, "Features set %s (was %s)" % (original_featureset, list(self.featureset))) | ||
157 | if (original_featureset != list(self.featureset)): | ||
158 | self.reset() | ||
159 | |||
152 | def initConfigurationData(self): | 160 | def initConfigurationData(self): |
153 | 161 | ||
154 | self.state = state.initial | 162 | self.state = state.initial |