]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
image: Drop IMAGE_ENABLE_IGNORE
authorSimon Glass <sjg@chromium.org>
Sun, 26 Sep 2021 01:43:28 +0000 (19:43 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:27 +0000 (15:53 -0400)
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>
common/image-fit.c
include/image.h

index 17c6d4e7813bfc6930f419f048162eee213c3e1f..f44f5527b9f617eb95af6a5d65760db0b4e2bde2 100644 (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 ");
index e190f59232d914754f5806e6bc8fbefb4f68eb5a..a236180ccdd9d4471a9ab950f52e6e863c9d03c3 100644 (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 */