mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
097dd3e0a9
commit
2842c1c242
5 changed files with 20 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue