mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
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>
This commit is contained in:
@@ -39,7 +39,7 @@ def csl_get_gcc_version(d):
|
||||
|
||||
def csl_get_libc_version(d):
|
||||
import os,bb
|
||||
syspath = bb.data.expand('${EXTERNAL_TOOLCHAIN}/${CSL_TARGET_SYS}', d)
|
||||
syspath = d.expand('${EXTERNAL_TOOLCHAIN}/${CSL_TARGET_SYS}')
|
||||
if not syspath:
|
||||
return 'UNKNOWN'
|
||||
|
||||
@@ -55,7 +55,7 @@ def csl_get_libc_version(d):
|
||||
|
||||
def csl_get_kernel_version(d):
|
||||
import os,bb
|
||||
syspath = bb.data.expand('${EXTERNAL_TOOLCHAIN}/${CSL_TARGET_SYS}', d)
|
||||
syspath = d.expand('${EXTERNAL_TOOLCHAIN}/${CSL_TARGET_SYS}')
|
||||
if not syspath:
|
||||
return 'UNKNOWN'
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ def populate_toolchain_links(d):
|
||||
d = d.createCopy()
|
||||
d.finalize()
|
||||
|
||||
pattern = bb.data.expand('${EXTERNAL_TOOLCHAIN}/bin/${TARGET_PREFIX}*', d)
|
||||
pattern = d.expand('${EXTERNAL_TOOLCHAIN}/bin/${TARGET_PREFIX}*')
|
||||
files = glob(pattern)
|
||||
if not files:
|
||||
bb.fatal("Unable to populate toolchain binary symlinks")
|
||||
|
||||
Reference in New Issue
Block a user