The AES uclass Makefile is already keyed by CONFIG_$(PHASE_)DM_AES,
but there is no SPL_DM_AES symbol to build it for SPL.

Add the SPL variant so SPL code can use UCLASS_AES providers, for example
when decrypting FIT images before loading U-Boot proper.

Signed-off-by: James Hilliard <[email protected]>
---
 drivers/crypto/aes/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/crypto/aes/Kconfig b/drivers/crypto/aes/Kconfig
index 7e1b1b2875d..19988b05271 100644
--- a/drivers/crypto/aes/Kconfig
+++ b/drivers/crypto/aes/Kconfig
@@ -4,6 +4,13 @@ config DM_AES
        help
          If you want to use driver model for AES crypto operations, say Y.
 
+config SPL_DM_AES
+       bool "Enable Driver Model for AES crypto operations in SPL"
+       depends on SPL_DM
+       help
+         If you want to use driver model for AES crypto operations in SPL,
+         say Y.
+
 config AES_SOFTWARE
        bool "Enable driver for AES in software"
        depends on DM_AES && AES
-- 
2.53.0

Reply via email to