aboutsummaryrefslogtreecommitdiff
path: root/common/image-fit.c
diff options
context:
space:
mode:
authorRavik Hasija <rahasij@linux.microsoft.com>2021-01-27 14:01:48 -0800
committerTom Rini <trini@konsulko.com>2021-02-01 16:32:06 -0500
commit7a01882eb37e7504e2450f474d0cc8db60ed26c2 (patch)
treec314a9013ea79e6fc4f33a474c17e5d7ae0e20fe /common/image-fit.c
parentec9d19be8d6cabc820e133bb36a1386adcf0b3d1 (diff)
downloadu-boot-7a01882eb37e7504e2450f474d0cc8db60ed26c2.zip
u-boot-7a01882eb37e7504e2450f474d0cc8db60ed26c2.tar.gz
u-boot-7a01882eb37e7504e2450f474d0cc8db60ed26c2.tar.bz2
common: Kconfig.boot: Add FIT_PRINT config option
Config allows to disable printing contents of fitImage to optimize boottime. Signed-off-by: Ravik Hasija <rahasij@linux.microsoft.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r--common/image-fit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 8660c3f..33210ef 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -162,7 +162,7 @@ int fit_get_subimage_count(const void *fit, int images_noffset)
return count;
}
-#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_FIT_PRINT)
+#if CONFIG_IS_ENABLED(FIT_PRINT) || CONFIG_IS_ENABLED(SPL_FIT_PRINT)
/**
* fit_image_print_data() - prints out the hash node details
* @fit: pointer to the FIT format image header
@@ -570,7 +570,7 @@ void fit_image_print(const void *fit, int image_noffset, const char *p)
#else
void fit_print_contents(const void *fit) { }
void fit_image_print(const void *fit, int image_noffset, const char *p) { }
-#endif /* !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_FIT_PRINT) */
+#endif /* CONFIG_IS_ENABLED(FIR_PRINT) || CONFIG_IS_ENABLED(SPL_FIT_PRINT) */
/**
* fit_get_desc - get node description property