aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/tinfoil.py
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-04 23:17:22 +0100
commit2e35de1f19dc73a61a18a3eb186efede078d597d (patch)
tree4738b3f30d3cdbc7f58088504b43c912b85bac55 /lib/bb/tinfoil.py
parent37c298b27e3f72b21513124237cfeffb22c0e2f0 (diff)
downloadbitbake-contrib-2e35de1f19dc73a61a18a3eb186efede078d597d.tar.gz
tinfoil: allow extra features to be passed to prepare
Signed-off-by: Andy Voltz <andy.voltz@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tinfoil.py')
-rw-r--r--lib/bb/tinfoil.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py
index 928333a50..563c0c4d8 100644
--- a/lib/bb/tinfoil.py
+++ b/lib/bb/tinfoil.py
@@ -228,12 +228,15 @@ class Tinfoil:
def __exit__(self, type, value, traceback):
self.shutdown()
- def prepare(self, config_only=False, config_params=None, quiet=0):
+ def prepare(self, config_only=False, config_params=None, quiet=0, extra_features=None):
if self.tracking:
extrafeatures = [bb.cooker.CookerFeatures.BASEDATASTORE_TRACKING]
else:
extrafeatures = []
+ if extra_features:
+ extrafeatures += extra_features
+
if not config_params:
config_params = TinfoilConfigParameters(config_only=config_only, quiet=quiet)