summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAndy Voltz <andy.voltz@timesys.com>2017-05-18 12:09:10 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-05 09:19:51 +0100
commit644fbb9aca29cca6b2ad67a6f2b4f01de4a66d17 (patch)
tree8d6ef230b94cde7b9f9b358da8dc4d62d89107ab /bitbake
parent44b3eb65d9d6b2b91af08a5d50ec28f5df50f8f9 (diff)
downloadpoky-644fbb9aca29cca6b2ad67a6f2b4f01de4a66d17.tar.gz
bitbake: tinfoil: allow extra features to be passed to prepare
(Bitbake rev: 2e35de1f19dc73a61a18a3eb186efede078d597d) Signed-off-by: Andy Voltz <andy.voltz@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/tinfoil.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py
index 928333a500..563c0c4d82 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/lib/bb/tinfoil.py
@@ -228,12 +228,15 @@ class Tinfoil:
228 def __exit__(self, type, value, traceback): 228 def __exit__(self, type, value, traceback):
229 self.shutdown() 229 self.shutdown()
230 230
231 def prepare(self, config_only=False, config_params=None, quiet=0): 231 def prepare(self, config_only=False, config_params=None, quiet=0, extra_features=None):
232 if self.tracking: 232 if self.tracking:
233 extrafeatures = [bb.cooker.CookerFeatures.BASEDATASTORE_TRACKING] 233 extrafeatures = [bb.cooker.CookerFeatures.BASEDATASTORE_TRACKING]
234 else: 234 else:
235 extrafeatures = [] 235 extrafeatures = []
236 236
237 if extra_features:
238 extrafeatures += extra_features
239
237 if not config_params: 240 if not config_params:
238 config_params = TinfoilConfigParameters(config_only=config_only, quiet=quiet) 241 config_params = TinfoilConfigParameters(config_only=config_only, quiet=quiet)
239 242