summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2022-09-22 16:25:45 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-22 21:39:21 +0100
commit14eea4a99511743e8e23a3ed6e189a2940d8f351 (patch)
treeee4afeb7a70962639ad6636e90a952593e33b1cd /meta/recipes-devtools/binutils
parent33b4ad72ee02586bf66d281d848dc005c525bf43 (diff)
downloadpoky-14eea4a99511743e8e23a3ed6e189a2940d8f351.tar.gz
binutils: handle symlink files for gprofng
It provides gprofng by binutils 2.39 for x86, x86_64 and aarch64 according to configure.ac: https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=configure.ac;h=a5555a9c91b42214afc46a0ab8b629e4c6fedcc0;hb=HEAD#l401 Add them to USE_ALTERNATIVES_FOR the same as others to handle symlink files via update-alternative mechanism. And it disables gprofng for clang and musl in .bb file, so clear GPROFNG_ALTS for them too. (From OE-Core rev: 35bec42c4023a00a0a3639935633051ce9c1c0ba) 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')
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 789c8bec21..4dde387a8a 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -36,6 +36,23 @@ FILES:${PN}-dev = " \
36# Rather than duplicating multiple entries for these, make one 36# Rather than duplicating multiple entries for these, make one
37# list and reuse it. 37# list and reuse it.
38 38
39GPROFNGS = " \
40 gp-archive \
41 gp-collect-app \
42 gp-display-html \
43 gp-display-src \
44 gp-display-text \
45 gprofng \
46"
47GPROFNG_ALTS ?= ""
48GPROFNG_ALTS:x86 = "${GPROFNGS}"
49GPROFNG_ALTS:x86-64 = "${GPROFNGS}"
50GPROFNG_ALTS:aarch64 = "${GPROFNGS}"
51
52# it disables gprofng for clang and musl in the bb file
53GPROFNG_ALTS:toolchain-clang = ""
54GPROFNG_ALTS:libc-musl = ""
55
39LDGOLD_ALTS ?= "ld.gold dwp" 56LDGOLD_ALTS ?= "ld.gold dwp"
40LDGOLD_ALTS:riscv64 = "" 57LDGOLD_ALTS:riscv64 = ""
41LDGOLD_ALTS:riscv32 = "" 58LDGOLD_ALTS:riscv32 = ""
@@ -48,6 +65,7 @@ USE_ALTERNATIVES_FOR = " \
48 c++filt \ 65 c++filt \
49 elfedit \ 66 elfedit \
50 gprof \ 67 gprof \
68 ${GPROFNG_ALTS} \
51 ld \ 69 ld \
52 ld.bfd \ 70 ld.bfd \
53 ${LDGOLD_ALTS} \ 71 ${LDGOLD_ALTS} \