fit: Add empty fit_print_contents() and fit_image_print()
authorMarek Vasut <marex@denx.de>
Sat, 12 May 2018 22:22:53 +0000 (00:22 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 24 May 2018 02:06:40 +0000 (22:06 -0400)
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>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/image-fit.c

index 9224456b612a31930cd048700bccc631ad3f13a4..e3577e2dd73d4344d1ddb142ca7e67cfb98496e7 100644 (file)
@@ -542,7 +542,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) */
 
 /**