diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-10-11 07:40:59 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-10-11 07:40:59 -0700 |
commit | 14c0b8720d75d36b97c07668000194a969f66417 (patch) | |
tree | ce64c7763eea90213e5ea7c9cee55fff117b62b6 | |
parent | c73e83bb2660fccbc4775811ef3645540427f685 (diff) | |
download | meta-freescale-14c0b8720d75d36b97c07668000194a969f66417.tar.gz |
imx-atf: Redefine LD using HOST_PREFIX
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 <raj.khem@gmail.com>
-rw-r--r-- | recipes-bsp/imx-atf/imx-atf_2.10.bb | 4 |
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 | ||
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"' | ||
52 | 54 | ||
53 | EXTRA_OEMAKE += 'CC="${@remove_options_tail(d.getVar('CC'))}"' | 55 | EXTRA_OEMAKE += 'CC="${@remove_options_tail(d.getVar('CC'))}"' |
54 | 56 | ||