diff mbox series

[U-Boot,2/9] fit: Add empty fit_print_contents() and fit_image_print()

Message ID 20171228120621.4039-3-marex@denx.de
State Deferred
Delegated to: Tom Rini
Headers show
Series spl: Add full fit and u-boot dto support | expand

Commit Message

Marek Vasut Dec. 28, 2017, 12:06 p.m. UTC
These functions may be needed in SPL, so add empty variants of them
if CONFIG_SPL_FIT_PRINT is disabled.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
---
 common/image-fit.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Simon Glass Jan. 8, 2018, 3:53 a.m. UTC | #1
On 28 December 2017 at 05:06, Marek Vasut <marex@denx.de> wrote:
> These functions may be needed in SPL, so add empty variants of them
> if CONFIG_SPL_FIT_PRINT is disabled.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
> Cc: Simon Glass <sjg@chromium.org>
> ---
>  common/image-fit.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/common/image-fit.c b/common/image-fit.c
index 98334a0caa..f0e713d88f 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -459,7 +459,9 @@  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) */
 
 /**