diff options
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 3fc384d5bb..5a5164b7b5 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -188,8 +188,8 @@ class RunQueueData: | |||
188 | self.targets = targets | 188 | self.targets = targets |
189 | self.rq = rq | 189 | self.rq = rq |
190 | 190 | ||
191 | self.stampwhitelist = bb.data.getVar("BB_STAMP_WHITELIST", cfgData, 1) or "" | 191 | self.stampwhitelist = cfgData.getVar("BB_STAMP_WHITELIST", 1) or "" |
192 | self.multi_provider_whitelist = (bb.data.getVar("MULTI_PROVIDER_WHITELIST", cfgData, 1) or "").split() | 192 | self.multi_provider_whitelist = (cfgData.getVar("MULTI_PROVIDER_WHITELIST", 1) or "").split() |
193 | 193 | ||
194 | self.reset() | 194 | self.reset() |
195 | 195 | ||
@@ -765,9 +765,9 @@ class RunQueue: | |||
765 | self.cfgData = cfgData | 765 | self.cfgData = cfgData |
766 | self.rqdata = RunQueueData(self, cooker, cfgData, dataCache, taskData, targets) | 766 | self.rqdata = RunQueueData(self, cooker, cfgData, dataCache, taskData, targets) |
767 | 767 | ||
768 | self.stamppolicy = bb.data.getVar("BB_STAMP_POLICY", cfgData, True) or "perfile" | 768 | self.stamppolicy = cfgData.getVar("BB_STAMP_POLICY", True) or "perfile" |
769 | self.hashvalidate = bb.data.getVar("BB_HASHCHECK_FUNCTION", cfgData, True) or None | 769 | self.hashvalidate = cfgData.getVar("BB_HASHCHECK_FUNCTION", True) or None |
770 | self.setsceneverify = bb.data.getVar("BB_SETSCENE_VERIFY_FUNCTION", cfgData, True) or None | 770 | self.setsceneverify = cfgData.getVar("BB_SETSCENE_VERIFY_FUNCTION", True) or None |
771 | 771 | ||
772 | self.state = runQueuePrepare | 772 | self.state = runQueuePrepare |
773 | 773 | ||
@@ -1007,8 +1007,8 @@ class RunQueueExecute: | |||
1007 | self.cfgData = rq.cfgData | 1007 | self.cfgData = rq.cfgData |
1008 | self.rqdata = rq.rqdata | 1008 | self.rqdata = rq.rqdata |
1009 | 1009 | ||
1010 | self.number_tasks = int(bb.data.getVar("BB_NUMBER_THREADS", self.cfgData, 1) or 1) | 1010 | self.number_tasks = int(self.cfgData.getVar("BB_NUMBER_THREADS", 1) or 1) |
1011 | self.scheduler = bb.data.getVar("BB_SCHEDULER", self.cfgData, 1) or "speed" | 1011 | self.scheduler = self.cfgData.getVar("BB_SCHEDULER", 1) or "speed" |
1012 | 1012 | ||
1013 | self.runq_buildable = [] | 1013 | self.runq_buildable = [] |
1014 | self.runq_running = [] | 1014 | self.runq_running = [] |
@@ -1132,9 +1132,9 @@ class RunQueueExecute: | |||
1132 | if umask: | 1132 | if umask: |
1133 | os.umask(umask) | 1133 | os.umask(umask) |
1134 | 1134 | ||
1135 | bb.data.setVar("BB_WORKERCONTEXT", "1", self.cooker.configuration.data) | 1135 | self.cooker.configuration.data.setVar("BB_WORKERCONTEXT", "1") |
1136 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data) | 1136 | self.cooker.configuration.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self) |
1137 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data) | 1137 | self.cooker.configuration.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn) |
1138 | bb.parse.siggen.set_taskdata(self.rqdata.hashes, self.rqdata.hash_deps) | 1138 | bb.parse.siggen.set_taskdata(self.rqdata.hashes, self.rqdata.hash_deps) |
1139 | ret = 0 | 1139 | ret = 0 |
1140 | try: | 1140 | try: |
@@ -1255,7 +1255,7 @@ class RunQueueExecuteTasks(RunQueueExecute): | |||
1255 | if type(obj) is type and | 1255 | if type(obj) is type and |
1256 | issubclass(obj, RunQueueScheduler)) | 1256 | issubclass(obj, RunQueueScheduler)) |
1257 | 1257 | ||
1258 | user_schedulers = bb.data.getVar("BB_SCHEDULERS", self.cfgData, True) | 1258 | user_schedulers = self.cfgData.getVar("BB_SCHEDULERS", True) |
1259 | if user_schedulers: | 1259 | if user_schedulers: |
1260 | for sched in user_schedulers.split(): | 1260 | for sched in user_schedulers.split(): |
1261 | if not "." in sched: | 1261 | if not "." in sched: |
@@ -1702,8 +1702,8 @@ class runQueueTaskCompleted(runQueueEvent): | |||
1702 | """ | 1702 | """ |
1703 | 1703 | ||
1704 | def check_stamp_fn(fn, taskname, d): | 1704 | def check_stamp_fn(fn, taskname, d): |
1705 | rqexe = bb.data.getVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", d) | 1705 | rqexe = d.getVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY") |
1706 | fn = bb.data.getVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", d) | 1706 | fn = d.getVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2") |
1707 | fnid = rqexe.rqdata.taskData.getfn_id(fn) | 1707 | fnid = rqexe.rqdata.taskData.getfn_id(fn) |
1708 | taskid = rqexe.rqdata.get_task_id(fnid, taskname) | 1708 | taskid = rqexe.rqdata.get_task_id(fnid, taskname) |
1709 | if taskid is not None: | 1709 | if taskid is not None: |