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>
This commit is contained in:
Simon Glass 2021-09-25 19:43:28 -06:00 committed by Tom Rini
parent 3ac0f50412
commit fa13940740
2 changed files with 1 additions and 4 deletions

View File

@ -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 ");

View File

@ -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 */