diff options
author | Kai Kang <kai.kang@windriver.com> | 2022-09-29 16:05:36 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-29 21:15:50 +0100 |
commit | b46ab07288c415238b1d669b271671c17ecfca5c (patch) | |
tree | db0c88d604ea2307fc311d4b79642f17502d21f0 /meta | |
parent | 20c8f3149f49b57a6228ff1f1b6720b210f634be (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils.inc | 9 |
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 | ||
49 | GPROFNGS:toolchain-clang = "" | ||
50 | GPROFNGS:libc-musl = "" | ||
51 | |||
47 | GPROFNG_ALTS ?= "" | 52 | GPROFNG_ALTS ?= "" |
48 | GPROFNG_ALTS:x86 = "${GPROFNGS}" | 53 | GPROFNG_ALTS:x86 = "${GPROFNGS}" |
49 | GPROFNG_ALTS:x86-64 = "${GPROFNGS}" | 54 | GPROFNG_ALTS:x86-64 = "${GPROFNGS}" |
50 | GPROFNG_ALTS:aarch64 = "${GPROFNGS}" | 55 | GPROFNG_ALTS:aarch64 = "${GPROFNGS}" |
51 | 56 | ||
52 | # it disables gprofng for clang and musl in the bb file | ||
53 | GPROFNG_ALTS:toolchain-clang = "" | ||
54 | GPROFNG_ALTS:libc-musl = "" | ||
55 | |||
56 | LDGOLD_ALTS ?= "ld.gold dwp" | 57 | LDGOLD_ALTS ?= "ld.gold dwp" |
57 | LDGOLD_ALTS:riscv64 = "" | 58 | LDGOLD_ALTS:riscv64 = "" |
58 | LDGOLD_ALTS:riscv32 = "" | 59 | LDGOLD_ALTS:riscv32 = "" |