fit: make sha256 support optional
authorDirk Eibach <dirk.eibach@gdsys.cc>
Thu, 3 Jul 2014 07:28:26 +0000 (09:28 +0200)
committerTom Rini <trini@ti.com>
Mon, 7 Jul 2014 23:47:19 +0000 (19:47 -0400)
sha256 has some beefy memory footprint.
Make it optional for constrained systems.

Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
README
include/configs/dlvision-10g.h
include/configs/io.h
include/configs/iocon.h
include/configs/neo.h
include/image.h

diff --git a/README b/README
index 082bd2ab1cec242fe5a6d93c788de48129b8159d..4ac73996983add08d11a15875fa203a5f8fd3393 100644 (file)
--- a/README
+++ b/README
@@ -3269,6 +3269,11 @@ FIT uImage format:
                disabled. If a board need legacy image format support
                enable this through CONFIG_IMAGE_FORMAT_LEGACY
 
+               CONFIG_FIT_DISABLE_SHA256
+               Supporting SHA256 hashes has quite an impact on binary size.
+               For constrained systems sha256 hash support can be disabled
+               with this option.
+
 - Standalone program support:
                CONFIG_STANDALONE_LOAD_ADDR
 
index 2567a2221dd75813c3c037ae4cc66304dfb2085c..6153a40e06198cc7fcac99fd2c906d6f1c08dbd0 100644 (file)
@@ -40,6 +40,7 @@
 /* new uImage format support */
 #define CONFIG_FIT
 #define CONFIG_FIT_VERBOSE     /* enable fit_format_{error,warning}() */
+#define CONFIG_FIT_DISABLE_SHA256
 
 #define CONFIG_ENV_IS_IN_FLASH /* use FLASH for environment vars */
 
index 649c0fba13d8a989682d578c375ddb8e61f5bea4..8e32c25803e4d3cf2e5f3d24914619dda9ba6132 100644 (file)
@@ -40,6 +40,7 @@
 /* new uImage format support */
 #define CONFIG_FIT
 #define CONFIG_FIT_VERBOSE     /* enable fit_format_{error,warning}() */
+#define CONFIG_FIT_DISABLE_SHA256
 
 #define CONFIG_ENV_IS_IN_FLASH /* use FLASH for environment vars */
 
index 35ba1bd248d7e01b89afaaefcc89e469b654a4c2..ae05bcbfbf433c1893260840c35ceac879f8f33d 100644 (file)
@@ -39,6 +39,7 @@
 /* new uImage format support */
 #define CONFIG_FIT
 #define CONFIG_FIT_VERBOSE     /* enable fit_format_{error,warning}() */
+#define CONFIG_FIT_DISABLE_SHA256
 
 #define CONFIG_ENV_IS_IN_FLASH /* use FLASH for environment vars */
 
index 75dc8621600474fe17720b55b838777847f3abda..4937730ee30e59c36b753a7c32f9de5dcdb03c4b 100644 (file)
@@ -37,6 +37,7 @@
 /* new uImage format support */
 #define CONFIG_FIT
 #define CONFIG_FIT_VERBOSE     /* enable fit_format_{error,warning}() */
+#define CONFIG_FIT_DISABLE_SHA256
 
 #define CONFIG_ENV_IS_IN_FLASH /* use FLASH for environment vars */
 
index 0a072f5336c7f24fe1e81a9838c7565b3606820b..3e8f78d583de7da387567579d3b0920d536a9c0f 100644 (file)
@@ -72,6 +72,11 @@ struct lmb;
 #  define IMAGE_ENABLE_SHA256  1
 # endif
 
+#ifdef CONFIG_FIT_DISABLE_SHA256
+#undef CONFIG_SHA256
+#undef IMAGE_ENABLE_SHA256
+#endif
+
 #ifndef IMAGE_ENABLE_CRC32
 #define IMAGE_ENABLE_CRC32     0
 #endif