diff options
author | David Reyna <David.Reyna@windriver.com> | 2017-03-06 14:05:07 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-07 22:21:47 +0000 |
commit | 35ce834167b186c748793a95cb3d900cc6660dc7 (patch) | |
tree | 9d0878ac327761b9a839381607cc45100dbaf160 /bitbake/lib/bb/ui/buildinfohelper.py | |
parent | 2345af9b4829ed3eed5abf60f2483055649f8af7 (diff) | |
download | poky-35ce834167b186c748793a95cb3d900cc6660dc7.tar.gz |
bitbake: toaster: resolve missing 'native[sdk]:' prefixes
Some task events are missing the 'virtual:native[sdk]:' prefixes.
The Toaster has code to help match missing prefixes, but needs
additional help resolving between 'native:' and 'nativesdk:', by
way of the '_package' event field.
[YOCTO #10849]
(Bitbake rev: e455e40ba309837903b9e2d5f1dff55cce1135de)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/buildinfohelper.py')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 5ed150dbb0..92d1a1c394 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -1258,6 +1258,14 @@ class BuildInfoHelper(object): | |||
1258 | candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)] | 1258 | candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)] |
1259 | if len(candidates) == 1: | 1259 | if len(candidates) == 1: |
1260 | identifier = candidates[0] | 1260 | identifier = candidates[0] |
1261 | elif len(candidates) > 1 and hasattr(event,'_package'): | ||
1262 | if 'native-' in event._package: | ||
1263 | identifier = 'native:' + identifier | ||
1264 | if 'nativesdk-' in event._package: | ||
1265 | identifier = 'nativesdk:' + identifier | ||
1266 | candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)] | ||
1267 | if len(candidates) == 1: | ||
1268 | identifier = candidates[0] | ||
1261 | 1269 | ||
1262 | assert identifier in self.internal_state['taskdata'] | 1270 | assert identifier in self.internal_state['taskdata'] |
1263 | identifierlist = identifier.split(":") | 1271 | identifierlist = identifier.split(":") |