diff options
Diffstat (limited to 'bitbake/lib/bb/taskdata.py')
-rw-r--r-- | bitbake/lib/bb/taskdata.py | 17 |
1 files changed, 7 insertions, 10 deletions
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 | """ |