]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Kconfig: define MD5 dependency for FIT support
authorAndre Przywara <andre.przywara@arm.com>
Wed, 15 Mar 2017 01:19:06 +0000 (01:19 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 17 Mar 2017 13:09:40 +0000 (09:09 -0400)
FIT images require MD5 support to verify image checksums. So far this
was expressed by defining a CPP symbol in image.h. Since MD5 is now a
first class Kconfig citizen, express that in Kconfig instead.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Kconfig
include/image.h

diff --git a/Kconfig b/Kconfig
index 81b4226463ae0635c87b87ad0e946fd307e250e3..e0744d142c77e1d0eabd2aa197514513906212fd 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -144,6 +144,7 @@ menu "Boot images"
 
 config FIT
        bool "Support Flattened Image Tree"
+       select MD5
        help
          This option allows you to boot the new uImage structure,
          Flattened Image Tree.  FIT is formally a FDT, which can include
index 1e686b76d3eb0090b502253687b1d445e1f80970..23725189602966de4f67407139302d13b9d29b92 100644 (file)
@@ -67,7 +67,6 @@ struct lmb;
 #  endif
 # else
 #  define CONFIG_CRC32         /* FIT images need CRC32 support */
-#  define CONFIG_MD5           /* and MD5 */
 #  define CONFIG_SHA1          /* and SHA1 */
 #  define CONFIG_SHA256                /* and SHA256 */
 #  define IMAGE_ENABLE_CRC32   1