mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 00:32:12 +02:00
meta: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True option from getVar() calls with a regex search and replace. Search made with the following regex: getVar ?\(( ?[^,()]*), True\) (From OE-Core rev: 7c552996597faaee2fbee185b250c0ee30ea3b5f) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d5e67725ac
commit
c4e2c59088
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM="\
|
||||
"
|
||||
|
||||
def binutils_branch_version(d):
|
||||
pvsplit = d.getVar('PV', True).split('.')
|
||||
pvsplit = d.getVar('PV').split('.')
|
||||
return pvsplit[0] + "_" + pvsplit[1]
|
||||
|
||||
BINUPV = "${@binutils_branch_version(d)}"
|
||||
|
||||
@@ -59,9 +59,9 @@ USE_ALTERNATIVES_FOR = " \
|
||||
"
|
||||
|
||||
python do_package_prepend() {
|
||||
make_alts = d.getVar("USE_ALTERNATIVES_FOR", True) or ""
|
||||
prefix = d.getVar("TARGET_PREFIX", True)
|
||||
bindir = d.getVar("bindir", True)
|
||||
make_alts = d.getVar("USE_ALTERNATIVES_FOR") or ""
|
||||
prefix = d.getVar("TARGET_PREFIX")
|
||||
bindir = d.getVar("bindir")
|
||||
for alt in make_alts.split():
|
||||
d.setVarFlag('ALTERNATIVE_TARGET', alt, bindir + "/" + prefix + alt)
|
||||
d.setVarFlag('ALTERNATIVE_LINK_NAME', alt, bindir + "/" + alt)
|
||||
|
||||
Reference in New Issue
Block a user