summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMichal Simek <[email protected]>2026-02-26 10:27:16 +0100
committerTom Rini <[email protected]>2026-03-13 13:21:52 -0600
commit60ef345b1a10ec859f29ebc706724f907e8771cb (patch)
treeab2a01e64dabaab4787ef231d6e1fefb8a97410f /common
parent7f35a4251dae2b1c94c959ac15cf4d0814485a88 (diff)
spl: Remake SPL elf from bin
On Xilinx MB-V there is a need to use ELF file for SPL which is placed in BRAM (Block RAM) because tools for placing code to bitstream requires to use ELF. That's why introduce SPL_REMAKE_ELF similar to REMAKE_ELF option as was originally done by commit f4dc714aaa2d ("arm64: Turn u-boot.bin back into an ELF file after relocate-rela"). There is already generic and simple linker script (arch/u-boot-elf.lds) which can be also used without any modification. Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'common')
-rw-r--r--common/spl/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index dafc0cb91bd..69b6ad77346 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -707,6 +707,13 @@ config SPL_DRIVERS_MISC
option to build the drivers in drivers/misc as part of an SPL
build, for those that support building in SPL (not all drivers do).
+config SPL_REMAKE_ELF
+ bool "Recreate an ELF image from raw SPL binary"
+ help
+ Enable this to recreate an ELF image (spl/u-boot-spl.elf) from the raw
+ SPL binary (spl/u-boot-spl.bin), which may already have been statically
+ relocated and may already have a device-tree appended to it.
+
config SPL_ENV_SUPPORT
bool "Support an environment"
help