[PATCH 35/49] image: Drop IMAGE_ENABLE_IGNORE
Simon Glass
sjg at chromium.org
Tue May 4 01:11:22 CEST 2021
We can use the new host_build() function for this, so drop it.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
common/image-fit.c | 2 +-
include/image.h | 3 ---
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/common/image-fit.c b/common/image-fit.c
index 070835b3a87..c13ff6bba24 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1262,7 +1262,7 @@ static int fit_image_check_hash(const void *fit, int noffset, const void *data,
}
printf("%s", algo);
- if (IMAGE_ENABLE_IGNORE) {
+ if (!host_build()) {
fit_image_hash_get_ignore(fit, noffset, &ignore);
if (ignore) {
printf("-skipped ");
diff --git a/include/image.h b/include/image.h
index eb5ca8a32d3..64866c609f4 100644
--- a/include/image.h
+++ b/include/image.h
@@ -27,7 +27,6 @@ struct fdt_region;
#include <sys/types.h>
#include <linux/kconfig.h>
-#define IMAGE_ENABLE_IGNORE 0
#define IMAGE_INDENT_STRING ""
#else
@@ -36,8 +35,6 @@ struct fdt_region;
#include <asm/u-boot.h>
#include <command.h>
-/* Take notice of the 'ignore' property for hashes */
-#define IMAGE_ENABLE_IGNORE 1
#define IMAGE_INDENT_STRING " "
#endif /* USE_HOSTCC */
--
2.31.1.527.g47e6f16901-goog
More information about the U-Boot
mailing list