summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.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/sanity.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/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass18
1 files changed, 9 insertions, 9 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index d8835dae64..1b941ac58c 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -13,12 +13,12 @@ def raise_sanity_error(msg):
13 13
14def check_conf_exists(fn, data): 14def check_conf_exists(fn, data):
15 bbpath = [] 15 bbpath = []
16 fn = bb.data.expand(fn, data) 16 fn = data.expand(fn)
17 vbbpath = data.getVar("BBPATH") 17 vbbpath = data.getVar("BBPATH")
18 if vbbpath: 18 if vbbpath:
19 bbpath += vbbpath.split(":") 19 bbpath += vbbpath.split(":")
20 for p in bbpath: 20 for p in bbpath:
21 currname = os.path.join(bb.data.expand(p, data), fn) 21 currname = os.path.join(data.expand(p), fn)
22 if os.access(currname, os.R_OK): 22 if os.access(currname, os.R_OK):
23 return True 23 return True
24 return False 24 return False
@@ -411,16 +411,16 @@ def check_sanity(e):
411 f.write(current_abi) 411 f.write(current_abi)
412 elif abi == "2" and current_abi == "3": 412 elif abi == "2" and current_abi == "3":
413 bb.note("Converting staging from layout version 2 to layout version 3") 413 bb.note("Converting staging from layout version 2 to layout version 3")
414 os.system(bb.data.expand("mv ${TMPDIR}/staging ${TMPDIR}/sysroots", e.data)) 414 os.system(e.data.expand("mv ${TMPDIR}/staging ${TMPDIR}/sysroots"))
415 os.system(bb.data.expand("ln -s sysroots ${TMPDIR}/staging", e.data)) 415 os.system(e.data.expand("ln -s sysroots ${TMPDIR}/staging"))
416 os.system(bb.data.expand("cd ${TMPDIR}/stamps; for i in */*do_populate_staging; do new=`echo $i | sed -e 's/do_populate_staging/do_populate_sysroot/'`; mv $i $new; done", e.data)) 416 os.system(e.data.expand("cd ${TMPDIR}/stamps; for i in */*do_populate_staging; do new=`echo $i | sed -e 's/do_populate_staging/do_populate_sysroot/'`; mv $i $new; done"))
417 f = file(abifile, "w") 417 f = file(abifile, "w")
418 f.write(current_abi) 418 f.write(current_abi)
419 elif abi == "3" and current_abi == "4": 419 elif abi == "3" and current_abi == "4":
420 bb.note("Converting staging layout from version 3 to layout version 4") 420 bb.note("Converting staging layout from version 3 to layout version 4")
421 if os.path.exists(bb.data.expand("${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}", e.data)): 421 if os.path.exists(e.data.expand("${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}")):
422 os.system(bb.data.expand("mv ${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS} ${STAGING_BINDIR_CROSS}", e.data)) 422 os.system(e.data.expand("mv ${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS} ${STAGING_BINDIR_CROSS}"))
423 os.system(bb.data.expand("ln -s ${STAGING_BINDIR_CROSS} ${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}", e.data)) 423 os.system(e.data.expand("ln -s ${STAGING_BINDIR_CROSS} ${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}"))
424 424
425 f = file(abifile, "w") 425 f = file(abifile, "w")
426 f.write(current_abi) 426 f.write(current_abi)
@@ -428,7 +428,7 @@ def check_sanity(e):
428 messages = messages + "Staging layout has changed. The cross directory has been deprecated and cross packages are now built under the native sysroot.\nThis requires a rebuild.\n" 428 messages = messages + "Staging layout has changed. The cross directory has been deprecated and cross packages are now built under the native sysroot.\nThis requires a rebuild.\n"
429 elif abi == "5" and current_abi == "6": 429 elif abi == "5" and current_abi == "6":
430 bb.note("Converting staging layout from version 5 to layout version 6") 430 bb.note("Converting staging layout from version 5 to layout version 6")
431 os.system(bb.data.expand("mv ${TMPDIR}/pstagelogs ${SSTATE_MANIFESTS}", e.data)) 431 os.system(e.data.expand("mv ${TMPDIR}/pstagelogs ${SSTATE_MANIFESTS}"))
432 f = file(abifile, "w") 432 f = file(abifile, "w")
433 f.write(current_abi) 433 f.write(current_abi)
434 elif abi == "7" and current_abi == "8": 434 elif abi == "7" and current_abi == "8":