diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-12-12 14:12:07 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-12-31 13:35:19 -0500 |
commit | b5fd7b4a31e5098ff024ebc63bccfcb2b4429c82 (patch) | |
tree | 8bbcbe4114dbd0aea07a91b160e71e423be353f3 /include | |
parent | 3e4cbe184a0f6537abb457d6afa61224396c4e46 (diff) | |
download | u-boot-b5fd7b4a31e5098ff024ebc63bccfcb2b4429c82.tar.gz u-boot-b5fd7b4a31e5098ff024ebc63bccfcb2b4429c82.tar.bz2 u-boot-b5fd7b4a31e5098ff024ebc63bccfcb2b4429c82.zip |
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 <sean.anderson@seco.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/image.h | 7 |
1 files changed, 7 insertions, 0 deletions
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); |