summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-01 08:37:37 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-03 10:14:13 (GMT)
commit66b8c16659ecfff41deea92256b10b370d4b650f (patch)
tree48276dabc51b752fb7b69c3b3a1e678f521cf439
parentc760d99466c270d18294f5a07ccd91185fa0ef83 (diff)
downloadpoky-66b8c16659ecfff41deea92256b10b370d4b650f.tar.gz
bitbake: cooker: Ensure all tasks are shown in task dependency tree
"bitbake -g m4-native -c do_unpack" doesn't list any dependencies in task-depends.dot. This is because no header describing the task was added unless a task has dependencies. Tweak the code to fix this. [YOCTO #10893] (Bitbake rev: e2fbe728769f09ef4178e2ef4d69a2f60ffe3ebb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/cooker.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 1a5e003..81027db 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -678,12 +678,12 @@ class BBCooker:
678 depend_tree["pn"][pn][ei] = vars(self.recipecaches[mc])[ei][taskfn] 678 depend_tree["pn"][pn][ei] = vars(self.recipecaches[mc])[ei][taskfn]
679 679
680 680
681 dotname = "%s.%s" % (pn, bb.runqueue.taskname_from_tid(tid))
682 if not dotname in depend_tree["tdepends"]:
683 depend_tree["tdepends"][dotname] = []
681 for dep in rq.rqdata.runtaskentries[tid].depends: 684 for dep in rq.rqdata.runtaskentries[tid].depends:
682 (depmc, depfn, deptaskname, deptaskfn) = bb.runqueue.split_tid_mcfn(dep) 685 (depmc, depfn, deptaskname, deptaskfn) = bb.runqueue.split_tid_mcfn(dep)
683 deppn = self.recipecaches[mc].pkg_fn[deptaskfn] 686 deppn = self.recipecaches[mc].pkg_fn[deptaskfn]
684 dotname = "%s.%s" % (pn, bb.runqueue.taskname_from_tid(tid))
685 if not dotname in depend_tree["tdepends"]:
686 depend_tree["tdepends"][dotname] = []
687 depend_tree["tdepends"][dotname].append("%s.%s" % (deppn, bb.runqueue.taskname_from_tid(dep))) 687 depend_tree["tdepends"][dotname].append("%s.%s" % (deppn, bb.runqueue.taskname_from_tid(dep)))
688 if taskfn not in seen_fns: 688 if taskfn not in seen_fns:
689 seen_fns.append(taskfn) 689 seen_fns.append(taskfn)