diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-03 10:41:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-15 09:31:50 +0100 |
commit | 5deaa5df730a8a846f3192b4a639b7a2a72c1b71 (patch) | |
tree | e489fa8302f9531ff077b6cacde31d52c87c12fd /lib | |
parent | e851169acfebba404514135bf512e6f045739a13 (diff) | |
download | bitbake-5deaa5df730a8a846f3192b4a639b7a2a72c1b71.tar.gz |
runqueue: Drop unused BB_SETSCENE_VERIFY_FUNCTION2
Nothing in OE-Core uses this and hasn't since 2017. It wasn't needed by core
metadata since the switch to recipe specific sysroots.
Since this function would be hard to implement with the planned changes to
runqueue, drop it which allows simplification and further code cleanup.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/runqueue.py | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index b19b524e7..19af73cb3 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1194,7 +1194,6 @@ class RunQueue: self.stamppolicy = cfgData.getVar("BB_STAMP_POLICY") or "perfile" self.hashvalidate = cfgData.getVar("BB_HASHCHECK_FUNCTION") or None - self.setsceneverify = cfgData.getVar("BB_SETSCENE_VERIFY_FUNCTION2") or None self.depvalidate = cfgData.getVar("BB_SETSCENE_DEPVALID") or None self.state = runQueuePrepare @@ -1819,32 +1818,7 @@ class RunQueueExecuteTasks(RunQueueExecute): found = True self.rq.scenequeue_covered.add(tid) - logger.debug(1, 'Skip list (pre setsceneverify) %s', sorted(self.rq.scenequeue_covered)) - - # Allow the metadata to elect for setscene tasks to run anyway - covered_remove = set() - if self.rq.setsceneverify: - invalidtasks = [] - tasknames = {} - fns = {} - for tid in self.rqdata.runtaskentries: - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] - fns[tid] = taskfn - tasknames[tid] = taskname - if 'noexec' in taskdep and taskname in taskdep['noexec']: - continue - if self.rq.check_stamp_task(tid, taskname + "_setscene", cache=self.stampcache): - logger.debug(2, 'Setscene stamp current for task %s', tid) - continue - if self.rq.check_stamp_task(tid, taskname, recurse = True, cache=self.stampcache): - logger.debug(2, 'Normal stamp current for task %s', tid) - continue - invalidtasks.append(tid) - - call = self.rq.setsceneverify + "(covered, tasknames, fns, d, invalidtasks=invalidtasks)" - locs = { "covered" : self.rq.scenequeue_covered, "tasknames" : tasknames, "fns" : fns, "d" : self.cooker.data, "invalidtasks" : invalidtasks } - covered_remove = bb.utils.better_eval(call, locs) + logger.debug(1, 'Skip list %s', sorted(self.rq.scenequeue_covered)) def removecoveredtask(tid): (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) @@ -1852,9 +1826,9 @@ class RunQueueExecuteTasks(RunQueueExecute): bb.build.del_stamp(taskname, self.rqdata.dataCaches[mc], taskfn) self.rq.scenequeue_covered.remove(tid) - toremove = covered_remove | self.rq.scenequeue_notcovered + toremove = self.rq.scenequeue_notcovered for task in toremove: - logger.debug(1, 'Not skipping task %s due to setsceneverify', task) + logger.debug(1, 'Not skipping task %s', task) while toremove: covered_remove = [] for task in toremove: @@ -1871,7 +1845,6 @@ class RunQueueExecuteTasks(RunQueueExecute): logger.debug(1, 'Full skip list %s', self.rq.scenequeue_covered) - for mc in self.rqdata.dataCaches: target_pairs = [] for tid in self.rqdata.target_tids: |