summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAnshul Dalal <[email protected]>2025-10-27 19:47:02 +0530
committerTom Rini <[email protected]>2025-11-03 11:52:05 -0600
commit823e453987a6590af67e2226ad3e73fb399c205d (patch)
tree423861938792062759cd55f8b30ba8ea52aadae6 /cmd
parent9094482ca7576877b2bfaa57c8e73cfeb536f8b9 (diff)
spl: remove usage of CMD_BOOTx from image parsing
Using CMD_* configs from spl doesn't make logical sense. Therefore this patch replaces the checks for CMD_BOOTx with newly added library symbols LIB_BOOT[IMZ] and SPL_LIB_BOOT[IMZ] which are enabled by their respective CMD_* or SPL_* counterparts. On platforms with non-secure falcon mode, SPL_BOOTZ is enabled by default for 32-bit ARM systems and SPL_BOOTI is enabled by default for 64-bit ARM and RISCV. The respective C files (image.c/zimage.c) are compiled based on library symbols $(PHASE_)LIB_BOOTx instead which are in turn selected by both CMD_BOOTx and SPL_BOOTx as required. Signed-off-by: Anshul Dalal <[email protected]> Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 9929087a8bb..f8d60161152 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -284,6 +284,7 @@ config CMD_BOOTD
config CMD_BOOTM
bool "bootm"
default y
+ select LIB_BOOTM
help
Boot an application image from the memory.
@@ -360,6 +361,8 @@ config BOOTM_ELF
config CMD_BOOTZ
bool "bootz"
+ select LIB_BOOTZ
+ select LIB_BOOTM
help
Boot the Linux zImage
@@ -367,6 +370,8 @@ config CMD_BOOTI
bool "booti"
depends on ARM64 || RISCV || SANDBOX
default y
+ select LIB_BOOTI
+ select LIB_BOOTM
help
Boot an AArch64 Linux Kernel image from memory.