summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-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 b0ddb2e112..044ceb179e 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -78,7 +78,7 @@ class BBCooker:
78 Manages one bitbake build run 78 Manages one bitbake build run
79 """ 79 """
80 80
81 def __init__(self, configuration, server_registration_cb): 81 def __init__(self, configuration, server_registration_cb, savedenv={}):
82 self.status = None 82 self.status = None
83 self.appendlist = {} 83 self.appendlist = {}
84 self.skiplist = {} 84 self.skiplist = {}
@@ -87,6 +87,14 @@ class BBCooker:
87 87
88 self.configuration = configuration 88 self.configuration = configuration
89 89
90 # Keep a datastore of the initial environment variables and their
91 # values from when BitBake was launched to enable child processes
92 # to use environment variables which have been cleaned from the
93 # BitBake processes env
94 self.savedenv = bb.data.init()
95 for k in savedenv:
96 self.savedenv.setVar(k, savedenv[k])
97
90 self.caches_array = [] 98 self.caches_array = []
91 # Currently, only Image Creator hob ui needs extra cache. 99 # Currently, only Image Creator hob ui needs extra cache.
92 # So, we save Extra Cache class name and container file 100 # So, we save Extra Cache class name and container file