[PATCH 1/6] boot: fit: fix FIT verification in SPL

Francesco Valla francesco at valla.it
Thu Jun 4 22:41:35 CEST 2026


Align the behavior of fit_image_verify() called in SPL to the one in
full U-Boot. In particular, this function is called when both
CONFIG_SPL_LOAD_FIT_FULL and CONFIG_SPL_FIT_SIGNATURE are set (which can
happen e.g. in case of secure falcon boot).

Reviewed-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Francesco Valla <francesco at valla.it>
---
 boot/image-fit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boot/image-fit.c b/boot/image-fit.c
index b0fcaf6e17fa..6723a5e659fc 100644
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
@@ -1439,7 +1439,7 @@ int fit_image_verify(const void *fit, int image_noffset)
 	size_t		size;
 	char		*err_msg = "";
 
-	if (IS_ENABLED(CONFIG_FIT_SIGNATURE) && strchr(name, '@')) {
+	if (CONFIG_IS_ENABLED(FIT_SIGNATURE) && strchr(name, '@')) {
 		/*
 		 * We don't support this since libfdt considers names with the
 		 * name root but different @ suffix to be equal

-- 
2.54.0



More information about the U-Boot mailing list