summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/taskdata.py
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-10-01 07:43:38 +0100
commit0b96e6f1b58759e09ca5026b1df5a1b534b97cec (patch)
tree8222439859ba7e7816769b89a0189492863eee69 /bitbake/lib/bb/taskdata.py
parent40fae3260c0b4772dfbbf5a6dae57048fbeb572c (diff)
downloadpoky-0b96e6f1b58759e09ca5026b1df5a1b534b97cec.tar.gz
bitbake: 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. (Bitbake rev: ce51a51482d0900060512b24503714a730d72266) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/taskdata.py')
-rw-r--r--bitbake/lib/bb/taskdata.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py
index 5fab7043cc..4d12b3325b 100644
--- a/bitbake/lib/bb/taskdata.py
+++ b/bitbake/lib/bb/taskdata.py
@@ -612,6 +612,18 @@ class TaskData:
612 break 612 break
613 # self.dump_data() 613 # self.dump_data()
614 614
615 def get_providermap(self):
616 virts = []
617 virtmap = {}
618
619 for name in self.build_names_index:
620 if name.startswith("virtual/"):
621 virts.append(name)
622 for v in virts:
623 if self.have_build_target(v):
624 virtmap[v] = self.fn_index[self.get_provider(v)[0]]
625 return virtmap
626
615 def dump_data(self): 627 def dump_data(self):
616 """ 628 """
617 Dump some debug information on the internal data structures 629 Dump some debug information on the internal data structures