Skip to content

Commit 3405e3a

Browse files
shr-projectotavio
authored andcommitted
Convert to new override syntax
This is the result of automated script (0.9.0) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <[email protected]>
1 parent 967f28f commit 3405e3a

File tree

8 files changed

+55
-55
lines changed

8 files changed

+55
-55
lines changed

meta-chromium/recipes-browser/chromium/chromium-gn.inc

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SRC_URI += " \
2626
file://0001-exception_handler.cc-Match-the-types-for-SIGSTKSZ.patch \
2727
"
2828

29-
SRC_URI_append_libc-musl = "\
29+
SRC_URI:append:libc-musl = "\
3030
file://musl/0001-mallinfo-implementation-is-glibc-specific.patch \
3131
file://musl/0002-execinfo-implementation-is-glibc-specific.patch \
3232
file://musl/0003-Define-TEMP_FAILURE_RETRY-and-__si_fields.patch \
@@ -87,21 +87,21 @@ DEPENDS += " \
8787
DEPEND_append_runtime-llvm = " compiler-rt-native libcxx-native"
8888

8989
# The wrapper script we use from upstream requires bash.
90-
RDEPENDS_${PN} = "bash"
90+
RDEPENDS:${PN} = "bash"
9191

9292
COMPATIBLE_MACHINE = "(-)"
93-
COMPATIBLE_MACHINE_aarch64 = "(.*)"
94-
COMPATIBLE_MACHINE_armv6 = "(.*)"
95-
COMPATIBLE_MACHINE_armv7a = "(.*)"
96-
COMPATIBLE_MACHINE_armv7ve = "(.*)"
97-
COMPATIBLE_MACHINE_x86 = "(.*)"
98-
COMPATIBLE_MACHINE_x86-64 = "(.*)"
93+
COMPATIBLE_MACHINE:aarch64 = "(.*)"
94+
COMPATIBLE_MACHINE:armv6 = "(.*)"
95+
COMPATIBLE_MACHINE:armv7a = "(.*)"
96+
COMPATIBLE_MACHINE:armv7ve = "(.*)"
97+
COMPATIBLE_MACHINE:x86 = "(.*)"
98+
COMPATIBLE_MACHINE:x86-64 = "(.*)"
9999

100100
# Also build the parts that are run on the host with clang.
101-
BUILD_AR_toolchain-clang = "llvm-ar"
102-
BUILD_CC_toolchain-clang = "clang"
103-
BUILD_CXX_toolchain-clang = "clang++"
104-
BUILD_LD_toolchain-clang = "clang"
101+
BUILD_AR:toolchain-clang = "llvm-ar"
102+
BUILD_CC:toolchain-clang = "clang"
103+
BUILD_CXX:toolchain-clang = "clang++"
104+
BUILD_LD:toolchain-clang = "clang"
105105

106106
PACKAGECONFIG ??= "use-egl"
107107

@@ -180,25 +180,25 @@ GN_ARGS += "use_lld=true use_gold=false"
180180
# instead, so that if DEBUG_BUILD is not set GN will not create a huge debug
181181
# binary anyway. Since our compiler flags are passed after GN's, -g0 does
182182
# not cause any issues if DEBUG_BUILD is set, as -g1 will be passed later.
183-
DEBUG_FLAGS_remove_arm = "-g"
184-
DEBUG_FLAGS_append_arm = "-g1"
185-
DEBUG_FLAGS_remove_x86 = "-g"
186-
DEBUG_FLAGS_append_x86 = "-g1"
183+
DEBUG_FLAGS:remove:arm = "-g"
184+
DEBUG_FLAGS:append:arm = "-g1"
185+
DEBUG_FLAGS:remove:x86 = "-g"
186+
DEBUG_FLAGS:append:x86 = "-g1"
187187
GN_ARGS += "symbol_level=0"
188188

189189
# As of Chromium 62.0.3202.94 and Yocto Rocko (GCC 7, binutils 2.29), passing
190190
# -g to the compiler results in many linker errors on aarch64, such as:
191191
# obj/third_party/WebKit/Source/modules/payments/libpayments.a(PaymentEventDataConversion.o)(.debug_loc+0x4e25): error: relocation overflow in R_AARCH64_ABS32
192-
DEBUG_FLAGS_remove_aarch64 = "-g"
193-
DEBUG_FLAGS_append_aarch64 = "-g1"
192+
DEBUG_FLAGS:remove:aarch64 = "-g"
193+
DEBUG_FLAGS:append:aarch64 = "-g1"
194194

195195
# As of Chromium 60.0.3112.101 and Yocto Pyro (GCC 6, binutils 2.28), passing
196196
# -g to the compiler results in many linker errors on x86_64, such as:
197197
# obj/third_party/WebKit/Source/core/loader/libloader.a(ModuleTreeLinker.o)(.debug_loc+0x1e9a5): error: relocation overflow: reference to local symbol 82 in obj/third_party/WebKit/Source/core/loader/libloader.a(ModuleTreeLinker.o)
198198
# obj/third_party/WebKit/Source/core/libcore_generated.a(ScriptModule.o)(.debug_loc+0x253c): error: relocation overflow: reference to local symbol 31 in obj/third_party/WebKit/Source/core/libcore_generated.a(ScriptModule.o)
199199
# so we have to use the same hack described above.
200-
DEBUG_FLAGS_remove_x86-64 = "-g"
201-
DEBUG_FLAGS_append_x86-64 = "-g1"
200+
DEBUG_FLAGS:remove:x86-64 = "-g"
201+
DEBUG_FLAGS:append:x86-64 = "-g1"
202202

203203
# Disable Chrome Remote Desktop (aka Chromoting) support. Building host support
204204
# (so that the machine running this recipe can be controlled remotely from
@@ -277,7 +277,7 @@ GN_ARGS += ' \
277277
# If we do not pass |arm_arch| and friends to GN, it will deduce a value that
278278
# will then conflict with TUNE_CCARGS and CC.
279279
# Note that as of M61 in some corner cases parts of the build system disable
280-
# the "compiler_arm_fpu" GN config, whereas -mfpu is always passed via ${CC}.
280+
# the "compiler:arm_fpu" GN config, whereas -mfpu is always passed via ${CC}.
281281
# We might want to rework that if there are issues in the future.
282282
def get_compiler_flag(params, param_name, d):
283283
"""Given a sequence of compiler arguments in |params|, returns the value of
@@ -290,33 +290,33 @@ def get_compiler_flag(params, param_name, d):
290290
ARM_FLOAT_ABI = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hard', 'softfp', d)}"
291291
ARM_FPU = "${@get_compiler_flag(d.getVar('TUNE_CCARGS').split(), '-mfpu', d)}"
292292
ARM_TUNE = "${@get_compiler_flag(d.getVar('TUNE_CCARGS').split(), '-mcpu', d)}"
293-
ARM_VERSION_aarch64 = "8"
294-
ARM_VERSION_armv7a = "7"
295-
ARM_VERSION_armv7ve = "7"
296-
ARM_VERSION_armv6 = "6"
293+
ARM_VERSION:aarch64 = "8"
294+
ARM_VERSION:armv7a = "7"
295+
ARM_VERSION:armv7ve = "7"
296+
ARM_VERSION:armv6 = "6"
297297

298298
# GN computes and defaults to it automatically where needed
299299
# forcing it from cmdline breaks build on places where it ends up
300300
# overriding what GN wants
301-
TUNE_CCARGS_remove = "-mthumb"
301+
TUNE_CCARGS:remove = "-mthumb"
302302

303-
GN_ARGS_append_arm = ' \
303+
GN_ARGS:append:arm = ' \
304304
arm_float_abi="${ARM_FLOAT_ABI}" \
305305
arm_fpu="${ARM_FPU}" \
306306
arm_tune="${ARM_TUNE}" \
307307
arm_version=${ARM_VERSION} \
308308
'
309309
# tcmalloc's atomicops-internals-arm-v6plus.h uses the "dmb" instruction that
310310
# is not available on (some?) ARMv6 models, which causes the build to fail.
311-
GN_ARGS_append_armv6 += 'use_allocator="none"'
311+
GN_ARGS:append:armv6 += 'use_allocator="none"'
312312
# The WebRTC code fails to build on ARMv6 when NEON is enabled.
313313
# https://bugs.chromium.org/p/webrtc/issues/detail?id=6574
314-
GN_ARGS_append_armv6 += 'arm_use_neon=false'
314+
GN_ARGS:append:armv6 += 'arm_use_neon=false'
315315

316316
# Disable glibc shims on musl
317317
# tcmalloc does not play well with musl as of M62 (and possibly earlier).
318318
# https://github.com/gperftools/gperftools/issues/693
319-
GN_ARGS_append_libc-musl = ' use_allocator_shim=false'
319+
GN_ARGS:append:libc-musl = ' use_allocator_shim=false'
320320

321321
CHROMIUM_EXTRA_ARGS ?= " \
322322
${@bb.utils.contains('PACKAGECONFIG', 'use-egl', '--use-gl=egl', '', d)} \
@@ -471,9 +471,9 @@ do_install() {
471471

472472
PACKAGES =+ "${PN}-chromedriver"
473473

474-
FILES_${PN}-chromedriver = "${bindir}/chromedriver"
474+
FILES:${PN}-chromedriver = "${bindir}/chromedriver"
475475

476-
FILES_${PN} = " \
476+
FILES:${PN} = " \
477477
${bindir}/chromium \
478478
${datadir}/applications/chromium.desktop \
479479
${datadir}/icons/hicolor/*x*/apps/chromium.png \
@@ -483,4 +483,4 @@ FILES_${PN} = " \
483483
PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
484484

485485
# There is no need to ship empty -dev packages.
486-
ALLOW_EMPTY_${PN}-dev = "0"
486+
ALLOW_EMPTY:${PN}-dev = "0"

meta-chromium/recipes-browser/chromium/chromium-ozone-wayland_92.0.4515.107.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ GN_ARGS += "\
3838
GN_ARGS += "use_x11=false"
3939

4040
# The chromium binary must always be started with those arguments.
41-
CHROMIUM_EXTRA_ARGS_append = " --ozone-platform=wayland"
41+
CHROMIUM_EXTRA_ARGS:append = " --ozone-platform=wayland"
4242

meta-chromium/recipes-browser/chromium/chromium.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ S = "${WORKDIR}/chromium-${PV}"
1414
# guarantee that the generated code will work as expected.
1515
TOOLCHAIN = "clang"
1616

17-
# By default, clang.bbclass sets TOOLCHAIN_class-native to "gcc", but we want
17+
# By default, clang.bbclass sets TOOLCHAIN:class-native to "gcc", but we want
1818
# to build the native recipes (e.g. GN) with clang too.
19-
TOOLCHAIN_class-native = "clang"
19+
TOOLCHAIN:class-native = "clang"
2020

2121
# This makes the target build use libc++ and compiler_rt instead of the GNU
2222
# runtime, just like upstream does. The native binaries compiled and run as

meta-chromium/recipes-browser/chromium/gn-native_92.0.4515.107.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ do_install() {
4545
install -m 0755 ${S}/out/Release/gn ${D}${bindir}/gn
4646
}
4747

48-
INSANE_SKIP_${PN} += "already-stripped"
48+
INSANE_SKIP:${PN} += "already-stripped"

meta-chromium/recipes-browser/chromium/gn-utils.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ def gn_host_arch_name(d):
2828
# non-Python variables with overrides that are generic enough (i.e. "x86"
2929
# instead of "i586") and then use gn_target_arch_name() to return the right
3030
# value with some validation.
31-
GN_TARGET_ARCH_NAME_aarch64 = "arm64"
32-
GN_TARGET_ARCH_NAME_arm = "arm"
33-
GN_TARGET_ARCH_NAME_x86 = "x86"
34-
GN_TARGET_ARCH_NAME_x86-64 = "x64"
31+
GN_TARGET_ARCH_NAME:aarch64 = "arm64"
32+
GN_TARGET_ARCH_NAME:arm = "arm"
33+
GN_TARGET_ARCH_NAME:x86 = "x86"
34+
GN_TARGET_ARCH_NAME:x86-64 = "x64"
3535

3636
def clang_install_path(d):
3737
"""Return clang compiler install path."""

meta-firefox/classes/mozilla.bbclass

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ EXTRA_OECONF = "--target=${TARGET_SYS} --host=${BUILD_SYS} \
99
--with-toolchain-prefix=${TARGET_SYS}- \
1010
--prefix=${prefix} \
1111
--libdir=${libdir}"
12-
EXTRA_OECONF_append_arm = " --disable-elf-hack"
13-
EXTRA_OECONF_append_x86 = " --disable-elf-hack"
14-
EXTRA_OECONF_append_x86-64 = " --disable-elf-hack"
12+
EXTRA_OECONF:append:arm = " --disable-elf-hack"
13+
EXTRA_OECONF:append:x86 = " --disable-elf-hack"
14+
EXTRA_OECONF:append:x86-64 = " --disable-elf-hack"
1515
SELECTED_OPTIMIZATION = "-Os -fsigned-char -fno-strict-aliasing"
1616

1717
export CROSS_COMPILE = "1"

meta-firefox/recipes-browser/firefox-l10n/firefox-l10n.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Released under the MIT license (see packages/COPYING)
33

44
DEPENDS = "unzip-native"
5-
RDEPENDS_${PN} = "firefox"
5+
RDEPENDS:${PN} = "firefox"
66

77
LICENSE = "MPLv2"
88

@@ -12,7 +12,7 @@ LANGUAGE = "${@get_language_name('${PN}')}"
1212
PR = "r3"
1313

1414
# Mangle place where to store the file
15-
DL_DIR_append = "/${PN}-${PV}"
15+
DL_DIR:append = "/${PN}-${PV}"
1616

1717
SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}/linux-x86_64/xpi/${LANGUAGE}.xpi"
1818
S = "${WORKDIR}"
@@ -45,4 +45,4 @@ do_install_xpi_pack() {
4545
install -D -m 0644 ${LANGUAGE}.xpi ${D}${libdir}/firefox/browser/extensions/${EXTENSION}.xpi
4646
}
4747

48-
FILES_${PN} += "${libdir}/firefox"
48+
FILES:${PN} += "${libdir}/firefox"

meta-firefox/recipes-browser/firefox/firefox_68.9.0esr.bb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DEPENDS += "curl startup-notification libevent cairo libnotify \
88
yasm-native nasm-native unzip-native \
99
virtual/${TARGET_PREFIX}rust cargo-native ${RUSTLIB_DEP} \
1010
"
11-
RDEPENDS_${PN}-dev = "dbus"
11+
RDEPENDS:${PN}-dev = "dbus"
1212

1313
LICENSE = "MPLv2"
1414
LIC_FILES_CHKSUM = "file://toolkit/content/license.html;endline=33;md5=35d7fa1c4b86c115051c925fd624a5be"
@@ -60,12 +60,12 @@ MOZ_APP_BASE_VERSION = "${@'${PV}'.replace('esr', '')}"
6060

6161
inherit mozilla rust-common
6262

63-
TOOLCHAIN_pn-firefox = "clang"
63+
TOOLCHAIN:pn-firefox = "clang"
6464
AS = "${CC}"
6565

6666
DISABLE_STATIC=""
6767

68-
ARM_INSTRUCTION_SET_armv5 = "arm"
68+
ARM_INSTRUCTION_SET:armv5 = "arm"
6969

7070
PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "alsa", "alsa", "", d)} \
7171
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "", d)} \
@@ -97,7 +97,7 @@ SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'forbit-multiple-compositors',
9797
file://fixes/0001-Enable-to-suppress-multiple-compositors.patch \
9898
', '', d)}"
9999

100-
do_install_append() {
100+
do_install:append() {
101101
install -d ${D}${datadir}/applications
102102
install -d ${D}${datadir}/pixmaps
103103

@@ -122,15 +122,15 @@ do_install_append() {
122122
chown root:root -R ${D}${libdir}
123123
}
124124

125-
FILES_${PN} = "${bindir}/${PN} \
125+
FILES:${PN} = "${bindir}/${PN} \
126126
${datadir}/applications/ \
127127
${datadir}/pixmaps/ \
128128
${libdir}/${PN}/* \
129129
${libdir}/${PN}/.autoreg \
130130
${bindir}/defaults"
131-
FILES_${PN}-dev += "${datadir}/idl ${bindir}/${PN}-config ${libdir}/${PN}-devel-*"
132-
FILES_${PN}-staticdev += "${libdir}/${PN}-devel-*/sdk/lib/*.a"
133-
FILES_${PN}-dbg += "${libdir}/${PN}/.debug \
131+
FILES:${PN}-dev += "${datadir}/idl ${bindir}/${PN}-config ${libdir}/${PN}-devel-*"
132+
FILES:${PN}-staticdev += "${libdir}/${PN}-devel-*/sdk/lib/*.a"
133+
FILES:${PN}-dbg += "${libdir}/${PN}/.debug \
134134
${libdir}/${PN}/*/.debug \
135135
${libdir}/${PN}/*/*/.debug \
136136
${libdir}/${PN}/*/*/*/.debug \

0 commit comments

Comments
 (0)