From: Francesco Valla Date: Thu, 4 Jun 2026 20:41:35 +0000 (+0200) Subject: boot: fit: fix FIT verification in SPL X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e50ee1acd4a519cb0320d7227581b7a7841e8a47;p=thirdparty%2Fu-boot.git boot: fit: fix FIT verification in SPL 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 Signed-off-by: Francesco Valla --- diff --git a/boot/image-fit.c b/boot/image-fit.c index b0fcaf6e17f..6723a5e659f 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