summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/recipes-devtools/binutils
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-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')
-rw-r--r--meta/recipes-devtools/binutils/binutils-cross-canadian.inc2
-rw-r--r--meta/recipes-devtools/binutils/binutils-crosssdk_2.37.bb2
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc26
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.37.bb24
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.
14EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH" 14EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH"
15 15
16LDGOLD_sdkmingw32 = "" 16LDGOLD:sdkmingw32 = ""
17 17
18do_install () { 18do_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
9SRC_URI += "file://0001-binutils-crosssdk-Generate-relocatable-SDKs.patch" 9SRC_URI += "file://0001-binutils-crosssdk-Generate-relocatable-SDKs.patch"
10 10
11do_configure_prepend () { 11do_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
16inherit autotools gettext multilib_header texinfo 16inherit autotools gettext multilib_header texinfo
17 17
18FILES_${PN} = " \ 18FILES:${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
26RPROVIDES_${PN} += "${PN}-symlinks" 26RPROVIDES:${PN} += "${PN}-symlinks"
27 27
28FILES_${PN}-dev = " \ 28FILES:${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
39LDGOLD_ALTS ?= "ld.gold dwp" 39LDGOLD_ALTS ?= "ld.gold dwp"
40LDGOLD_ALTS_riscv64 = "" 40LDGOLD_ALTS:riscv64 = ""
41LDGOLD_ALTS_riscv32 = "" 41LDGOLD_ALTS:riscv32 = ""
42LDGOLD_ALTS_libc-glibc_mipsarch = "" 42LDGOLD_ALTS:libc-glibc:mipsarch = ""
43 43
44USE_ALTERNATIVES_FOR = " \ 44USE_ALTERNATIVES_FOR = " \
45 addr2line \ 45 addr2line \
@@ -61,7 +61,7 @@ USE_ALTERNATIVES_FOR = " \
61 strip \ 61 strip \
62" 62"
63 63
64python do_package_prepend() { 64python 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
88EXTRA_TARGETS = "" 88EXTRA_TARGETS = ""
89EXTRA_TARGETS_x86-64 = " --enable-targets=x86_64-pe,x86_64-pep " 89EXTRA_TARGETS:x86-64 = " --enable-targets=x86_64-pe,x86_64-pep "
90EXTRA_TARGETS_class-native = "" 90EXTRA_TARGETS:class-native = ""
91 91
92LDGOLD_class-native = "" 92LDGOLD:class-native = ""
93LDGOLD_class-crosssdk = "" 93LDGOLD:class-crosssdk = ""
94LDGOLD_libc-glibc_mipsarch = "" 94LDGOLD:libc-glibc:mipsarch = ""
95LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}" 95LDGOLD ?= "${@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
177ALTERNATIVE_PRIORITY = "100" 177ALTERNATIVE_PRIORITY = "100"
178 178
179ALTERNATIVE_${PN}_class-target = "${USE_ALTERNATIVES_FOR}" 179ALTERNATIVE:${PN}:class-target = "${USE_ALTERNATIVES_FOR}"
180 180
181python () { 181python () {
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
13EXTRA_OEMAKE_append_libc-musl = "\ 13EXTRA_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 "
17EXTRA_OECONF_class-native = "--enable-targets=all \ 17EXTRA_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)}"
29PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" 29PACKAGECONFIG[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
32SELECTED_OPTIMIZATION_remove_mipsarch = "-O2" 32SELECTED_OPTIMIZATION:remove:mipsarch = "-O2"
33SELECTED_OPTIMIZATION_append_mipsarch = " -Os" 33SELECTED_OPTIMIZATION:append:mipsarch = " -Os"
34 34
35do_install_class-native () { 35do_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
58PARALLEL_MAKEINST_class-target = "" 58PARALLEL_MAKEINST:class-target = ""
59PARALLEL_MAKEINST_class-nativesdk = "" 59PARALLEL_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
63PACKAGE_BEFORE_PN += "libbfd libopcodes" 63PACKAGE_BEFORE_PN += "libbfd libopcodes"
64FILES_libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so" 64FILES:libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so"
65FILES_libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so" 65FILES:libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so"
66 66
67SRC_URI_append_class-nativesdk = " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch " 67SRC_URI:append:class-nativesdk = " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch "
68 68
69USE_ALTERNATIVES_FOR_class-nativesdk = "" 69USE_ALTERNATIVES_FOR:class-nativesdk = ""
70FILES_${PN}_append_class-nativesdk = " ${bindir}" 70FILES:${PN}:append:class-nativesdk = " ${bindir}"
71 71
72BBCLASSEXTEND = "native nativesdk" 72BBCLASSEXTEND = "native nativesdk"
73 73