summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/buildinfohelper.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-17 14:54:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-18 12:18:19 +0000
commit6c12efa5c2d910161983c97244468ecd49483af0 (patch)
tree43ee4aa040e6c68be2ebb2b35c582a950a3ddd59 /bitbake/lib/bb/ui/buildinfohelper.py
parent28ea1a1c957241ec59c88b27e18d95ac837cc180 (diff)
downloadpoky-6c12efa5c2d910161983c97244468ecd49483af0.tar.gz
bitbake: buildinfohelper: Update for buildstats layout change
This updates buildinfo helper for the recent buildstats layout change (Bitbake rev: 30311bbe667e9f22de17fae00ff58da06a7c3e23) 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.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 04ce23afcb..279c5c7823 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -866,12 +866,10 @@ class BuildInfoHelper(object):
866 866
867 def _get_path_information(self, task_object): 867 def _get_path_information(self, task_object):
868 assert isinstance(task_object, Task) 868 assert isinstance(task_object, Task)
869 build_stats_format = "{tmpdir}/buildstats/{target}-{machine}/{buildname}/{package}/" 869 build_stats_format = "{tmpdir}/buildstats/{buildname}/{package}/"
870 build_stats_path = [] 870 build_stats_path = []
871 871
872 for t in self.internal_state['targets']: 872 for t in self.internal_state['targets']:
873 target = t.target
874 machine = self.internal_state['build'].machine
875 buildname = self.internal_state['build'].build_name 873 buildname = self.internal_state['build'].build_name
876 pe, pv = task_object.recipe.version.split(":",1) 874 pe, pv = task_object.recipe.version.split(":",1)
877 if len(pe) > 0: 875 if len(pe) > 0:
@@ -879,8 +877,8 @@ class BuildInfoHelper(object):
879 else: 877 else:
880 package = task_object.recipe.name + "-" + pv 878 package = task_object.recipe.name + "-" + pv
881 879
882 build_stats_path.append(build_stats_format.format(tmpdir=self.tmp_dir, target=target, 880 build_stats_path.append(build_stats_format.format(tmpdir=self.tmp_dir,
883 machine=machine, buildname=buildname, 881 buildname=buildname,
884 package=package)) 882 package=package))
885 883
886 return build_stats_path 884 return build_stats_path