aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-30 14:28:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-30 14:59:18 +0100
commitce51a51482d0900060512b24503714a730d72266 (patch)
treeddd64ca6d8bb2341ee038eb239a8d871f4a06282
parentf60c6a2172bceeb5682dcb738a02c4bf26176566 (diff)
downloadbitbake-ce51a51482d0900060512b24503714a730d72266.tar.gz
taskdata: Add a function to return the virtual/ mapping data
When building an execution task graph, bitbake does resolve virtual/xxx namespaces into specific providers. This data isn't exported anywhere however. This adds a function so that runqueue can at least retrieve this data which can then be used by the system. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/taskdata.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/bb/taskdata.py b/lib/bb/taskdata.py
index 5fab7043c..4d12b3325 100644
--- a/lib/bb/taskdata.py
+++ b/lib/bb/taskdata.py
@@ -612,6 +612,18 @@ class TaskData:
break
# self.dump_data()
+ def get_providermap(self):
+ virts = []
+ virtmap = {}
+
+ for name in self.build_names_index:
+ if name.startswith("virtual/"):
+ virts.append(name)
+ for v in virts:
+ if self.have_build_target(v):
+ virtmap[v] = self.fn_index[self.get_provider(v)[0]]
+ return virtmap
+
def dump_data(self):
"""
Dump some debug information on the internal data structures