Browse Source

lib: move hash CONFIG options to Kconfig

Commit 94e3c8c4fd ("crypto/fsl - Add progressive hashing support
using hardware acceleration.") created entries for CONFIG_SHA1,
CONFIG_SHA256, CONFIG_SHA_HW_ACCEL, and CONFIG_SHA_PROG_HW_ACCEL.
However, no defconfig has migrated to it.  Complete the move by first
adding additional logic to various Kconfig files to select this when
required and then use the moveconfig tool.  In many cases we can select
these because they are required to implement other drivers.  We also
correct how we include the various hashing algorithms in SPL.

This commit was generated as follows (after Kconfig additions):

[1] tools/moveconfig.py -y SHA1 SHA256 SHA_HW_ACCEL
[2] tools/moveconfig.py -y SHA_PROG_HW_ACCEL

Note:
We cannot move SHA_HW_ACCEL and SHA_PROG_HW_ACCEL simultaneously
because there is dependency between them.

Cc: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Cc: Naveen Burmi <NaveenBurmi@freescale.com>
Cc: Po Liu <po.liu@freescale.com>
Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Cc: Priyanka Jain <Priyanka.Jain@freescale.com>
Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
Cc: Chunhe Lan <Chunhe.Lan@freescale.com>
Cc: Chander Kashyap <k.chander@samsung.com>
Cc: Steve Rae <steve.rae@raedomain.com>
Cc: Dirk Eibach <eibach@gdsys.de>
Cc: Feng Li <feng.li_2@nxp.com>
Cc: Alison Wang <alison.wang@freescale.com>
Cc: Sumit Garg <sumit.garg@nxp.com>
Cc: Mingkai Hu <Mingkai.Hu@freescale.com>
Cc: York Sun <york.sun@nxp.com>
Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Akshay Saraswat <akshay.s@samsung.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
tags/2020-06-01
Tom Rini 4 years ago
parent
commit
089df18bfe
49 changed files with 31 additions and 66 deletions
  1. +2
    -0
      Kconfig
  2. +0
    -13
      README
  3. +0
    -2
      arch/arm/include/asm/fsl_secure_boot.h
  4. +1
    -0
      arch/arm/mach-exynos/Kconfig
  5. +0
    -1
      arch/powerpc/include/asm/fsl_secure_boot.h
  6. +2
    -0
      board/freescale/common/Kconfig
  7. +4
    -0
      common/spl/Kconfig
  8. +2
    -0
      configs/bcm911360_entphn-ns_defconfig
  9. +2
    -0
      configs/bcm911360_entphn_defconfig
  10. +2
    -0
      configs/bcm911360k_defconfig
  11. +2
    -0
      configs/bcm958300k-ns_defconfig
  12. +2
    -0
      configs/bcm958300k_defconfig
  13. +2
    -0
      configs/bcm958305k_defconfig
  14. +2
    -0
      configs/bcm958622hr_defconfig
  15. +1
    -0
      configs/controlcenterd_TRAILBLAZER_DEVELOP_defconfig
  16. +1
    -0
      configs/controlcenterd_TRAILBLAZER_defconfig
  17. +1
    -0
      drivers/crypto/fsl/Kconfig
  18. +0
    -1
      include/configs/B4860QDS.h
  19. +0
    -1
      include/configs/BSC9131RDB.h
  20. +0
    -1
      include/configs/BSC9132QDS.h
  21. +0
    -1
      include/configs/C29XPCIE.h
  22. +0
    -1
      include/configs/P1010RDB.h
  23. +0
    -1
      include/configs/P2041RDB.h
  24. +0
    -1
      include/configs/T102xQDS.h
  25. +0
    -1
      include/configs/T102xRDB.h
  26. +0
    -1
      include/configs/T1040QDS.h
  27. +0
    -1
      include/configs/T104xRDB.h
  28. +0
    -1
      include/configs/T208xQDS.h
  29. +0
    -1
      include/configs/T208xRDB.h
  30. +0
    -1
      include/configs/T4240QDS.h
  31. +0
    -1
      include/configs/T4240RDB.h
  32. +0
    -2
      include/configs/bcm_ep_board.h
  33. +0
    -2
      include/configs/controlcenterd.h
  34. +0
    -1
      include/configs/corenet_ds.h
  35. +0
    -3
      include/configs/exynos5-common.h
  36. +0
    -2
      include/configs/ids8313.h
  37. +0
    -2
      include/configs/imx6qdl_icore.h
  38. +0
    -2
      include/configs/imx6qdl_icore_rqs.h
  39. +0
    -2
      include/configs/imx6ul_geam.h
  40. +0
    -2
      include/configs/imx6ul_isiot.h
  41. +0
    -5
      include/configs/ls1021aiot.h
  42. +0
    -1
      include/configs/ls1021aqds.h
  43. +0
    -1
      include/configs/ls1021atwr.h
  44. +0
    -1
      include/configs/ls1043a_common.h
  45. +0
    -1
      include/configs/ls1046a_common.h
  46. +0
    -1
      include/configs/ls2080a_common.h
  47. +0
    -2
      include/configs/sandbox.h
  48. +2
    -3
      include/image.h
  49. +3
    -3
      lib/Makefile

+ 2
- 0
Kconfig View File

@@ -145,6 +145,7 @@ menu "Boot images"
config FIT
bool "Support Flattened Image Tree"
select MD5
select SHA1
help
This option allows you to boot the new uImage structure,
Flattened Image Tree. FIT is formally a FDT, which can include
@@ -159,6 +160,7 @@ if FIT

config FIT_ENABLE_SHA256_SUPPORT
bool "Support SHA256 checksum of FIT image contents"
select SHA256
default y
help
Enable this to support SHA256 checksum of FIT image contents. A


+ 0
- 13
README View File

@@ -2756,19 +2756,6 @@ The following options need to be configured:
Enable the hash verify command (hash -v). This adds to code
size a little.

CONFIG_SHA1 - This option enables support of hashing using SHA1
algorithm. The hash is calculated in software.
CONFIG_SHA256 - This option enables support of hashing using
SHA256 algorithm. The hash is calculated in software.
CONFIG_SHA_HW_ACCEL - This option enables hardware acceleration
for SHA1/SHA256 hashing.
This affects the 'hash' command and also the
hash_lookup_algo() function.
CONFIG_SHA_PROG_HW_ACCEL - This option enables
hardware-acceleration for SHA1/SHA256 progressive hashing.
Data can be streamed in a block at a time and the hashing
is performed in hardware.

Note: There is also a sha1sum command, which should perhaps
be deprecated in favour of 'hash sha1'.



+ 0
- 2
arch/arm/include/asm/fsl_secure_boot.h View File

@@ -10,8 +10,6 @@
#ifdef CONFIG_CHAIN_OF_TRUST
#define CONFIG_CMD_ESBC_VALIDATE
#define CONFIG_FSL_SEC_MON
#define CONFIG_SHA_HW_ACCEL
#define CONFIG_SHA_PROG_HW_ACCEL

#ifdef CONFIG_SPL_BUILD
/*


+ 1
- 0
arch/arm/mach-exynos/Kconfig View File

@@ -17,6 +17,7 @@ config ARCH_EXYNOS5
bool "Exynos5 SoC family"
select CPU_V7
select BOARD_EARLY_INIT_F
select SHA_HW_ACCEL
help
Samsung Exynos5 SoC family are based on ARM Cortex-A15 CPU (and
Cortex-A7 CPU in big.LITTLE configuration). There are multiple SoCs


+ 0
- 1
arch/powerpc/include/asm/fsl_secure_boot.h View File

@@ -101,7 +101,6 @@

#define CONFIG_CMD_ESBC_VALIDATE
#define CONFIG_FSL_SEC_MON
#define CONFIG_SHA_PROG_HW_ACCEL

#ifndef CONFIG_SPL_BUILD
/*


+ 2
- 0
board/freescale/common/Kconfig View File

@@ -3,5 +3,7 @@ config CHAIN_OF_TRUST
imply CMD_BLOB
select FSL_CAAM
select SPL_BOARD_INIT if (ARM && SPL)
select SHA_HW_ACCEL
select SHA_PROG_HW_ACCEL
bool
default y

+ 4
- 0
common/spl/Kconfig View File

@@ -187,6 +187,7 @@ config SPL_MD5_SUPPORT
config SPL_SHA1_SUPPORT
bool "Support SHA1"
depends on SPL_FIT
select SHA1
help
Enable this to support SHA1 in FIT images within SPL. A SHA1
checksum is a 160-bit (20-byte) hash value used to check that the
@@ -198,6 +199,7 @@ config SPL_SHA1_SUPPORT
config SPL_SHA256_SUPPORT
bool "Support SHA256"
depends on SPL_FIT
select SHA256
help
Enable this to support SHA256 in FIT images within SPL. A SHA256
checksum is a 256-bit (32-byte) hash value used to check that the
@@ -229,6 +231,8 @@ config SPL_CRYPTO_SUPPORT

config SPL_HASH_SUPPORT
bool "Support hashing drivers"
select SHA1
select SHA256
depends on SPL
help
Enable hashing drivers in SPL. These drivers can be used to


+ 2
- 0
configs/bcm911360_entphn-ns_defconfig View File

@@ -18,4 +18,6 @@ CONFIG_CMD_TIME=y
CONFIG_CMD_FAT=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_SHA1=y
CONFIG_SHA256=y
CONFIG_OF_LIBFDT=y

+ 2
- 0
configs/bcm911360_entphn_defconfig View File

@@ -18,4 +18,6 @@ CONFIG_CMD_TIME=y
CONFIG_CMD_FAT=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_SHA1=y
CONFIG_SHA256=y
CONFIG_OF_LIBFDT=y

+ 2
- 0
configs/bcm911360k_defconfig View File

@@ -18,4 +18,6 @@ CONFIG_CMD_TIME=y
CONFIG_CMD_FAT=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_SHA1=y
CONFIG_SHA256=y
CONFIG_OF_LIBFDT=y

+ 2
- 0
configs/bcm958300k-ns_defconfig View File

@@ -18,4 +18,6 @@ CONFIG_CMD_TIME=y
CONFIG_CMD_FAT=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_SHA1=y
CONFIG_SHA256=y
CONFIG_OF_LIBFDT=y

+ 2
- 0
configs/bcm958300k_defconfig View File

@@ -18,4 +18,6 @@ CONFIG_CMD_TIME=y
CONFIG_CMD_FAT=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_SHA1=y
CONFIG_SHA256=y
CONFIG_OF_LIBFDT=y

+ 2
- 0
configs/bcm958305k_defconfig View File

@@ -18,4 +18,6 @@ CONFIG_CMD_TIME=y
CONFIG_CMD_FAT=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_SHA1=y
CONFIG_SHA256=y
CONFIG_OF_LIBFDT=y

+ 2
- 0
configs/bcm958622hr_defconfig View File

@@ -16,4 +16,6 @@ CONFIG_CMD_TIME=y
CONFIG_CMD_FAT=y
# CONFIG_MMC is not set
CONFIG_SYS_NS16550=y
CONFIG_SHA1=y
CONFIG_SHA256=y
CONFIG_OF_LIBFDT=y

+ 1
- 0
configs/controlcenterd_TRAILBLAZER_DEVELOP_defconfig View File

@@ -19,3 +19,4 @@ CONFIG_DM=y
CONFIG_SYS_NS16550=y
CONFIG_TPM_AUTH_SESSIONS=y
CONFIG_TPM=y
CONFIG_SHA1=y

+ 1
- 0
configs/controlcenterd_TRAILBLAZER_defconfig View File

@@ -19,3 +19,4 @@ CONFIG_DM=y
CONFIG_SYS_NS16550=y
CONFIG_TPM_AUTH_SESSIONS=y
CONFIG_TPM=y
CONFIG_SHA1=y

+ 1
- 0
drivers/crypto/fsl/Kconfig View File

@@ -1,5 +1,6 @@
config FSL_CAAM
bool "Freescale Crypto Driver Support"
select SHA_HW_ACCEL
help
Enables the Freescale's Cryptographic Accelerator and Assurance
Module (CAAM), also known as the SEC version 4 (SEC4). The driver uses


+ 0
- 1
include/configs/B4860QDS.h View File

@@ -714,7 +714,6 @@ unsigned long get_board_ddr_clk(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 1
include/configs/BSC9131RDB.h View File

@@ -331,7 +331,6 @@ extern unsigned long get_sdram_size(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

#ifdef CONFIG_USB_EHCI_HCD


+ 0
- 1
include/configs/BSC9132QDS.h View File

@@ -528,7 +528,6 @@ combinations. this should be removed later
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 1
include/configs/C29XPCIE.h View File

@@ -444,7 +444,6 @@
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 1
include/configs/P1010RDB.h View File

@@ -738,7 +738,6 @@ extern unsigned long get_sdram_size(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 1
include/configs/P2041RDB.h View File

@@ -607,7 +607,6 @@ unsigned long get_board_sys_clk(unsigned long dummy);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 1
include/configs/T102xQDS.h View File

@@ -868,7 +868,6 @@ unsigned long get_board_ddr_clk(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

#include <asm/fsl_secure_boot.h>


+ 0
- 1
include/configs/T102xRDB.h View File

@@ -887,7 +887,6 @@ unsigned long get_board_ddr_clk(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

#include <asm/fsl_secure_boot.h>


+ 0
- 1
include/configs/T1040QDS.h View File

@@ -671,7 +671,6 @@ unsigned long get_board_ddr_clk(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 1
include/configs/T104xRDB.h View File

@@ -783,7 +783,6 @@ $(SRCTREE)/board/freescale/t104xrdb/t1042d4_sd_rcw.cfg
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 1
include/configs/T208xQDS.h View File

@@ -755,7 +755,6 @@ unsigned long get_board_ddr_clk(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 1
include/configs/T208xRDB.h View File

@@ -700,7 +700,6 @@ unsigned long get_board_ddr_clk(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 1
include/configs/T4240QDS.h View File

@@ -501,7 +501,6 @@ unsigned long get_board_ddr_clk(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 1
include/configs/T4240RDB.h View File

@@ -699,7 +699,6 @@ unsigned long get_board_ddr_clk(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif




+ 0
- 2
include/configs/bcm_ep_board.h View File

@@ -69,8 +69,6 @@
/* SHA hashing */
#define CONFIG_CMD_HASH
#define CONFIG_HASH_VERIFY
#define CONFIG_SHA1
#define CONFIG_SHA256

/* Enable Time Command */



+ 0
- 2
include/configs/controlcenterd.h View File

@@ -199,8 +199,6 @@
#define CONFIG_SF_DEFAULT_MODE 0
#endif

#define CONFIG_SHA1

/*
* MMC
*/


+ 0
- 1
include/configs/corenet_ds.h View File

@@ -621,7 +621,6 @@
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

/*


+ 0
- 3
include/configs/exynos5-common.h View File

@@ -26,7 +26,6 @@

/* Enable ACE acceleration for SHA1 and SHA256 */
#define CONFIG_EXYNOS_ACE_SHA
#define CONFIG_SHA_HW_ACCEL

/* Power Down Modes */
#define S5P_CHECK_SLEEP 0x00000BAD
@@ -139,8 +138,6 @@
/* SHA hashing */
#define CONFIG_CMD_HASH
#define CONFIG_HASH_VERIFY
#define CONFIG_SHA1
#define CONFIG_SHA256

/* Enable Time Command */



+ 0
- 2
include/configs/ids8313.h View File

@@ -542,7 +542,5 @@

#define CONFIG_IMAGE_FORMAT_LEGACY
#define CONFIG_CMD_HASH
#define CONFIG_SHA1
#define CONFIG_SHA256

#endif /* __CONFIG_H */

+ 0
- 2
include/configs/imx6qdl_icore.h View File

@@ -126,8 +126,6 @@
/* FIT */
#ifdef CONFIG_FIT
# define CONFIG_HASH_VERIFY
# define CONFIG_SHA1
# define CONFIG_SHA256
# define CONFIG_IMAGE_FORMAT_LEGACY
#endif



+ 0
- 2
include/configs/imx6qdl_icore_rqs.h View File

@@ -108,8 +108,6 @@
/* FIT */
#ifdef CONFIG_FIT
# define CONFIG_HASH_VERIFY
# define CONFIG_SHA1
# define CONFIG_SHA256
# define CONFIG_IMAGE_FORMAT_LEGACY
#endif



+ 0
- 2
include/configs/imx6ul_geam.h View File

@@ -125,8 +125,6 @@
/* FIT */
#ifdef CONFIG_FIT
# define CONFIG_HASH_VERIFY
# define CONFIG_SHA1
# define CONFIG_SHA256
# define CONFIG_IMAGE_FORMAT_LEGACY
#endif



+ 0
- 2
include/configs/imx6ul_isiot.h View File

@@ -125,8 +125,6 @@
/* FIT */
#ifdef CONFIG_FIT
# define CONFIG_HASH_VERIFY
# define CONFIG_SHA1
# define CONFIG_SHA256
# define CONFIG_IMAGE_FORMAT_LEGACY
#endif



+ 0
- 5
include/configs/ls1021aiot.h View File

@@ -306,13 +306,8 @@
#define CONFIG_MISC_INIT_R

/* Hash command with SHA acceleration supported in hardware */

#ifdef CONFIG_FSL_CAAM

#define CONFIG_CMD_HASH

#define CONFIG_SHA_HW_ACCEL

#endif

#include <asm/fsl_secure_boot.h>


+ 0
- 1
include/configs/ls1021aqds.h View File

@@ -573,7 +573,6 @@ unsigned long get_board_ddr_clk(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

#include <asm/fsl_secure_boot.h>


+ 0
- 1
include/configs/ls1021atwr.h View File

@@ -437,7 +437,6 @@
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

#include <asm/fsl_secure_boot.h>


+ 0
- 1
include/configs/ls1043a_common.h View File

@@ -304,7 +304,6 @@
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

#endif /* __LS1043A_COMMON_H */

+ 0
- 1
include/configs/ls1046a_common.h View File

@@ -233,7 +233,6 @@
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

#endif /* __LS1046A_COMMON_H */

+ 0
- 1
include/configs/ls2080a_common.h View File

@@ -233,7 +233,6 @@ unsigned long long get_qixis_addr(void);
/* Hash command with SHA acceleration supported in hardware */
#ifdef CONFIG_FSL_CAAM
#define CONFIG_CMD_HASH
#define CONFIG_SHA_HW_ACCEL
#endif

#endif /* __LS2_COMMON_H */

+ 0
- 2
include/configs/sandbox.h View File

@@ -104,8 +104,6 @@

#define CONFIG_CMD_HASH
#define CONFIG_HASH_VERIFY
#define CONFIG_SHA1
#define CONFIG_SHA256

#define CONFIG_CMD_SANDBOX



+ 2
- 3
include/image.h View File

@@ -30,6 +30,8 @@ struct lmb;
#define IMAGE_ENABLE_OF_LIBFDT 1
#define CONFIG_FIT_VERBOSE 1 /* enable fit_format_{error,warning}() */
#define CONFIG_FIT_ENABLE_SHA256_SUPPORT
#define CONFIG_SHA1
#define CONFIG_SHA256

#define IMAGE_ENABLE_IGNORE 0
#define IMAGE_INDENT_STRING ""
@@ -65,8 +67,6 @@ struct lmb;
# endif
# else
# define CONFIG_CRC32 /* FIT images need CRC32 support */
# 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
@@ -86,7 +86,6 @@ struct lmb;

#if defined(CONFIG_FIT_ENABLE_SHA256_SUPPORT) || \
defined(CONFIG_SPL_SHA256_SUPPORT)
#define CONFIG_SHA256
#define IMAGE_ENABLE_SHA256 1
#else
#define IMAGE_ENABLE_SHA256 0


+ 3
- 3
lib/Makefile View File

@@ -44,9 +44,9 @@ obj-$(CONFIG_BITREVERSE) += bitrev.o
obj-y += list_sort.o
endif

obj-$(CONFIG_$(SPL_)RSA) += rsa/
obj-$(CONFIG_$(SPL_)SHA1) += sha1.o
obj-$(CONFIG_$(SPL_)SHA256) += sha256.o
obj-$(CONFIG_RSA) += rsa/
obj-$(CONFIG_SHA1) += sha1.o
obj-$(CONFIG_SHA256) += sha256.o

obj-$(CONFIG_SPL_SAVEENV) += qsort.o
obj-$(CONFIG_$(SPL_)OF_LIBFDT) += libfdt/