From b46ab07288c415238b1d669b271671c17ecfca5c Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Thu, 29 Sep 2022 16:05:36 +0800 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-devtools/binutils/binutils.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'meta/recipes-devtools/binutils') 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 = " \ gp-display-text \ gprofng \ " + +# it disables gprofng for clang and musl in the bb file +GPROFNGS:toolchain-clang = "" +GPROFNGS:libc-musl = "" + GPROFNG_ALTS ?= "" GPROFNG_ALTS:x86 = "${GPROFNGS}" GPROFNG_ALTS:x86-64 = "${GPROFNGS}" GPROFNG_ALTS:aarch64 = "${GPROFNGS}" -# it disables gprofng for clang and musl in the bb file -GPROFNG_ALTS:toolchain-clang = "" -GPROFNG_ALTS:libc-musl = "" - LDGOLD_ALTS ?= "ld.gold dwp" LDGOLD_ALTS:riscv64 = "" LDGOLD_ALTS:riscv32 = "" -- cgit v1.2.3-54-g00ecf