imx-atf: Align with upstream

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
This commit is contained in:
Tom Hochstein 2024-10-11 11:30:05 -05:00
parent 6ebfa7f58d
commit 53ea84b39d

View File

@ -23,7 +23,7 @@ ATF_PLATFORM ??= "INVALID"
ATF_BOOT_UART_BASE ?= ""
EXTRA_OEMAKE += " \
CROSS_COMPILE="${TARGET_PREFIX}" \
CROSS_COMPILE=${TARGET_PREFIX} \
PLAT=${ATF_PLATFORM} \
"
@ -49,7 +49,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'))}"'
# 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'))}"'