[PATCH v5 01/11] Makefile: add SPL_REMAKE_ELF_LDSCRIPT feature
Michael Srba
Michael.Srba at seznam.cz
Tue May 5 18:26:19 CEST 2026
Hi,
On 5/5/26 15:58, Simon Glass wrote:
> Hi Michael,
>
> On 2026-05-05T00:47:48, Michael Srba <michael.srba at seznam.cz> wrote:
>> Makefile: add SPL_REMAKE_ELF_LDSCRIPT feature
>>
>> Some platforms (e.g. at least Qualcomm) use the ELF format in creative
>> ways, including in the bootrom. Make SPL_REMAKE_ELF use a linker script
>> specified in SPL_REMAKE_ELF_LDSCRIPT (with the previously hardcoded path
>> as the default).
>>
>> Signed-off-by: Michael Srba <Michael.Srba at seznam.cz>
>>
>> Makefile | 9 +++++++--
>> common/spl/Kconfig | 11 +++++++++++
>> 2 files changed, 18 insertions(+), 2 deletions(-)
>> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
>> @@ -238,6 +238,17 @@ config SPL_HANDOFF
>> + help
>> + This allows specifying a linker script that will be used to re-wrap
>> + the SPL binary into an ELF.
>> + Some platforms (e.g. at least Qualcomm) use the ELF format in creative
>> + ways, including in the bootrom. For such platforms, you can change
>> + the default linker script to a platform-specific one.
> Please add a blank line between the two paragraphs so menuconfig
> renders them separately.
>
> Missing file, as mentioned by Michal
looks like copy paste error, should clearly be arch/u-boot-elf.lds.
fwiw CI didn't complain, but I guess I should've compile tested
it locally.
> Regards,
> Simon
More information about the U-Boot
mailing list