summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-06 14:20:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-15 10:28:12 +0100
commit5b57335ae4365c77562d2b1e48d62b551851ee9d (patch)
tree82d88295b9877866807b3902fc6157778612d54d /bitbake
parentb051b819bd263c3b754f76b07bba3f89ced2093c (diff)
downloadpoky-5b57335ae4365c77562d2b1e48d62b551851ee9d.tar.gz
bitbake: runqueue: Tweak comments and debug code
Add some extra comments to build_scenequeue_data() and fix the debug code so it actually works. (Bitbake rev: 8ea6d8193fc89b4596da69e400fbc50e5a443f9f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index ec98411fc3..31ce89abbe 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -2373,6 +2373,7 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
2373 2373
2374 rqdata.init_progress_reporter.next_stage(len(rqdata.runtaskentries)) 2374 rqdata.init_progress_reporter.next_stage(len(rqdata.runtaskentries))
2375 2375
2376 # Sanity check all dependencies could be changed to setscene task references
2376 for taskcounter, tid in enumerate(rqdata.runtaskentries): 2377 for taskcounter, tid in enumerate(rqdata.runtaskentries):
2377 if tid in rqdata.runq_setscene_tids: 2378 if tid in rqdata.runq_setscene_tids:
2378 deps = set() 2379 deps = set()
@@ -2422,14 +2423,16 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
2422 rqdata.init_progress_reporter.next_stage() 2423 rqdata.init_progress_reporter.next_stage()
2423 2424
2424 #for tid in sq_revdeps_squash: 2425 #for tid in sq_revdeps_squash:
2426 # data = ""
2425 # for dep in sq_revdeps_squash[tid]: 2427 # for dep in sq_revdeps_squash[tid]:
2426 # data = data + "\n %s" % dep 2428 # data = data + "\n %s" % dep
2427 # bb.warn("Task %s_setscene: is %s " % (tid, data 2429 # bb.warn("Task %s_setscene: is %s " % (tid, data))
2428 2430
2429 sqdata.sq_revdeps = sq_revdeps_squash 2431 sqdata.sq_revdeps = sq_revdeps_squash
2430 sqdata.sq_revdeps2 = copy.deepcopy(sqdata.sq_revdeps) 2432 sqdata.sq_revdeps2 = copy.deepcopy(sqdata.sq_revdeps)
2431 sqdata.sq_covered_tasks = sq_collated_deps 2433 sqdata.sq_covered_tasks = sq_collated_deps
2432 2434
2435 # Build reverse version of revdeps to populate deps structure
2433 for tid in sqdata.sq_revdeps: 2436 for tid in sqdata.sq_revdeps:
2434 sqdata.sq_deps[tid] = set() 2437 sqdata.sq_deps[tid] = set()
2435 for tid in sqdata.sq_revdeps: 2438 for tid in sqdata.sq_revdeps: