Kconfig: Add dependency on HASH to verified boot
authorKelvin Cheung <keguang.zhang@gmail.com>
Wed, 2 May 2018 10:07:18 +0000 (18:07 +0800)
committerTom Rini <trini@konsulko.com>
Sun, 6 May 2018 17:35:40 +0000 (13:35 -0400)
Building with verified boot support requires hash, add that
dependency here. Otherwise the following build error will come out
without crc command.

      LD      u-boot
lib/built-in.o: In function `hash_calculate':
lib/rsa/rsa-checksum.c:29: undefined reference to
`hash_progressive_lookup_algo'
...
make[1]: *** [u-boot] Error 1

Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Kconfig

diff --git a/Kconfig b/Kconfig
index 37331d289a1281d5b3a980b174c8ae902c5f9d69..9fd9de1772d2b50a6557ce774387f26deff66c93 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -253,6 +253,7 @@ config FIT_SIGNATURE
        bool "Enable signature verification of FIT uImages"
        depends on DM
        select RSA
+       select HASH
        help
          This option enables signature verification of FIT uImages,
          using a hash signed and verified using RSA. If