From: Sean Anderson Date: Mon, 12 Dec 2022 19:12:07 +0000 (-0500) Subject: image: Add fallback for fit_config_verify X-Git-Tag: v2025.01-rc5-pxa1908~1158^2~4^2~4 X-Git-Url: http://git.dujemihanovic.xyz/projects?a=commitdiff_plain;h=b5fd7b4a31e5098ff024ebc63bccfcb2b4429c82;p=u-boot.git image: Add fallback for fit_config_verify Add a fallback for this function so it can be used without regard to whether FIT_SIGNATURE is enabled or not. Signed-off-by: Sean Anderson Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- diff --git a/include/image.h b/include/image.h index b6a809834a..6f9c5a486b 100644 --- a/include/image.h +++ b/include/image.h @@ -1259,7 +1259,14 @@ int fit_image_verify_with_data(const void *fit, int image_noffset, size_t size); int fit_image_verify(const void *fit, int noffset); +#if CONFIG_IS_ENABLED(FIT_SIGNATURE) int fit_config_verify(const void *fit, int conf_noffset); +#else +static inline int fit_config_verify(const void *fit, int conf_noffset) +{ + return 0; +} +#endif int fit_all_image_verify(const void *fit); int fit_config_decrypt(const void *fit, int conf_noffset); int fit_image_check_os(const void *fit, int noffset, uint8_t os);