summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorMadan Srinivas <madans@ti.com>2017-04-07 15:00:02 (GMT)
committerTom Rini <trini@konsulko.com>2017-04-09 01:35:04 (GMT)
commita5c7e41be357c508a807b991c2adacc68e79bdfc (patch)
treec727ea700820b2a0171bc522b74e7197da155668 /include/image.h
parentf7c8f032f49ef8183f4019bf2659930d1d07013f (diff)
downloadu-boot-fsl-qoriq-a5c7e41be357c508a807b991c2adacc68e79bdfc.tar.xz
image: Fixes build warning with CONFIG_FIT_IMAGE_POST_PROCESS
The function 'board_fit_image_post_process' is defined only when the config option CONFIG_FIT_IMAGE_POST_PROCESS is enabled. For secure systems that do not use SPL but do use FIT kernel images, only CONFIG_FIT_IMAGE_POST_PROCESS will be defined, which will result in an implicit declaration of function 'board_fit_image_post_process' warning while building u-boot. Fix this warning. Signed-off-by: Madan Srinivas <madans@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 2372518..3f26f9b 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1256,7 +1256,8 @@ void android_print_contents(const struct andr_img_hdr *hdr);
*/
int board_fit_config_name_match(const char *name);
-#ifdef CONFIG_SPL_FIT_IMAGE_POST_PROCESS
+#if defined(CONFIG_SPL_FIT_IMAGE_POST_PROCESS) || \
+ defined(CONFIG_FIT_IMAGE_POST_PROCESS)
/**
* board_fit_image_post_process() - Do any post-process on FIT binary data
*