diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-11-14 10:53:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-15 11:48:52 +0000 |
commit | 5f98364a62bb4165ff37757d8cb7bd68bd1f2540 (patch) | |
tree | 4b4630518dc57f66a582d9ea2be4bedfc1340af4 /bitbake/lib | |
parent | 533cf81f8b43850324374c92ce78f2b6ffde9e72 (diff) | |
download | poky-5f98364a62bb4165ff37757d8cb7bd68bd1f2540.tar.gz |
bitbake: toaster: fix path to buildstats file
The buildstats file path changes based on the
optional PE variable that may be defined for a
recipe.
The toasterui simply ignored the PE value, and
as such it didn't correctly reach buildstats files
for some of the tasks.
This patch fixes the issue.
[YOCTO #5073]
(Bitbake rev: 97b8ab88edc7c8dfb26b4cf305701ec96e52cc4f)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 6b6c4f3d9e..7eac734183 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -386,7 +386,11 @@ class BuildInfoHelper(object): | |||
386 | target = t.target | 386 | target = t.target |
387 | machine = self.internal_state['build'].machine | 387 | machine = self.internal_state['build'].machine |
388 | buildname = self.internal_state['build'].build_name | 388 | buildname = self.internal_state['build'].build_name |
389 | package = task_object.recipe.name + "-" + task_object.recipe.version.strip(":") | 389 | pe, pv = task_object.recipe.version.split(":",1) |
390 | if len(pe) > 0: | ||
391 | package = task_object.recipe.name + "-" + pe + "_" + pv | ||
392 | else: | ||
393 | package = task_object.recipe.name + "-" + pv | ||
390 | 394 | ||
391 | build_stats_path.append(build_stats_format.format(tmpdir=self.tmp_dir, target=target, | 395 | build_stats_path.append(build_stats_format.format(tmpdir=self.tmp_dir, target=target, |
392 | machine=machine, buildname=buildname, | 396 | machine=machine, buildname=buildname, |