diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-28 14:27:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:10 +0100 |
commit | 65133015b1cf545a0c86177ce471a0b2b9340d5c (patch) | |
tree | 2d24b99d759e7b7e611217dcc686ae0fe85a671e /meta/classes | |
parent | bb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (diff) | |
download | poky-65133015b1cf545a0c86177ce471a0b2b9340d5c.tar.gz |
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>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/insane.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/kernel-grub.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/native.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/package.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/qemuboot.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/sanity.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/systemd.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/useradd.bbclass | 2 |
9 files changed, 13 insertions, 11 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index f9a35f2daa..ee858f84b7 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -1306,7 +1306,7 @@ python () { | |||
1306 | # Checking ${FILESEXTRAPATHS} | 1306 | # Checking ${FILESEXTRAPATHS} |
1307 | extrapaths = (d.getVar("FILESEXTRAPATHS") or "") | 1307 | extrapaths = (d.getVar("FILESEXTRAPATHS") or "") |
1308 | if '__default' not in extrapaths.split(":"): | 1308 | if '__default' not in extrapaths.split(":"): |
1309 | msg = "FILESEXTRAPATHS-variable, must always use _prepend (or _append)\n" | 1309 | msg = "FILESEXTRAPATHS-variable, must always use :prepend (or :append)\n" |
1310 | msg += "type of assignment, and don't forget the colon.\n" | 1310 | msg += "type of assignment, and don't forget the colon.\n" |
1311 | msg += "Please assign it with the format of:\n" | 1311 | msg += "Please assign it with the format of:\n" |
1312 | msg += " FILESEXTRAPATHS:append := \":${THISDIR}/Your_Files_Path\" or\n" | 1312 | msg += " FILESEXTRAPATHS:append := \":${THISDIR}/Your_Files_Path\" or\n" |
diff --git a/meta/classes/kernel-grub.bbclass b/meta/classes/kernel-grub.bbclass index 0bf8fda3e1..44b2015468 100644 --- a/meta/classes/kernel-grub.bbclass +++ b/meta/classes/kernel-grub.bbclass | |||
@@ -97,9 +97,9 @@ python __anonymous () { | |||
97 | 97 | ||
98 | for type in imagetypes.split(): | 98 | for type in imagetypes.split(): |
99 | typelower = type.lower() | 99 | typelower = type.lower() |
100 | preinst:append = preinst.replace('KERNEL_IMAGETYPE', type) | 100 | preinst_append = preinst.replace('KERNEL_IMAGETYPE', type) |
101 | postinst:prepend = postinst.replace('KERNEL_IMAGETYPE', type) | 101 | postinst_prepend = postinst.replace('KERNEL_IMAGETYPE', type) |
102 | d.setVar('pkg_preinst:kernel-image-' + typelower + '_append', preinst:append) | 102 | d.setVar('pkg_preinst:kernel-image-' + typelower + ':append', preinst_append) |
103 | d.setVar('pkg_postinst:kernel-image-' + typelower + '_prepend', postinst:prepend) | 103 | d.setVar('pkg_postinst:kernel-image-' + typelower + ':prepend', postinst_prepend) |
104 | } | 104 | } |
105 | 105 | ||
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 61becfb6d5..76a599bc15 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -133,7 +133,7 @@ python native_virtclass_handler () { | |||
133 | 133 | ||
134 | def map_dependencies(varname, d, suffix = "", selfref=True): | 134 | def map_dependencies(varname, d, suffix = "", selfref=True): |
135 | if suffix: | 135 | if suffix: |
136 | varname = varname + "_" + suffix | 136 | varname = varname + ":" + suffix |
137 | deps = d.getVar(varname) | 137 | deps = d.getVar(varname) |
138 | if not deps: | 138 | if not deps: |
139 | return | 139 | return |
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index fb8e9514be..a659a1ef5c 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -1583,7 +1583,7 @@ fi | |||
1583 | scriptlet = scriptlet_split[0] + "\nset -e\n" + "\n".join(scriptlet_split[1:]) | 1583 | scriptlet = scriptlet_split[0] + "\nset -e\n" + "\n".join(scriptlet_split[1:]) |
1584 | else: | 1584 | else: |
1585 | scriptlet = "set -e\n" + "\n".join(scriptlet_split[0:]) | 1585 | scriptlet = "set -e\n" + "\n".join(scriptlet_split[0:]) |
1586 | d.setVar('%s_%s' % (scriptlet_name, pkg), scriptlet) | 1586 | d.setVar('%s:%s' % (scriptlet_name, pkg), scriptlet) |
1587 | 1587 | ||
1588 | def write_if_exists(f, pkg, var): | 1588 | def write_if_exists(f, pkg, var): |
1589 | def encode(str): | 1589 | def encode(str): |
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index f67849708c..10f3265e91 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -147,7 +147,7 @@ def create_filtered_tasklist(d, sdkbasepath, tasklistfile, conf_initpath): | |||
147 | try: | 147 | try: |
148 | with open(sdkbasepath + '/conf/local.conf', 'a') as f: | 148 | with open(sdkbasepath + '/conf/local.conf', 'a') as f: |
149 | # Force the use of sstate from the build system | 149 | # Force the use of sstate from the build system |
150 | f.write('\nSSTATE_DIR_forcevariable = "%s"\n' % d.getVar('SSTATE_DIR')) | 150 | f.write('\nSSTATE_DIR:forcevariable = "%s"\n' % d.getVar('SSTATE_DIR')) |
151 | f.write('SSTATE_MIRRORS:forcevariable = "file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n') | 151 | f.write('SSTATE_MIRRORS:forcevariable = "file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n') |
152 | # Ensure TMPDIR is the default so that clean_esdk_builddir() can delete it | 152 | # Ensure TMPDIR is the default so that clean_esdk_builddir() can delete it |
153 | f.write('TMPDIR:forcevariable = "${TOPDIR}/tmp"\n') | 153 | f.write('TMPDIR:forcevariable = "${TOPDIR}/tmp"\n') |
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass index aaf821d6dd..bf529e9aa4 100644 --- a/meta/classes/qemuboot.bbclass +++ b/meta/classes/qemuboot.bbclass | |||
@@ -122,6 +122,8 @@ python do_write_qemuboot_conf() { | |||
122 | cf = configparser.ConfigParser() | 122 | cf = configparser.ConfigParser() |
123 | cf.add_section('config_bsp') | 123 | cf.add_section('config_bsp') |
124 | for k in sorted(qemuboot_vars(d)): | 124 | for k in sorted(qemuboot_vars(d)): |
125 | if ":" in k: | ||
126 | continue | ||
125 | # qemu-helper-native sysroot is not removed by rm_work and | 127 | # qemu-helper-native sysroot is not removed by rm_work and |
126 | # contains all tools required by runqemu | 128 | # contains all tools required by runqemu |
127 | if k == 'STAGING_BINDIR_NATIVE': | 129 | if k == 'STAGING_BINDIR_NATIVE': |
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 29cc42efe7..ddba1e6e1e 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -199,7 +199,7 @@ def check_toolchain_tune_args(data, tune, multilib, errs): | |||
199 | 199 | ||
200 | def check_toolchain_args_present(data, tune, multilib, tune_errors, which): | 200 | def check_toolchain_args_present(data, tune, multilib, tune_errors, which): |
201 | args_set = (data.getVar("TUNE_%s" % which) or "").split() | 201 | args_set = (data.getVar("TUNE_%s" % which) or "").split() |
202 | args_wanted = (data.getVar("TUNEABI_REQUIRED_%s_tune-%s" % (which, tune)) or "").split() | 202 | args_wanted = (data.getVar("TUNEABI_REQUIRED_%s:tune-%s" % (which, tune)) or "").split() |
203 | args_missing = [] | 203 | args_missing = [] |
204 | 204 | ||
205 | # If no args are listed/required, we are done. | 205 | # If no args are listed/required, we are done. |
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index 2a272a245f..09ec52792d 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass | |||
@@ -70,7 +70,7 @@ python systemd_populate_packages() { | |||
70 | return | 70 | return |
71 | 71 | ||
72 | def get_package_var(d, var, pkg): | 72 | def get_package_var(d, var, pkg): |
73 | val = (d.getVar('%s_%s' % (var, pkg)) or "").strip() | 73 | val = (d.getVar('%s:%s' % (var, pkg)) or "").strip() |
74 | if val == "": | 74 | if val == "": |
75 | val = (d.getVar(var) or "").strip() | 75 | val = (d.getVar(var) or "").strip() |
76 | return val | 76 | return val |
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index fdec5cca56..287ef84334 100644 --- a/meta/classes/useradd.bbclass +++ b/meta/classes/useradd.bbclass | |||
@@ -199,7 +199,7 @@ python __anonymous() { | |||
199 | def get_all_cmd_params(d, cmd_type): | 199 | def get_all_cmd_params(d, cmd_type): |
200 | import string | 200 | import string |
201 | 201 | ||
202 | param_type = cmd_type.upper() + "_PARAM_%s" | 202 | param_type = cmd_type.upper() + "_PARAM:%s" |
203 | params = [] | 203 | params = [] |
204 | 204 | ||
205 | useradd_packages = d.getVar('USERADD_PACKAGES') or "" | 205 | useradd_packages = d.getVar('USERADD_PACKAGES') or "" |