summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorXiaotian Wu <wuxiaotian@loongson.cn>2023-02-03 07:16:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-04 17:02:10 +0000
commit2f26104ebcae4cadb6da5858461c475fa6cbeb91 (patch)
treea010d2a934102ad21272062364a357c1c08b7583 /meta/recipes-devtools
parentf3889273f5d736d30e901c651ea81260af701003 (diff)
downloadpoky-2f26104ebcae4cadb6da5858461c475fa6cbeb91.tar.gz
binutils: disable gold on loongarch64
(From OE-Core rev: ea2c3952e28b191459ff6020ba0c6104ab33ee1c) Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 98acf0a222..b2dbf241df 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -57,6 +57,7 @@ GPROFNG_ALTS:aarch64 = "${GPROFNGS}"
57LDGOLD_ALTS ?= "ld.gold dwp" 57LDGOLD_ALTS ?= "ld.gold dwp"
58LDGOLD_ALTS:riscv64 = "" 58LDGOLD_ALTS:riscv64 = ""
59LDGOLD_ALTS:riscv32 = "" 59LDGOLD_ALTS:riscv32 = ""
60LDGOLD_ALTS:loongarch64 = ""
60LDGOLD_ALTS:libc-glibc:mipsarch = "" 61LDGOLD_ALTS:libc-glibc:mipsarch = ""
61 62
62USE_ALTERNATIVES_FOR = " \ 63USE_ALTERNATIVES_FOR = " \
@@ -198,6 +199,6 @@ ALTERNATIVE_PRIORITY = "100"
198ALTERNATIVE:${PN}:class-target = "${USE_ALTERNATIVES_FOR}" 199ALTERNATIVE:${PN}:class-target = "${USE_ALTERNATIVES_FOR}"
199 200
200python () { 201python () {
201 if bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', True, False, d) and bb.utils.contains_any('TARGET_ARCH', 'riscv32 riscv64', True, False, d): 202 if bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', True, False, d) and bb.utils.contains_any('TARGET_ARCH', 'riscv32 riscv64 loongarch64', True, False, d):
202 bb.fatal("Gold linker does not _yet_ support RISC-V architecture please remove ld-is-gold from DISTRO_FEATURES") 203 bb.fatal("Gold linker does not _yet_ support RISC-V and LoongArch architecture please remove ld-is-gold from DISTRO_FEATURES")
203} 204}