diff options
| author | Sean Anderson <[email protected]> | 2022-12-12 14:12:07 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-12-31 13:35:19 -0500 |
| commit | b5fd7b4a31e5098ff024ebc63bccfcb2b4429c82 (patch) | |
| tree | 8bbcbe4114dbd0aea07a91b160e71e423be353f3 /include/image.h | |
| parent | 3e4cbe184a0f6537abb457d6afa61224396c4e46 (diff) | |
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 <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/image.h')
| -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 b6a809834ad..6f9c5a486bc 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); |
