summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Valla <[email protected]>2026-06-04 22:41:35 +0200
committerTom Rini <[email protected]>2026-06-17 14:16:41 -0600
commite50ee1acd4a519cb0320d7227581b7a7841e8a47 (patch)
tree91cb663396e893208d04103a458a1d246ddbe1d1
parent74007f24a3aca13b70da6a2c098b830ad9e60804 (diff)
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 <[email protected]> Signed-off-by: Francesco Valla <[email protected]>
-rw-r--r--boot/image-fit.c2
1 files changed, 1 insertions, 1 deletions
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