aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Przywara2017-03-15 01:19:06 +0000
committerTom Rini2017-03-17 09:09:40 -0400
commitaeb9c53cae09ced27ae246153dcf567ee22fb108 (patch)
tree7f520fbd0ab7d388f7afb13dc185a73e510f17fb
parentbea79d7d3fde54932747b7592d399bbaf070385e (diff)
Kconfig: define MD5 dependency for FIT support
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>
-rw-r--r--Kconfig1
-rw-r--r--include/image.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/Kconfig b/Kconfig
index 81b4226463a..e0744d142c7 100644
--- 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
diff --git a/include/image.h b/include/image.h
index 1e686b76d3e..23725189602 100644
--- a/include/image.h
+++ b/include/image.h
@@ -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