summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJunling Zheng <zhengjunling@huawei.com>2020-06-03 15:38:27 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-04 13:27:32 +0100
commit388250a48f02093ca85a9b20e7ca4f31ebf606bc (patch)
tree4519f7c9fc4ef01bec42765c66687e357f663701 /meta
parentbd0a9ea61b13ce769dd0e9a5622e8085517ca8ef (diff)
downloadpoky-388250a48f02093ca85a9b20e7ca4f31ebf606bc.tar.gz
buildstats.bbclass: Remove useless variables
Remove useless variables bn and bsdir in write_task_data(). (From OE-Core rev: de26d6ce9d2154b5bb51491d9f4bd590cb5a0fc7) Signed-off-by: Junling Zheng <zhengjunling@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/buildstats.bbclass2
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index 2590c60c63..e7d47c74df 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -80,8 +80,6 @@ def get_buildtimedata(var, d):
80 return timediff, cpuperc 80 return timediff, cpuperc
81 81
82def write_task_data(status, logfile, e, d): 82def write_task_data(status, logfile, e, d):
83 bn = d.getVar('BUILDNAME')
84 bsdir = os.path.join(d.getVar('BUILDSTATS_BASE'), bn)
85 with open(os.path.join(logfile), "a") as f: 83 with open(os.path.join(logfile), "a") as f:
86 elapsedtime = get_timedata("__timedata_task", d, e.time) 84 elapsedtime = get_timedata("__timedata_task", d, e.time)
87 if elapsedtime: 85 if elapsedtime: