[U-Boot] [PATCH] RSA depends on DM

Simon Glass sjg at chromium.org
Wed Feb 4 01:38:49 CET 2015


+Masahiro

Hi Chris,

On 3 February 2015 at 00:42, Chris Kuethe <chris.kuethe at gmail.com> wrote:
> Discovered while experimenting with signature checking on vexpress
> which doesn't typically use DM. Rather than complaining about unmet
> dependencies it might be better to enable those them.
>
> ---
>  lib/rsa/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig
> index 1268a1b..4db5da4 100644
> --- a/lib/rsa/Kconfig
> +++ b/lib/rsa/Kconfig
> @@ -2,6 +2,7 @@ config RSA
>   bool "Use RSA Library"
>   select RSA_FREESCALE_EXP if FSL_CAAM
>   select RSA_SOFTWARE_EXP if !RSA_FREESCALE_EXP
> + select DM
>   help
>    RSA support. This enables the RSA algorithm used for FIT image
>    verification in U-Boot.

I wonder whether 'depends on DM' might be better? It seems odd to have
the tail wagging the dog.

Regards,
Simon


More information about the U-Boot mailing list