summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildstats.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-03 11:21:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-05 10:23:53 -0800
commitb1aeaa8b0dcf27ef8dcd87279901c6f5817d9e94 (patch)
tree62b315fdc05e03677922a0161fdc7a39e2985466 /meta/classes/buildstats.bbclass
parent22f0df2aa737bda1ae3bce862ee5ceba5b2d204b (diff)
downloadpoky-b1aeaa8b0dcf27ef8dcd87279901c6f5817d9e94.tar.gz
meta: Replace bb.data.expand(xxx, d) -> d.expand(xxx)
sed \ -e 's:bb.data.\(expand([^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -i `grep -ril bb.data.expand *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildstats.bbclass')
-rw-r--r--meta/classes/buildstats.bbclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index efd3426c16..dc9afb101b 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -132,7 +132,7 @@ def get_timedata(var, data):
132def write_task_data(status, logfile, dev, e): 132def write_task_data(status, logfile, dev, e):
133 bn = get_bn(e) 133 bn = get_bn(e)
134 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn) 134 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
135 taskdir = os.path.join(bsdir, bb.data.expand("${PF}", e.data)) 135 taskdir = os.path.join(bsdir, e.data.expand("${PF}"))
136 file = open(os.path.join(logfile), "a") 136 file = open(os.path.join(logfile), "a")
137 timedata = get_timedata("__timedata_task", e.data) 137 timedata = get_timedata("__timedata_task", e.data)
138 if timedata: 138 if timedata:
@@ -205,7 +205,7 @@ python run_buildstats () {
205 bn = get_bn(e) 205 bn = get_bn(e)
206 device = get_device(e) 206 device = get_device(e)
207 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn) 207 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
208 taskdir = os.path.join(bsdir, bb.data.expand("${PF}", e.data)) 208 taskdir = os.path.join(bsdir, e.data.expand("${PF}"))
209 build_time = os.path.join(bsdir, "build_stats") 209 build_time = os.path.join(bsdir, "build_stats")
210 file = open(build_time, "a") 210 file = open(build_time, "a")
211 ######################################################################## 211 ########################################################################
@@ -230,7 +230,7 @@ python run_buildstats () {
230 bn = get_bn(e) 230 bn = get_bn(e)
231 device = get_device(e) 231 device = get_device(e)
232 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn) 232 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
233 taskdir = os.path.join(bsdir, bb.data.expand("${PF}", e.data)) 233 taskdir = os.path.join(bsdir, e.data.expand("${PF}"))
234 if device != "NoLogicalDevice": 234 if device != "NoLogicalDevice":
235 set_diskdata("__diskdata_task", device, e.data) 235 set_diskdata("__diskdata_task", device, e.data)
236 set_timedata("__timedata_task", e.data) 236 set_timedata("__timedata_task", e.data)
@@ -248,7 +248,7 @@ python run_buildstats () {
248 bn = get_bn(e) 248 bn = get_bn(e)
249 device = get_device(e) 249 device = get_device(e)
250 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn) 250 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
251 taskdir = os.path.join(bsdir, bb.data.expand("${PF}", e.data)) 251 taskdir = os.path.join(bsdir, e.data.expand("${PF}"))
252 write_task_data("passed", os.path.join(taskdir, e.task), device, e) 252 write_task_data("passed", os.path.join(taskdir, e.task), device, e)
253 if e.task == "do_rootfs": 253 if e.task == "do_rootfs":
254 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn) 254 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
@@ -263,7 +263,7 @@ python run_buildstats () {
263 bn = get_bn(e) 263 bn = get_bn(e)
264 device = get_device(e) 264 device = get_device(e)
265 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn) 265 bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
266 taskdir = os.path.join(bsdir, bb.data.expand("${PF}", e.data)) 266 taskdir = os.path.join(bsdir, e.data.expand("${PF}"))
267 write_task_data("failed", os.path.join(taskdir, e.task), device, e) 267 write_task_data("failed", os.path.join(taskdir, e.task), device, e)
268 ######################################################################## 268 ########################################################################
269 # Lets make things easier and tell people where the build failed in 269 # Lets make things easier and tell people where the build failed in
@@ -272,7 +272,7 @@ python run_buildstats () {
272 ######################################################################## 272 ########################################################################
273 build_status = os.path.join(bsdir, "build_stats") 273 build_status = os.path.join(bsdir, "build_stats")
274 file = open(build_status,"a") 274 file = open(build_status,"a")
275 file.write(bb.data.expand("Failed at: ${PF} at task: %s \n" % e.task, e.data)) 275 file.write(e.data.expand("Failed at: ${PF} at task: %s \n" % e.task))
276 file.close() 276 file.close()
277 277
278} 278}