]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
boot: fit: fix FIT verification in SPL
authorFrancesco Valla <francesco@valla.it>
Thu, 4 Jun 2026 20:41:35 +0000 (22:41 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 17 Jun 2026 20:16:41 +0000 (14:16 -0600)
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@chromium.org>
Signed-off-by: Francesco Valla <francesco@valla.it>
boot/image-fit.c

index b0fcaf6e17fa97870d44abbd9dd3e9e43b774053..6723a5e659fc53fe140cd298eeac5a56d2cb219d 100644 (file)
@@ -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