diff options
author | Heiko Schocher <hs@denx.de> | 2014-03-03 12:19:25 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-03-21 16:39:33 -0400 |
commit | 2842c1c24269a05142802d25520e7cb9035e456c (patch) | |
tree | c64d4f99376dad8975f0033f7ef8dfc9d4865605 /include | |
parent | 097dd3e0a9c4b07909dfa2d97d202f74856cfa81 (diff) | |
download | u-boot-imx-2842c1c24269a05142802d25520e7cb9035e456c.zip u-boot-imx-2842c1c24269a05142802d25520e7cb9035e456c.tar.gz u-boot-imx-2842c1c24269a05142802d25520e7cb9035e456c.tar.bz2 |
fit: add sha256 support
add sha256 support to fit images
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/image.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index 6afd57b..52969aa 100644 --- a/include/image.h +++ b/include/image.h @@ -57,13 +57,18 @@ struct lmb; # ifdef CONFIG_SPL_SHA1_SUPPORT # define IMAGE_ENABLE_SHA1 1 # endif +# ifdef CONFIG_SPL_SHA256_SUPPORT +# define IMAGE_ENABLE_SHA256 1 +# 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 # define IMAGE_ENABLE_MD5 1 # define IMAGE_ENABLE_SHA1 1 +# define IMAGE_ENABLE_SHA256 1 # endif #ifndef IMAGE_ENABLE_CRC32 @@ -78,6 +83,10 @@ struct lmb; #define IMAGE_ENABLE_SHA1 0 #endif +#ifndef IMAGE_ENABLE_SHA256 +#define IMAGE_ENABLE_SHA256 0 +#endif + #endif /* CONFIG_FIT */ #ifdef CONFIG_SYS_BOOT_RAMDISK_HIGH |