[gnome-continuous-yocto/gnomeostree-3.28-rocko: 6124/8267] bitbake: tinfoil: allow extra features to be passed to prepare



commit 644fbb9aca29cca6b2ad67a6f2b4f01de4a66d17
Author: Andy Voltz <andy voltz timesys com>
Date:   Thu May 18 12:09:10 2017 -0400

    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>

 bitbake/lib/bb/tinfoil.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py
index 928333a..563c0c4 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/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)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]