Skip to contentSkip to conversation

cooker: Fix task-depends.dot for multiconfig targets

PATCH New Richard Purdie 1 participant 1 message Nov 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cooker: Fix task-depends.dot for multiconfig targets

The right hand side of dependencies in the task dependency file generated by bitbake -g was missing multiconfig prefixes, corrupting the data. Fix this.

[YOCTO #14621]

---
 lib/bb/cooker.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
lib/bb/cooker.py +3 -1
index b2d8bbdbac..08e45e79d0 100644
@@ -814,7 +814,9 @@ class BBCooker:
             for dep in rq.rqdata.runtaskentries[tid].depends:
                 (depmc, depfn, _, deptaskfn) = bb.runqueue.split_tid_mcfn(dep)
                 deppn = self.recipecaches[depmc].pkg_fn[deptaskfn]
-                depend_tree["tdepends"][dotname].append("%s.%s" % (deppn, bb.runqueue.taskname_from_tid(dep)))
+                if depmc:
+                    depmc = "mc:" + depmc + ":"
+                depend_tree["tdepends"][dotname].append("%s%s.%s" % (depmc, deppn, bb.runqueue.taskname_from_tid(dep)))
             if taskfn not in seen_fns:
                 seen_fns.append(taskfn)
                 packages = []
Signature · 1 line
2.32.0