summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 5fab7043..4d12b332 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