diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/taskdata.py | 17 |
2 files changed, 8 insertions, 11 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index da7059b17f..57b1cca525 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -808,7 +808,7 @@ class RunQueueData: | |||
808 | invalidate_task(fn, st, True) | 808 | invalidate_task(fn, st, True) |
809 | 809 | ||
810 | # Create and print to the logs a virtual/xxxx -> PN (fn) table | 810 | # Create and print to the logs a virtual/xxxx -> PN (fn) table |
811 | virtmap = taskData.get_providermap() | 811 | virtmap = taskData.get_providermap(prefix="virtual/") |
812 | virtpnmap = {} | 812 | virtpnmap = {} |
813 | for v in virtmap: | 813 | for v in virtmap: |
814 | virtpnmap[v] = self.dataCache.pkg_fn[virtmap[v]] | 814 | virtpnmap[v] = self.dataCache.pkg_fn[virtmap[v]] |
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py index 4d12b3325b..b08387067e 100644 --- a/bitbake/lib/bb/taskdata.py +++ b/bitbake/lib/bb/taskdata.py | |||
@@ -612,17 +612,14 @@ class TaskData: | |||
612 | break | 612 | break |
613 | # self.dump_data() | 613 | # self.dump_data() |
614 | 614 | ||
615 | def get_providermap(self): | 615 | def get_providermap(self, prefix=None): |
616 | virts = [] | 616 | provmap = {} |
617 | virtmap = {} | ||
618 | |||
619 | for name in self.build_names_index: | 617 | for name in self.build_names_index: |
620 | if name.startswith("virtual/"): | 618 | if prefix and not name.startswith(prefix): |
621 | virts.append(name) | 619 | continue |
622 | for v in virts: | 620 | if self.have_build_target(name): |
623 | if self.have_build_target(v): | 621 | provmap[name] = self.fn_index[self.get_provider(name)[0]] |
624 | virtmap[v] = self.fn_index[self.get_provider(v)[0]] | 622 | return provmap |
625 | return virtmap | ||
626 | 623 | ||
627 | def dump_data(self): | 624 | def dump_data(self): |
628 | """ | 625 | """ |