From afa33cd5432f190437035624a5574ab1a7c47f13 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 29 Aug 2018 19:00:56 -0700 Subject: gdb: Seprate out gold and dwp into a variable This is needed for riscv64 to build target binutils fixes alternatives creation Signed-off-by: Khem Raj --- meta/recipes-devtools/binutils/binutils.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc index 37813dd864..b56fcd4cd0 100644 --- a/meta/recipes-devtools/binutils/binutils.inc +++ b/meta/recipes-devtools/binutils/binutils.inc @@ -38,6 +38,9 @@ FILES_${PN}-dev = " \ # Rather than duplicating multiple entries for these, make one # list and reuse it. +LDGOLD ?= "ld.gold dwp" +LDGOLD_riscv64 = "" + USE_ALTERNATIVES_FOR = " \ addr2line \ ar \ @@ -47,7 +50,7 @@ USE_ALTERNATIVES_FOR = " \ gprof \ ld \ ld.bfd \ - ld.gold dwp \ + ${LDGOLD} \ nm \ objcopy \ objdump \ -- cgit 1.2.3-korg