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, 3 insertions, 7 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index f06b71c42c..caf1123496 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -177,6 +177,8 @@ class BBCooker:
177 177
178 def initConfigurationData(self): 178 def initConfigurationData(self):
179 self.configuration.data = bb.data.init() 179 self.configuration.data = bb.data.init()
180 if self.configuration.show_environment:
181 self.configuration.data.enableTracking()
180 182
181 if not self.server_registration_cb: 183 if not self.server_registration_cb:
182 self.configuration.data.setVar("BB_WORKERCONTEXT", "1") 184 self.configuration.data.setVar("BB_WORKERCONTEXT", "1")
@@ -185,13 +187,7 @@ class BBCooker:
185 bb.data.inheritFromOS(self.configuration.data, self.savedenv, filtered_keys) 187 bb.data.inheritFromOS(self.configuration.data, self.savedenv, filtered_keys)
186 188
187 def loadConfigurationData(self): 189 def loadConfigurationData(self):
188 self.configuration.data = bb.data.init() 190 self.initConfigurationData()
189
190 if not self.server_registration_cb:
191 self.configuration.data.setVar("BB_WORKERCONTEXT", "1")
192
193 filtered_keys = bb.utils.approved_variables()
194 bb.data.inheritFromOS(self.configuration.data, self.savedenv, filtered_keys)
195 191
196 try: 192 try:
197 self.parseConfigurationFiles(self.configuration.prefile, 193 self.parseConfigurationFiles(self.configuration.prefile,