summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils.inc
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2022-09-29 16:05:36 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-29 21:15:50 +0100
commitb46ab07288c415238b1d669b271671c17ecfca5c (patch)
treedb0c88d604ea2307fc311d4b79642f17502d21f0 /meta/recipes-devtools/binutils/binutils.inc
parent20c8f3149f49b57a6228ff1f1b6720b210f634be (diff)
downloadpoky-b46ab07288c415238b1d669b271671c17ecfca5c.tar.gz
binutils: another way to clear GPROFNG_ALTS for clang and musl
It disables gprofng for toolchain clang and libc musl, so GPROFNG_ALTS should be cleared for them. But override 'toolchain-clang' is applied before overrides 'TRANSLATED_TARGET_ARCH' such as x86-64, then GPROFNG_ALTS is still set and not cleared. Apply overrides 'toolchain-clang' and 'libc-musl' for GPROFNGS rather than GPROFNG_ALTS to make it work as expected. (From OE-Core rev: 30630b0e61835278a2e06262560de67c7a867ff6) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils.inc')
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 4dde387a8a..98acf0a222 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -44,15 +44,16 @@ GPROFNGS = " \
44 gp-display-text \ 44 gp-display-text \
45 gprofng \ 45 gprofng \
46" 46"
47
48# it disables gprofng for clang and musl in the bb file
49GPROFNGS:toolchain-clang = ""
50GPROFNGS:libc-musl = ""
51
47GPROFNG_ALTS ?= "" 52GPROFNG_ALTS ?= ""
48GPROFNG_ALTS:x86 = "${GPROFNGS}" 53GPROFNG_ALTS:x86 = "${GPROFNGS}"
49GPROFNG_ALTS:x86-64 = "${GPROFNGS}" 54GPROFNG_ALTS:x86-64 = "${GPROFNGS}"
50GPROFNG_ALTS:aarch64 = "${GPROFNGS}" 55GPROFNG_ALTS:aarch64 = "${GPROFNGS}"
51 56
52# it disables gprofng for clang and musl in the bb file
53GPROFNG_ALTS:toolchain-clang = ""
54GPROFNG_ALTS:libc-musl = ""
55
56LDGOLD_ALTS ?= "ld.gold dwp" 57LDGOLD_ALTS ?= "ld.gold dwp"
57LDGOLD_ALTS:riscv64 = "" 58LDGOLD_ALTS:riscv64 = ""
58LDGOLD_ALTS:riscv32 = "" 59LDGOLD_ALTS:riscv32 = ""