summaryrefslogtreecommitdiff
path: root/meta/classes/toaster.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-18 13:50:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-18 13:50:54 +0000
commite1a37899da56014693f08d1c39cb6ec0a4ed2bf4 (patch)
tree4dcd00607df7a80ace532016c86d68cfb84b6ddb /meta/classes/toaster.bbclass
parent4ca1214fb99e9dd4096fab7f32a3050313dfca54 (diff)
downloadopenembedded-core-e1a37899da56014693f08d1c39cb6ec0a4ed2bf4.tar.gz
openembedded-core-e1a37899da56014693f08d1c39cb6ec0a4ed2bf4.tar.bz2
openembedded-core-e1a37899da56014693f08d1c39cb6ec0a4ed2bf4.zip
buildstats-summary/toaster: Cope with removal of get_bn()
The buildstats changes removed the no longer needed get_bn() function, replace this with references to BUILDNAME. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/toaster.bbclass')
-rw-r--r--meta/classes/toaster.bbclass4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index 7af495ed7c..4fb52a969e 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -189,9 +189,7 @@ python toaster_collect_task_stats() {
lock = bb.utils.lockfile(e.data.expand("${TOPDIR}/toaster.lock"), False, True)
with open(os.path.join(e.data.getVar('BUILDSTATS_BASE', True), "toasterstatlist"), "a") as fout:
- bn = get_bn(e)
- bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
- taskdir = os.path.join(bsdir, e.data.expand("${PF}"))
+ taskdir = e.data.expand("${BUILDSTATS_BASE}/${BUILDNAME}/${PF}")
fout.write("%s::%s::%s::%s\n" % (e.taskfile, e.taskname, os.path.join(taskdir, e.task), e.data.expand("${PN}")))
bb.utils.unlockfile(lock)