]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
image: Fixes build warning with CONFIG_FIT_IMAGE_POST_PROCESS
authorMadan Srinivas <madans@ti.com>
Fri, 7 Apr 2017 15:00:02 +0000 (10:00 -0500)
committerTom Rini <trini@konsulko.com>
Sun, 9 Apr 2017 01:35:04 +0000 (21:35 -0400)
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>
include/image.h

index 23725189602966de4f67407139302d13b9d29b92..3f26f9bd1f625c365e6d8f7908a97bf0d1c84cc0 100644 (file)
@@ -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
  *