]> git.sur5r.net Git - u-boot/commitdiff
fit: Fix CONFIG_FIT_SPL_PRINT
authorMarek Vasut <marex@denx.de>
Sat, 12 May 2018 22:22:52 +0000 (00:22 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 24 May 2018 02:06:39 +0000 (22:06 -0400)
Rename CONFIG_FIT_SPL_PRINT to CONFIG_SPL_FIT_PRINT and add Kconfig
entry for it.

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>
Kconfig
README
common/image-fit.c

diff --git a/Kconfig b/Kconfig
index 9fd9de1772d2b50a6557ce774387f26deff66c93..7d9e971f0e1a25b4aeac76d049a1433aa37d2467 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -305,6 +305,12 @@ config SPL_FIT
        depends on SPL
        select SPL_OF_LIBFDT
 
+config SPL_FIT_PRINT
+       bool "Support FIT printing within SPL"
+       depends on SPL_FIT
+       help
+         Support printing the content of the fitImage in a verbose manner in SPL.
+
 config SPL_FIT_SIGNATURE
        bool "Enable signature verification of FIT firmware within SPL"
        depends on SPL_DM
diff --git a/README b/README
index 48ed3e06ecf056485221e1a7016360b4b5d1f4a7..df1d5d67b4ad72f9aab79b7195609423e3c6d64f 100644 (file)
--- a/README
+++ b/README
@@ -2691,7 +2691,7 @@ FIT uImage format:
                use an arch-specific makefile fragment instead, for
                example if more than one image needs to be produced.
 
-               CONFIG_FIT_SPL_PRINT
+               CONFIG_SPL_FIT_PRINT
                Printing information about a FIT image adds quite a bit of
                code to SPL. So this is normally disabled in SPL. Use this
                option to re-enable it. This will affect the output of the
index fec8f72bc64c9d9fd72121cc1cc29780e191a539..9224456b612a31930cd048700bccc631ad3f13a4 100644 (file)
@@ -142,7 +142,7 @@ int fit_get_subimage_count(const void *fit, int images_noffset)
        return count;
 }
 
-#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_FIT_SPL_PRINT)
+#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_FIT_PRINT)
 /**
  * fit_image_print_data() - prints out the hash node details
  * @fit: pointer to the FIT format image header
@@ -543,7 +543,7 @@ void fit_image_print(const void *fit, int image_noffset, const char *p)
        }
 }
 
-#endif /* !defined(CONFIG_SPL_BUILD) || defined(CONFIG_FIT_SPL_PRINT) */
+#endif /* !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_FIT_PRINT) */
 
 /**
  * fit_get_desc - get node description property