diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-05-23 16:22:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-28 08:29:18 +0100 |
commit | 8cdc7926ecc3afd01521bad130a3921348b40cc5 (patch) | |
tree | 8301ec15eee99af1399f0509be1af0266a1863e9 /bitbake | |
parent | 8ae64ff2e4f01cbaff7d9b4cc7d69e1cca843feb (diff) | |
download | poky-8cdc7926ecc3afd01521bad130a3921348b40cc5.tar.gz |
bitbake: bitbake-layers: show-cross-depends: add support for RRECOMMENDS
RRECOMMENDS must be satisfied at build time, and these could cross layer
boundaries, so report these if they exist.
(Bitbake rev: 5569b3dca61e6d962494ca65c7aad09b2eb2ae63)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/bitbake-layers | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index 135096bce7..302f020ba1 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
@@ -634,6 +634,26 @@ The .bbappend file can impact the dependency. | |||
634 | self.bbhandler.cooker_data)[0][0] | 634 | self.bbhandler.cooker_data)[0][0] |
635 | self.check_cross_depends("RDEPENDS", layername, f, best, options.show_filenames, ignore_layers) | 635 | self.check_cross_depends("RDEPENDS", layername, f, best, options.show_filenames, ignore_layers) |
636 | 636 | ||
637 | # The RRECOMMENDS | ||
638 | all_rrecs = self.bbhandler.cooker_data.runrecs[f].values() | ||
639 | # Remove the duplicated or null one. | ||
640 | sorted_rrecs = {} | ||
641 | # The all_rrecs is the list in list, so we need two for loops | ||
642 | for k1 in all_rrecs: | ||
643 | for k2 in k1: | ||
644 | sorted_rrecs[k2] = 1 | ||
645 | all_rrecs = sorted_rrecs.keys() | ||
646 | for rrec in all_rrecs: | ||
647 | all_p = bb.providers.getRuntimeProviders(self.bbhandler.cooker_data, rrec) | ||
648 | if all_p: | ||
649 | if f in all_p: | ||
650 | # The recipe provides this one itself, ignore | ||
651 | continue | ||
652 | best = bb.providers.filterProvidersRunTime(all_p, rrec, | ||
653 | self.bbhandler.config_data, | ||
654 | self.bbhandler.cooker_data)[0][0] | ||
655 | self.check_cross_depends("RRECOMMENDS", layername, f, best, options.show_filenames, ignore_layers) | ||
656 | |||
637 | # The inherit class | 657 | # The inherit class |
638 | cls_re = re.compile('classes/') | 658 | cls_re = re.compile('classes/') |
639 | if f in self.bbhandler.cooker_data.inherits: | 659 | if f in self.bbhandler.cooker_data.inherits: |