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 --- boot/Kconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'boot') diff --git a/boot/Kconfig b/boot/Kconfig index 9adb051400f..6fd182d1ae4 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -33,6 +33,24 @@ config TIMESTAMP loaded that does not, the message 'Wrong FIT format: no timestamp' is shown. +config LIB_BOOTI + bool + +config LIB_BOOTM + bool + +config LIB_BOOTZ + bool + +config SPL_LIB_BOOTI + bool + +config SPL_LIB_BOOTM + bool + +config SPL_LIB_BOOTZ + bool + config BUTTON_CMD bool "Support for running a command if a button is held during boot" depends on CMDLINE -- cgit v1.3.1