summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-03 22:57:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-15 10:28:12 +0100
commit4a1cb07df2c93561f82fdf62bf6a2729f3e36add (patch)
treeb57e0b006a1b7492c73c55b6443ff44020a3608f /bitbake/lib/bb
parenta9e759be656a022df81899e4be600dfcfecaff1e (diff)
downloadopenembedded-core-contrib-4a1cb07df2c93561f82fdf62bf6a2729f3e36add.tar.gz
bitbake: runqueue: Further scheduler buildable tasks cleanup
The code for setting up buildable tasks can be simplified. (Bitbake rev: ce3cd2df5b034f8dbdcf9834e8b9a393b6b01aad) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/runqueue.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 78e09945a03..dac0cd9cb99 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -196,11 +196,6 @@ class RunQueueScheduler(object):
if self.rq.can_start_task():
return self.next_buildable_task()
- def initbuildable(self):
- for tid in self.rqdata.runtaskentries:
- if tid in self.rq.runq_buildable:
- self.buildable.append(tid)
-
def newbuildable(self, task):
self.buildable.append(task)
@@ -2504,7 +2499,7 @@ def start_runqueue_tasks(rqexec):
# Mark initial buildable tasks
for tid in rqexec.rqdata.runtaskentries:
if len(rqexec.rqdata.runtaskentries[tid].depends) == 0:
- rqexec.runq_buildable.add(tid)
+ rqexec.setbuildable(tid)
if len(rqexec.rqdata.runtaskentries[tid].revdeps) > 0 and rqexec.rqdata.runtaskentries[tid].revdeps.issubset(rqexec.scenequeue_covered):
rqexec.scenequeue_covered.add(tid)
@@ -2527,8 +2522,6 @@ def start_runqueue_tasks(rqexec):
for task in self.rq.scenequeue_notcovered:
logger.debug(1, 'Not skipping task %s', task)
- rqexec.sched.initbuildable()
-
class TaskFailure(Exception):
"""
Exception raised when a task in a runqueue fails