diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index affe1136c4..1a2c01639e 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -87,12 +87,10 @@ class BBCooker: | |||
87 | Manages one bitbake build run | 87 | Manages one bitbake build run |
88 | """ | 88 | """ |
89 | 89 | ||
90 | def __init__(self, configuration, server_registration_cb, savedenv={}): | 90 | def __init__(self, configuration): |
91 | self.recipecache = None | 91 | self.recipecache = None |
92 | self.skiplist = {} | 92 | self.skiplist = {} |
93 | 93 | ||
94 | self.server_registration_cb = server_registration_cb | ||
95 | |||
96 | self.configuration = configuration | 94 | self.configuration = configuration |
97 | 95 | ||
98 | # Keep a datastore of the initial environment variables and their | 96 | # Keep a datastore of the initial environment variables and their |
@@ -100,6 +98,7 @@ class BBCooker: | |||
100 | # to use environment variables which have been cleaned from the | 98 | # to use environment variables which have been cleaned from the |
101 | # BitBake processes env | 99 | # BitBake processes env |
102 | self.savedenv = bb.data.init() | 100 | self.savedenv = bb.data.init() |
101 | savedenv = configuration.params.environment | ||
103 | for k in savedenv: | 102 | for k in savedenv: |
104 | self.savedenv.setVar(k, savedenv[k]) | 103 | self.savedenv.setVar(k, savedenv[k]) |
105 | 104 | ||
@@ -179,7 +178,7 @@ class BBCooker: | |||
179 | if self.configuration.show_environment: | 178 | if self.configuration.show_environment: |
180 | self.configuration.data.enableTracking() | 179 | self.configuration.data.enableTracking() |
181 | 180 | ||
182 | if not self.server_registration_cb: | 181 | if not self.configuration.server_register_idlecallback: |
183 | self.configuration.data.setVar("BB_WORKERCONTEXT", "1") | 182 | self.configuration.data.setVar("BB_WORKERCONTEXT", "1") |
184 | 183 | ||
185 | filtered_keys = bb.utils.approved_variables() | 184 | filtered_keys = bb.utils.approved_variables() |
@@ -1188,7 +1187,7 @@ class BBCooker: | |||
1188 | return True | 1187 | return True |
1189 | return retval | 1188 | return retval |
1190 | 1189 | ||
1191 | self.server_registration_cb(buildFileIdle, rq) | 1190 | self.configuration.server_register_idlecallback(buildFileIdle, rq) |
1192 | 1191 | ||
1193 | def buildTargets(self, targets, task): | 1192 | def buildTargets(self, targets, task): |
1194 | """ | 1193 | """ |
@@ -1246,7 +1245,7 @@ class BBCooker: | |||
1246 | if universe: | 1245 | if universe: |
1247 | rq.rqdata.warn_multi_bb = True | 1246 | rq.rqdata.warn_multi_bb = True |
1248 | 1247 | ||
1249 | self.server_registration_cb(buildTargetsIdle, rq) | 1248 | self.configuration.server_register_idlecallback(buildTargetsIdle, rq) |
1250 | 1249 | ||
1251 | def generateNewImage(self, image, base_image, package_queue): | 1250 | def generateNewImage(self, image, base_image, package_queue): |
1252 | ''' | 1251 | ''' |