mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00: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
@@ -1,7 +1,7 @@
|
||||
def preferred_ml_updates(d):
|
||||
# If any PREFERRED_PROVIDER or PREFERRED_VERSION are set,
|
||||
# we need to mirror these variables in the multilib case;
|
||||
multilibs = d.getVar('MULTILIBS', True) or ""
|
||||
multilibs = d.getVar('MULTILIBS') or ""
|
||||
if not multilibs:
|
||||
return
|
||||
|
||||
@@ -102,7 +102,7 @@ def preferred_ml_updates(d):
|
||||
prov = prov.replace("virtual/", "")
|
||||
return "virtual/" + prefix + "-" + prov
|
||||
|
||||
mp = (d.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split()
|
||||
mp = (d.getVar("MULTI_PROVIDER_WHITELIST") or "").split()
|
||||
extramp = []
|
||||
for p in mp:
|
||||
if p.endswith("-native") or "-crosssdk-" in p or p.startswith(("nativesdk-", "virtual/nativesdk-")) or 'cross-canadian' in p:
|
||||
@@ -111,14 +111,14 @@ def preferred_ml_updates(d):
|
||||
extramp.append(translate_provide(pref, p))
|
||||
d.setVar("MULTI_PROVIDER_WHITELIST", " ".join(mp + extramp))
|
||||
|
||||
abisafe = (d.getVar("SIGGEN_EXCLUDERECIPES_ABISAFE", True) or "").split()
|
||||
abisafe = (d.getVar("SIGGEN_EXCLUDERECIPES_ABISAFE") or "").split()
|
||||
extras = []
|
||||
for p in prefixes:
|
||||
for a in abisafe:
|
||||
extras.append(p + "-" + a)
|
||||
d.appendVar("SIGGEN_EXCLUDERECIPES_ABISAFE", " " + " ".join(extras))
|
||||
|
||||
siggen_exclude = (d.getVar("SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS", True) or "").split()
|
||||
siggen_exclude = (d.getVar("SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS") or "").split()
|
||||
extras = []
|
||||
for p in prefixes:
|
||||
for a in siggen_exclude:
|
||||
@@ -128,7 +128,7 @@ def preferred_ml_updates(d):
|
||||
|
||||
python multilib_virtclass_handler_vendor () {
|
||||
if isinstance(e, bb.event.ConfigParsed):
|
||||
for v in e.data.getVar("MULTILIB_VARIANTS", True).split():
|
||||
for v in e.data.getVar("MULTILIB_VARIANTS").split():
|
||||
if e.data.getVar("TARGET_VENDOR_virtclass-multilib-" + v, False) is None:
|
||||
e.data.setVar("TARGET_VENDOR_virtclass-multilib-" + v, e.data.getVar("TARGET_VENDOR", False) + "ml" + v)
|
||||
preferred_ml_updates(e.data)
|
||||
@@ -140,14 +140,14 @@ python multilib_virtclass_handler_global () {
|
||||
if not e.data:
|
||||
return
|
||||
|
||||
variant = e.data.getVar("BBEXTENDVARIANT", True)
|
||||
variant = e.data.getVar("BBEXTENDVARIANT")
|
||||
|
||||
if isinstance(e, bb.event.RecipeParsed) and not variant:
|
||||
if bb.data.inherits_class('kernel', e.data) or \
|
||||
bb.data.inherits_class('module-base', e.data) or \
|
||||
(bb.data.inherits_class('allarch', e.data) and\
|
||||
not bb.data.inherits_class('packagegroup', e.data)):
|
||||
variants = (e.data.getVar("MULTILIB_VARIANTS", True) or "").split()
|
||||
variants = (e.data.getVar("MULTILIB_VARIANTS") or "").split()
|
||||
|
||||
import oe.classextend
|
||||
clsextends = []
|
||||
@@ -155,21 +155,21 @@ python multilib_virtclass_handler_global () {
|
||||
clsextends.append(oe.classextend.ClassExtender(variant, e.data))
|
||||
|
||||
# Process PROVIDES
|
||||
origprovs = provs = e.data.getVar("PROVIDES", True) or ""
|
||||
origprovs = provs = e.data.getVar("PROVIDES") or ""
|
||||
for clsextend in clsextends:
|
||||
provs = provs + " " + clsextend.map_variable("PROVIDES", setvar=False)
|
||||
e.data.setVar("PROVIDES", provs)
|
||||
|
||||
# Process RPROVIDES
|
||||
origrprovs = rprovs = e.data.getVar("RPROVIDES", True) or ""
|
||||
origrprovs = rprovs = e.data.getVar("RPROVIDES") or ""
|
||||
for clsextend in clsextends:
|
||||
rprovs = rprovs + " " + clsextend.map_variable("RPROVIDES", setvar=False)
|
||||
if rprovs.strip():
|
||||
e.data.setVar("RPROVIDES", rprovs)
|
||||
|
||||
# Process RPROVIDES_${PN}...
|
||||
for pkg in (e.data.getVar("PACKAGES", True) or "").split():
|
||||
origrprovs = rprovs = e.data.getVar("RPROVIDES_%s" % pkg, True) or ""
|
||||
for pkg in (e.data.getVar("PACKAGES") or "").split():
|
||||
origrprovs = rprovs = e.data.getVar("RPROVIDES_%s" % pkg) or ""
|
||||
for clsextend in clsextends:
|
||||
rprovs = rprovs + " " + clsextend.map_variable("RPROVIDES_%s" % pkg, setvar=False)
|
||||
rprovs = rprovs + " " + clsextend.extname + "-" + pkg
|
||||
|
||||
Reference in New Issue
Block a user