On Sun, Jul 19, 2026 at 10:13:47PM -0600, James Hilliard wrote:

> 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. Select
> SPL_CRYPTO from SPL_DM_AES as well, since drivers/Makefile only descends
> into drivers/crypto/ for SPL when SPL_CRYPTO is enabled.
> 
> Reviewed-by: Simon Glass <[email protected]>
> Signed-off-by: James Hilliard <[email protected]>
> ---
> Changes v1 -> v2:
>   - Select SPL_CRYPTO from SPL_DM_AES  (suggested by Simon Glass)
> ---
>  drivers/crypto/aes/Kconfig | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/crypto/aes/Kconfig b/drivers/crypto/aes/Kconfig
> index 7e1b1b2875d..254cb598568 100644
> --- a/drivers/crypto/aes/Kconfig
> +++ b/drivers/crypto/aes/Kconfig
> @@ -4,6 +4,14 @@ 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
> +     select SPL_CRYPTO
> +     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

Since this gets used later on, this is fine.

Reviewed-by: Tom Rini <[email protected]>

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to