diff options
Diffstat (limited to 'meta/recipes-devtools/binutils')
-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 | } |