aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-09-25 19:43:28 -0600
committerTom Rini <trini@konsulko.com>2021-10-08 15:53:27 -0400
commitfa13940740e5ce1822611205bb8ac329c91306fd (patch)
tree4d38078c252e1b0958da08a118a3195e17633de1
parent3ac0f504125e2f97364ba8cc6bc95c1e350bd35a (diff)
downloadu-boot-fa13940740e5ce1822611205bb8ac329c91306fd.zip
u-boot-fa13940740e5ce1822611205bb8ac329c91306fd.tar.gz
u-boot-fa13940740e5ce1822611205bb8ac329c91306fd.tar.bz2
image: Drop IMAGE_ENABLE_IGNORE
We can use the new host_build() function for this, so drop it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
-rw-r--r--common/image-fit.c2
-rw-r--r--include/image.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 17c6d4e..f44f552 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1277,7 +1277,7 @@ static int fit_image_check_hash(const void *fit, int noffset, const void *data,
}
printf("%s", algo);
- if (IMAGE_ENABLE_IGNORE) {
+ if (!tools_build()) {
fit_image_hash_get_ignore(fit, noffset, &ignore);
if (ignore) {
printf("-skipped ");
diff --git a/include/image.h b/include/image.h
index e190f59..a236180 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
@@ -37,8 +36,6 @@ struct fdt_region;
#include <command.h>
#include <linker_lists.h>
-/* Take notice of the 'ignore' property for hashes */
-#define IMAGE_ENABLE_IGNORE 1
#define IMAGE_INDENT_STRING " "
#endif /* USE_HOSTCC */