summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index b0ddb2e..044ceb1 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -78,7 +78,7 @@ class BBCooker:
Manages one bitbake build run
"""
- def __init__(self, configuration, server_registration_cb):
+ def __init__(self, configuration, server_registration_cb, savedenv={}):
self.status = None
self.appendlist = {}
self.skiplist = {}
@@ -87,6 +87,14 @@ class BBCooker:
self.configuration = configuration
+ # Keep a datastore of the initial environment variables and their
+ # values from when BitBake was launched to enable child processes
+ # to use environment variables which have been cleaned from the
+ # BitBake processes env
+ self.savedenv = bb.data.init()
+ for k in savedenv:
+ self.savedenv.setVar(k, savedenv[k])
+
self.caches_array = []
# Currently, only Image Creator hob ui needs extra cache.
# So, we save Extra Cache class name and container file
OpenPOWER on IntegriCloud