From 823e453987a6590af67e2226ad3e73fb399c205d Mon Sep 17 00:00:00 2001 From: Anshul Dalal Date: Mon, 27 Oct 2025 19:47:02 +0530 Subject: 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 Reviewed-by: Tom Rini --- cmd/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd') 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. -- cgit v1.2.3