Skip to content

Commit 28aeeeb

Browse files
authored
Merge pull request #1968 from YoeDistro/yoe/mut
imx-atf: Redefine LD using HOST_PREFIX
2 parents c73e83b + 14c0b87 commit 28aeeeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

recipes-bsp/imx-atf/imx-atf_2.10.bb

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def remove_options_tail (in_string):
4848
from itertools import takewhile
4949
return ' '.join(takewhile(lambda x: not x.startswith('-'), in_string.split(' ')))
5050

51-
EXTRA_OEMAKE += 'LD="${@remove_options_tail(d.getVar('LD'))}.bfd"'
51+
# LD can have linker suffix in its name e.g. aarch64-yoe-linux-ld.lld so we need to
52+
# drop .lld as well along with options from LD
53+
EXTRA_OEMAKE += 'LD="${HOST_PREFIX}ld.bfd"'
5254

5355
EXTRA_OEMAKE += 'CC="${@remove_options_tail(d.getVar('CC'))}"'
5456

0 commit comments

Comments
 (0)