diff mbox series

[u-boot,v2019.04-aspeed-openbmc,3/5] cmd/otp: Depend on SHA variants

Message ID 20220718084728.1140108-4-joel@jms.id.au
State New
Headers show
Series OTP Fixes | expand

Commit Message

Joel Stanley July 18, 2022, 8:47 a.m. UTC
Indicate which SHA algorithms are required by depending on them. Don't
select them, as this force enables the options.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 cmd/Kconfig | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/cmd/Kconfig b/cmd/Kconfig
index ff90a5d99acc..8b90f0f23406 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -616,11 +616,9 @@  menu "Device access commands"
 
 config CMD_OTP
 	depends on ASPEED_AST2600
+	depends on SHA256 && SHA384 && SHA512
         bool "ASPEED otp program"
-	select SHA512_ALGO
-	select SHA512
-	select SHA384
-	select SHA256
+	select HASH
 	select RSA
         default y