Add the Nord SPL linker script and board configuration. Use the existing SPL_REMAKE_ELF infrastructure for the Nord-specific wrapper ELF layout and 4 KiB page alignment.
Update the top-level Makefile for the board configuration. Signed-off-by: Abhilash V <[email protected]> Signed-off-by: KR Sowmiya <[email protected]> --- Makefile | 1 + board/qualcomm/nord/nord-spl-wrap-elf.lds | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 board/qualcomm/nord/nord-spl-wrap-elf.lds diff --git a/Makefile b/Makefile index 6303a0cca6a..287516e1678 100644 --- a/Makefile +++ b/Makefile @@ -2024,6 +2024,7 @@ u-boot.elf: u-boot.bin u-boot-elf.lds FORCE quiet_cmd_u-boot-spl-elf ?= LD $@ cmd_u-boot-spl-elf ?= $(LD) spl/u-boot-spl-elf.o -o $@ \ $(if $(CONFIG_SYS_BIG_ENDIAN),-EB,-EL) \ + $(SPL_REMAKE_ELF_LDFLAGS) \ -T spl/u-boot-spl-elf.lds --defsym=$(CONFIG_PLATFORM_ELFENTRY)=$(CONFIG_SPL_TEXT_BASE) \ -Ttext=$(CONFIG_SPL_TEXT_BASE) diff --git a/board/qualcomm/nord/nord-spl-wrap-elf.lds b/board/qualcomm/nord/nord-spl-wrap-elf.lds new file mode 100644 index 00000000000..74cc9e482b6 --- /dev/null +++ b/board/qualcomm/nord/nord-spl-wrap-elf.lds @@ -0,0 +1,19 @@ +/* + * SPDX-License-Identifier: GPL-2.0 + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ + +OUTPUT_FORMAT("default") +ENTRY(CONFIG_PLATFORM_ELFENTRY) + +PHDRS { + ptype PT_LOAD FLAGS(0x7); +} + +SECTIONS { + . = CONFIG_PLATFORM_ELFENTRY; + .data : { + *(.data*) + . = ALIGN(0x1000); + } :ptype +} \ No newline at end of file -- 2.43.0
