Skip to content

Commit

Permalink
imx-atf: Redefine LD using HOST_PREFIX
Browse files Browse the repository at this point in the history
Distro's which use ld-is-lld end up with LD=<HOST_PREFIX>ld.lld
and remove_options_tail() does not handle such cases

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Oct 11, 2024
1 parent c73e83b commit 14c0b87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes-bsp/imx-atf/imx-atf_2.10.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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'))}"'

Expand Down

0 comments on commit 14c0b87

Please sign in to comment.