summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-30 14:29:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-01 07:43:38 +0100
commit1630f0a1511e6f46cd114b07b4f487997fde15e7 (patch)
treeb33637c177585481367964299d7833885a879403
parent0b96e6f1b58759e09ca5026b1df5a1b534b97cec (diff)
downloadpoky-1630f0a1511e6f46cd114b07b4f487997fde15e7.tar.gz
bitbake: runqueue: Add handling of virtual/xxx provider mappings
This firstly prints debug messages which show how bitbake decided to resolve the virtual/xxx providers which is useful for debugging. If the siggen has a tasks_resolved() method, it calls this, passing in the mappings, allowing that to do things with the resolved names. (Bitbake rev: d473fc84acddfd69a7207affcd89f65ea2ecf730) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/runqueue.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 2b71eed06e..878028aa97 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -797,6 +797,15 @@ class RunQueueData:
797 st = "do_%s" % st 797 st = "do_%s" % st
798 invalidate_task(fn, st, True) 798 invalidate_task(fn, st, True)
799 799
800 # Create and print to the logs a virtual/xxxx -> PN (fn) table
801 virtmap = taskData.get_providermap()
802 virtpnmap = {}
803 for v in virtmap:
804 virtpnmap[v] = self.dataCache.pkg_fn[virtmap[v]]
805 bb.debug(2, "%s resolved to: %s (%s)" % (v, virtpnmap[v], virtmap[v]))
806 if hasattr(bb.parse.siggen, "tasks_resolved"):
807 bb.parse.siggen.tasks_resolved(virtmap, virtpnmap, self.dataCache)
808
800 # Iterate over the task list and call into the siggen code 809 # Iterate over the task list and call into the siggen code
801 dealtwith = set() 810 dealtwith = set()
802 todeal = set(range(len(self.runq_fnid))) 811 todeal = set(range(len(self.runq_fnid)))