diff options
author | Xiaotian Wu <wuxiaotian@loongson.cn> | 2023-02-03 07:16:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-04 17:02:10 +0000 |
commit | 2f26104ebcae4cadb6da5858461c475fa6cbeb91 (patch) | |
tree | a010d2a934102ad21272062364a357c1c08b7583 /meta/recipes-devtools | |
parent | f3889273f5d736d30e901c651ea81260af701003 (diff) | |
download | poky-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.inc | 5 |
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}" | |||
57 | LDGOLD_ALTS ?= "ld.gold dwp" | 57 | LDGOLD_ALTS ?= "ld.gold dwp" |
58 | LDGOLD_ALTS:riscv64 = "" | 58 | LDGOLD_ALTS:riscv64 = "" |
59 | LDGOLD_ALTS:riscv32 = "" | 59 | LDGOLD_ALTS:riscv32 = "" |
60 | LDGOLD_ALTS:loongarch64 = "" | ||
60 | LDGOLD_ALTS:libc-glibc:mipsarch = "" | 61 | LDGOLD_ALTS:libc-glibc:mipsarch = "" |
61 | 62 | ||
62 | USE_ALTERNATIVES_FOR = " \ | 63 | USE_ALTERNATIVES_FOR = " \ |
@@ -198,6 +199,6 @@ ALTERNATIVE_PRIORITY = "100" | |||
198 | ALTERNATIVE:${PN}:class-target = "${USE_ALTERNATIVES_FOR}" | 199 | ALTERNATIVE:${PN}:class-target = "${USE_ALTERNATIVES_FOR}" |
199 | 200 | ||
200 | python () { | 201 | python () { |
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 | } |