[PATCH v4 1/5] image: Add fallback for fit_config_verify
Sean Anderson
sean.anderson at seco.com
Mon Dec 12 20:12:07 CET 2022
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 at seco.com>
---
Changes in v4:
- New
include/image.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/image.h b/include/image.h
index 6f21dafba8..2a53c30486 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1258,7 +1258,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);
--
2.35.1.1320.gc452695387.dirty
More information about the U-Boot
mailing list