summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2024-10-11 11:50:06 -0300
committerGitHub <noreply@github.com>2024-10-11 11:50:06 -0300
commite05119f87751c93bbe29a956888352f5df7e93a7 (patch)
tree91ddbc085277c4e04ec8c5f95407f9d541521e63
parentb70cec85b6a1a9cad70251623dc17e34f426cdf9 (diff)
parent0ede6b6fbd146563c5506108c87dce0ab808ad1c (diff)
downloadmeta-freescale-e05119f87751c93bbe29a956888352f5df7e93a7.tar.gz
Merge pull request #1969 from Freescale/backport-1968-to-scarthgap
[Backport scarthgap] imx-atf: Redefine LD using HOST_PREFIX
-rw-r--r--recipes-bsp/imx-atf/imx-atf_2.10.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-bsp/imx-atf/imx-atf_2.10.bb b/recipes-bsp/imx-atf/imx-atf_2.10.bb
index 14ed1252..caa52161 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):
48 from itertools import takewhile 48 from itertools import takewhile
49 return ' '.join(takewhile(lambda x: not x.startswith('-'), in_string.split(' '))) 49 return ' '.join(takewhile(lambda x: not x.startswith('-'), in_string.split(' ')))
50 50
51EXTRA_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
53EXTRA_OEMAKE += 'LD="${HOST_PREFIX}ld.bfd"'
52 54
53EXTRA_OEMAKE += 'CC="${@remove_options_tail(d.getVar('CC'))}"' 55EXTRA_OEMAKE += 'CC="${@remove_options_tail(d.getVar('CC'))}"'
54 56