mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
meta: Manual override fixes
The automated conversion of OE-Core to use the new override sytax isn't perfect. This patches some mis-converted lines and some lines which were missed by the automation. (From OE-Core rev: 4e9a06b64b43131b731fb59a0305f78a98e27fbd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1306,7 +1306,7 @@ python () {
|
||||
# Checking ${FILESEXTRAPATHS}
|
||||
extrapaths = (d.getVar("FILESEXTRAPATHS") or "")
|
||||
if '__default' not in extrapaths.split(":"):
|
||||
msg = "FILESEXTRAPATHS-variable, must always use _prepend (or _append)\n"
|
||||
msg = "FILESEXTRAPATHS-variable, must always use :prepend (or :append)\n"
|
||||
msg += "type of assignment, and don't forget the colon.\n"
|
||||
msg += "Please assign it with the format of:\n"
|
||||
msg += " FILESEXTRAPATHS:append := \":${THISDIR}/Your_Files_Path\" or\n"
|
||||
|
||||
@@ -97,9 +97,9 @@ python __anonymous () {
|
||||
|
||||
for type in imagetypes.split():
|
||||
typelower = type.lower()
|
||||
preinst:append = preinst.replace('KERNEL_IMAGETYPE', type)
|
||||
postinst:prepend = postinst.replace('KERNEL_IMAGETYPE', type)
|
||||
d.setVar('pkg_preinst:kernel-image-' + typelower + '_append', preinst:append)
|
||||
d.setVar('pkg_postinst:kernel-image-' + typelower + '_prepend', postinst:prepend)
|
||||
preinst_append = preinst.replace('KERNEL_IMAGETYPE', type)
|
||||
postinst_prepend = postinst.replace('KERNEL_IMAGETYPE', type)
|
||||
d.setVar('pkg_preinst:kernel-image-' + typelower + ':append', preinst_append)
|
||||
d.setVar('pkg_postinst:kernel-image-' + typelower + ':prepend', postinst_prepend)
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ python native_virtclass_handler () {
|
||||
|
||||
def map_dependencies(varname, d, suffix = "", selfref=True):
|
||||
if suffix:
|
||||
varname = varname + "_" + suffix
|
||||
varname = varname + ":" + suffix
|
||||
deps = d.getVar(varname)
|
||||
if not deps:
|
||||
return
|
||||
|
||||
@@ -1583,7 +1583,7 @@ fi
|
||||
scriptlet = scriptlet_split[0] + "\nset -e\n" + "\n".join(scriptlet_split[1:])
|
||||
else:
|
||||
scriptlet = "set -e\n" + "\n".join(scriptlet_split[0:])
|
||||
d.setVar('%s_%s' % (scriptlet_name, pkg), scriptlet)
|
||||
d.setVar('%s:%s' % (scriptlet_name, pkg), scriptlet)
|
||||
|
||||
def write_if_exists(f, pkg, var):
|
||||
def encode(str):
|
||||
|
||||
@@ -147,7 +147,7 @@ def create_filtered_tasklist(d, sdkbasepath, tasklistfile, conf_initpath):
|
||||
try:
|
||||
with open(sdkbasepath + '/conf/local.conf', 'a') as f:
|
||||
# Force the use of sstate from the build system
|
||||
f.write('\nSSTATE_DIR_forcevariable = "%s"\n' % d.getVar('SSTATE_DIR'))
|
||||
f.write('\nSSTATE_DIR:forcevariable = "%s"\n' % d.getVar('SSTATE_DIR'))
|
||||
f.write('SSTATE_MIRRORS:forcevariable = "file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n')
|
||||
# Ensure TMPDIR is the default so that clean_esdk_builddir() can delete it
|
||||
f.write('TMPDIR:forcevariable = "${TOPDIR}/tmp"\n')
|
||||
|
||||
@@ -122,6 +122,8 @@ python do_write_qemuboot_conf() {
|
||||
cf = configparser.ConfigParser()
|
||||
cf.add_section('config_bsp')
|
||||
for k in sorted(qemuboot_vars(d)):
|
||||
if ":" in k:
|
||||
continue
|
||||
# qemu-helper-native sysroot is not removed by rm_work and
|
||||
# contains all tools required by runqemu
|
||||
if k == 'STAGING_BINDIR_NATIVE':
|
||||
|
||||
@@ -199,7 +199,7 @@ def check_toolchain_tune_args(data, tune, multilib, errs):
|
||||
|
||||
def check_toolchain_args_present(data, tune, multilib, tune_errors, which):
|
||||
args_set = (data.getVar("TUNE_%s" % which) or "").split()
|
||||
args_wanted = (data.getVar("TUNEABI_REQUIRED_%s_tune-%s" % (which, tune)) or "").split()
|
||||
args_wanted = (data.getVar("TUNEABI_REQUIRED_%s:tune-%s" % (which, tune)) or "").split()
|
||||
args_missing = []
|
||||
|
||||
# If no args are listed/required, we are done.
|
||||
|
||||
@@ -70,7 +70,7 @@ python systemd_populate_packages() {
|
||||
return
|
||||
|
||||
def get_package_var(d, var, pkg):
|
||||
val = (d.getVar('%s_%s' % (var, pkg)) or "").strip()
|
||||
val = (d.getVar('%s:%s' % (var, pkg)) or "").strip()
|
||||
if val == "":
|
||||
val = (d.getVar(var) or "").strip()
|
||||
return val
|
||||
|
||||
@@ -199,7 +199,7 @@ python __anonymous() {
|
||||
def get_all_cmd_params(d, cmd_type):
|
||||
import string
|
||||
|
||||
param_type = cmd_type.upper() + "_PARAM_%s"
|
||||
param_type = cmd_type.upper() + "_PARAM:%s"
|
||||
params = []
|
||||
|
||||
useradd_packages = d.getVar('USERADD_PACKAGES') or ""
|
||||
|
||||
Reference in New Issue
Block a user