From 0ede6b6fbd146563c5506108c87dce0ab808ad1c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 11 Oct 2024 07:40:59 -0700 Subject: imx-atf: Redefine LD using HOST_PREFIX Distro's which use ld-is-lld end up with LD=ld.lld and remove_options_tail() does not handle such cases Signed-off-by: Khem Raj (cherry picked from commit 14c0b8720d75d36b97c07668000194a969f66417) --- recipes-bsp/imx-atf/imx-atf_2.10.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes-bsp/imx-atf/imx-atf_2.10.bb b/recipes-bsp/imx-atf/imx-atf_2.10.bb index 14ed12523..caa521617 100644 --- a/recipes-bsp/imx-atf/imx-atf_2.10.bb +++ b/recipes-bsp/imx-atf/imx-atf_2.10.bb @@ -48,7 +48,9 @@ def remove_options_tail (in_string): from itertools import takewhile return ' '.join(takewhile(lambda x: not x.startswith('-'), in_string.split(' '))) -EXTRA_OEMAKE += 'LD="${@remove_options_tail(d.getVar('LD'))}.bfd"' +# LD can have linker suffix in its name e.g. aarch64-yoe-linux-ld.lld so we need to +# drop .lld as well along with options from LD +EXTRA_OEMAKE += 'LD="${HOST_PREFIX}ld.bfd"' EXTRA_OEMAKE += 'CC="${@remove_options_tail(d.getVar('CC'))}"' -- cgit v1.2.3-54-g00ecf