summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-01 09:37:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-01 11:31:07 +0100
commite2fbe728769f09ef4178e2ef4d69a2f60ffe3ebb (patch)
tree5ef602da42db390540792ac074225d9f612c4b29
parent3daa9001269e5b9156d0eb3299d2628d2d219fff (diff)
downloadbitbake-contrib-e2fbe728769f09ef4178e2ef4d69a2f60ffe3ebb.tar.gz
bitbake-contrib-e2fbe728769f09ef4178e2ef4d69a2f60ffe3ebb.tar.bz2
bitbake-contrib-e2fbe728769f09ef4178e2ef4d69a2f60ffe3ebb.zip
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] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cooker.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 1a5e0038b6..81027db265 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -678,12 +678,12 @@ class BBCooker:
depend_tree["pn"][pn][ei] = vars(self.recipecaches[mc])[ei][taskfn]
+ dotname = "%s.%s" % (pn, bb.runqueue.taskname_from_tid(tid))
+ if not dotname in depend_tree["tdepends"]:
+ depend_tree["tdepends"][dotname] = []
for dep in rq.rqdata.runtaskentries[tid].depends:
(depmc, depfn, deptaskname, deptaskfn) = bb.runqueue.split_tid_mcfn(dep)
deppn = self.recipecaches[mc].pkg_fn[deptaskfn]
- dotname = "%s.%s" % (pn, bb.runqueue.taskname_from_tid(tid))
- if not dotname in depend_tree["tdepends"]:
- depend_tree["tdepends"][dotname] = []
depend_tree["tdepends"][dotname].append("%s.%s" % (deppn, bb.runqueue.taskname_from_tid(dep)))
if taskfn not in seen_fns:
seen_fns.append(taskfn)