diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-28 23:28:15 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:10 +0100 |
| commit | bb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch) | |
| tree | 76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/recipes-devtools/binutils | |
| parent | fcc456ee4b8f619134abb4649db53c638074082c (diff) | |
| download | poky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz | |
Convert to new override syntax
This is the result of automated script conversion:
scripts/contrib/convert-overrides.py <oe-core directory>
converting the metadata to use ":" as the override character instead of "_".
(From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils')
4 files changed, 27 insertions, 27 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc index e98f31f9c3..f44f46602d 100644 --- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc +++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc | |||
| @@ -13,7 +13,7 @@ EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VEND | |||
| 13 | # e.g. we switch between different machines with different tunes. | 13 | # e.g. we switch between different machines with different tunes. |
| 14 | EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH" | 14 | EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH" |
| 15 | 15 | ||
| 16 | LDGOLD_sdkmingw32 = "" | 16 | LDGOLD:sdkmingw32 = "" |
| 17 | 17 | ||
| 18 | do_install () { | 18 | do_install () { |
| 19 | autotools_do_install | 19 | autotools_do_install |
diff --git a/meta/recipes-devtools/binutils/binutils-crosssdk_2.37.bb b/meta/recipes-devtools/binutils/binutils-crosssdk_2.37.bb index 37f4d6d2e9..5bd036fd46 100644 --- a/meta/recipes-devtools/binutils/binutils-crosssdk_2.37.bb +++ b/meta/recipes-devtools/binutils/binutils-crosssdk_2.37.bb | |||
| @@ -8,6 +8,6 @@ PROVIDES = "virtual/${TARGET_PREFIX}binutils-crosssdk" | |||
| 8 | 8 | ||
| 9 | SRC_URI += "file://0001-binutils-crosssdk-Generate-relocatable-SDKs.patch" | 9 | SRC_URI += "file://0001-binutils-crosssdk-Generate-relocatable-SDKs.patch" |
| 10 | 10 | ||
| 11 | do_configure_prepend () { | 11 | do_configure:prepend () { |
| 12 | sed -i 's#/usr/local/lib /lib /usr/lib#${SDKPATHNATIVE}/lib ${SDKPATHNATIVE}/usr/lib /usr/local/lib /lib /usr/lib#' ${S}/ld/configure.tgt | 12 | sed -i 's#/usr/local/lib /lib /usr/lib#${SDKPATHNATIVE}/lib ${SDKPATHNATIVE}/usr/lib /usr/local/lib /lib /usr/lib#' ${S}/ld/configure.tgt |
| 13 | } | 13 | } |
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc index e15a12b93e..7d5149fa16 100644 --- a/meta/recipes-devtools/binutils/binutils.inc +++ b/meta/recipes-devtools/binutils/binutils.inc | |||
| @@ -15,7 +15,7 @@ DEPENDS = "flex-native bison-native zlib-native gnu-config-native autoconf-nativ | |||
| 15 | 15 | ||
| 16 | inherit autotools gettext multilib_header texinfo | 16 | inherit autotools gettext multilib_header texinfo |
| 17 | 17 | ||
| 18 | FILES_${PN} = " \ | 18 | FILES:${PN} = " \ |
| 19 | ${bindir}/${TARGET_PREFIX}* \ | 19 | ${bindir}/${TARGET_PREFIX}* \ |
| 20 | ${libdir}/lib*.so.* \ | 20 | ${libdir}/lib*.so.* \ |
| 21 | ${libdir}/bfd-plugins/lib*.so \ | 21 | ${libdir}/bfd-plugins/lib*.so \ |
| @@ -23,9 +23,9 @@ FILES_${PN} = " \ | |||
| 23 | ${prefix}/${TARGET_SYS}/bin/* \ | 23 | ${prefix}/${TARGET_SYS}/bin/* \ |
| 24 | ${bindir}/embedspu" | 24 | ${bindir}/embedspu" |
| 25 | 25 | ||
| 26 | RPROVIDES_${PN} += "${PN}-symlinks" | 26 | RPROVIDES:${PN} += "${PN}-symlinks" |
| 27 | 27 | ||
| 28 | FILES_${PN}-dev = " \ | 28 | FILES:${PN}-dev = " \ |
| 29 | ${includedir} \ | 29 | ${includedir} \ |
| 30 | ${libdir}/*.la \ | 30 | ${libdir}/*.la \ |
| 31 | ${libdir}/libbfd.so \ | 31 | ${libdir}/libbfd.so \ |
| @@ -37,9 +37,9 @@ FILES_${PN}-dev = " \ | |||
| 37 | # list and reuse it. | 37 | # list and reuse it. |
| 38 | 38 | ||
| 39 | LDGOLD_ALTS ?= "ld.gold dwp" | 39 | LDGOLD_ALTS ?= "ld.gold dwp" |
| 40 | LDGOLD_ALTS_riscv64 = "" | 40 | LDGOLD_ALTS:riscv64 = "" |
| 41 | LDGOLD_ALTS_riscv32 = "" | 41 | LDGOLD_ALTS:riscv32 = "" |
| 42 | LDGOLD_ALTS_libc-glibc_mipsarch = "" | 42 | LDGOLD_ALTS:libc-glibc:mipsarch = "" |
| 43 | 43 | ||
| 44 | USE_ALTERNATIVES_FOR = " \ | 44 | USE_ALTERNATIVES_FOR = " \ |
| 45 | addr2line \ | 45 | addr2line \ |
| @@ -61,7 +61,7 @@ USE_ALTERNATIVES_FOR = " \ | |||
| 61 | strip \ | 61 | strip \ |
| 62 | " | 62 | " |
| 63 | 63 | ||
| 64 | python do_package_prepend() { | 64 | python do_package:prepend() { |
| 65 | make_alts = d.getVar("USE_ALTERNATIVES_FOR") or "" | 65 | make_alts = d.getVar("USE_ALTERNATIVES_FOR") or "" |
| 66 | prefix = d.getVar("TARGET_PREFIX") | 66 | prefix = d.getVar("TARGET_PREFIX") |
| 67 | bindir = d.getVar("bindir") | 67 | bindir = d.getVar("bindir") |
| @@ -86,12 +86,12 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ | |||
| 86 | ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}" | 86 | ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}" |
| 87 | 87 | ||
| 88 | EXTRA_TARGETS = "" | 88 | EXTRA_TARGETS = "" |
| 89 | EXTRA_TARGETS_x86-64 = " --enable-targets=x86_64-pe,x86_64-pep " | 89 | EXTRA_TARGETS:x86-64 = " --enable-targets=x86_64-pe,x86_64-pep " |
| 90 | EXTRA_TARGETS_class-native = "" | 90 | EXTRA_TARGETS:class-native = "" |
| 91 | 91 | ||
| 92 | LDGOLD_class-native = "" | 92 | LDGOLD:class-native = "" |
| 93 | LDGOLD_class-crosssdk = "" | 93 | LDGOLD:class-crosssdk = "" |
| 94 | LDGOLD_libc-glibc_mipsarch = "" | 94 | LDGOLD:libc-glibc:mipsarch = "" |
| 95 | LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}" | 95 | LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}" |
| 96 | 96 | ||
| 97 | 97 | ||
| @@ -176,7 +176,7 @@ inherit update-alternatives | |||
| 176 | 176 | ||
| 177 | ALTERNATIVE_PRIORITY = "100" | 177 | ALTERNATIVE_PRIORITY = "100" |
| 178 | 178 | ||
| 179 | ALTERNATIVE_${PN}_class-target = "${USE_ALTERNATIVES_FOR}" | 179 | ALTERNATIVE:${PN}:class-target = "${USE_ALTERNATIVES_FOR}" |
| 180 | 180 | ||
| 181 | python () { | 181 | python () { |
| 182 | if bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', True, False, d) and bb.utils.contains_any('TARGET_ARCH', 'riscv32 riscv64', True, False, d): | 182 | if bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', True, False, d) and bb.utils.contains_any('TARGET_ARCH', 'riscv32 riscv64', True, False, d): |
diff --git a/meta/recipes-devtools/binutils/binutils_2.37.bb b/meta/recipes-devtools/binutils/binutils_2.37.bb index ee9617de1d..ff9377049b 100644 --- a/meta/recipes-devtools/binutils/binutils_2.37.bb +++ b/meta/recipes-devtools/binutils/binutils_2.37.bb | |||
| @@ -10,11 +10,11 @@ EXTRA_OECONF += "--with-sysroot=/ \ | |||
| 10 | --with-system-zlib \ | 10 | --with-system-zlib \ |
| 11 | " | 11 | " |
| 12 | 12 | ||
| 13 | EXTRA_OEMAKE_append_libc-musl = "\ | 13 | EXTRA_OEMAKE:append:libc-musl = "\ |
| 14 | gt_cv_func_gnugettext1_libc=yes \ | 14 | gt_cv_func_gnugettext1_libc=yes \ |
| 15 | gt_cv_func_gnugettext2_libc=yes \ | 15 | gt_cv_func_gnugettext2_libc=yes \ |
| 16 | " | 16 | " |
| 17 | EXTRA_OECONF_class-native = "--enable-targets=all \ | 17 | EXTRA_OECONF:class-native = "--enable-targets=all \ |
| 18 | --enable-64-bit-bfd \ | 18 | --enable-64-bit-bfd \ |
| 19 | --enable-install-libiberty \ | 19 | --enable-install-libiberty \ |
| 20 | --enable-install-libbfd \ | 20 | --enable-install-libbfd \ |
| @@ -29,10 +29,10 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" | |||
| 29 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" | 29 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" |
| 30 | # gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target | 30 | # gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target |
| 31 | # So remove -O2 and use -Os as workaround | 31 | # So remove -O2 and use -Os as workaround |
| 32 | SELECTED_OPTIMIZATION_remove_mipsarch = "-O2" | 32 | SELECTED_OPTIMIZATION:remove:mipsarch = "-O2" |
| 33 | SELECTED_OPTIMIZATION_append_mipsarch = " -Os" | 33 | SELECTED_OPTIMIZATION:append:mipsarch = " -Os" |
| 34 | 34 | ||
| 35 | do_install_class-native () { | 35 | do_install:class-native () { |
| 36 | autotools_do_install | 36 | autotools_do_install |
| 37 | 37 | ||
| 38 | # Install the libiberty header | 38 | # Install the libiberty header |
| @@ -55,19 +55,19 @@ do_install_class-native () { | |||
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | # libctf races with libbfd | 57 | # libctf races with libbfd |
| 58 | PARALLEL_MAKEINST_class-target = "" | 58 | PARALLEL_MAKEINST:class-target = "" |
| 59 | PARALLEL_MAKEINST_class-nativesdk = "" | 59 | PARALLEL_MAKEINST:class-nativesdk = "" |
| 60 | 60 | ||
| 61 | # Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include | 61 | # Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include |
| 62 | # extra stuff | 62 | # extra stuff |
| 63 | PACKAGE_BEFORE_PN += "libbfd libopcodes" | 63 | PACKAGE_BEFORE_PN += "libbfd libopcodes" |
| 64 | FILES_libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so" | 64 | FILES:libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so" |
| 65 | FILES_libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so" | 65 | FILES:libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so" |
| 66 | 66 | ||
| 67 | SRC_URI_append_class-nativesdk = " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch " | 67 | SRC_URI:append:class-nativesdk = " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch " |
| 68 | 68 | ||
| 69 | USE_ALTERNATIVES_FOR_class-nativesdk = "" | 69 | USE_ALTERNATIVES_FOR:class-nativesdk = "" |
| 70 | FILES_${PN}_append_class-nativesdk = " ${bindir}" | 70 | FILES:${PN}:append:class-nativesdk = " ${bindir}" |
| 71 | 71 | ||
| 72 | BBCLASSEXTEND = "native nativesdk" | 72 | BBCLASSEXTEND = "native nativesdk" |
| 73 | 73 | ||
