[bitbake-devel] [PATCH 05/10] runqueue: Wait for covered tasks to complete before trying setscene

Richard Purdie richard.purdie at linuxfoundation.org
Wed Aug 14 13:53:12 UTC 2019


If tasks are in the covered list of tasks for a given setscene task,
it needs to wait for those to complete before we can start.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/runqueue.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 29786c400b..9acad7af8e 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1920,6 +1920,10 @@ class RunQueueExecute:
                             if nexttask in self.sq_deferred:
                                 del self.sq_deferred[nexttask]
                             return True
+                    # If covered tasks are running, need to wait for them to complete
+                    for t in self.sqdata.sq_covered_tasks[nexttask]:
+                        if t in self.runq_running and t not in self.runq_complete:
+                            continue
                     if nexttask in self.sq_deferred:
                         if self.sq_deferred[nexttask] not in self.runq_complete:
                             continue
-- 
2.20.1



More information about the bitbake-devel mailing list