summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils.inc')
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc26
1 files changed, 13 insertions, 13 deletions
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):