Re: [PATCH v4] crypto: cryptomgr - Select algorithm types only when CRYPTO_SELFTESTS
From: Herbert Xu
Date: Thu Apr 02 2026 - 21:09:09 EST
On Fri, Mar 27, 2026 at 04:08:18PM -0700, Eric Biggers wrote:
> Enabling any template selects CRYPTO_MANAGER, which causes
> CRYPTO_MANAGER2 to enable itself, which selects every algorithm type
> option. However, pulling in all algorithm types is needed only when the
> self-tests are enabled. So condition the selections accordingly.
>
> To make this possible, also add the missing selections to various
> symbols that were relying on transitive selections via CRYPTO_MANAGER.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
>
> This patch is targeting cryptodev/master
>
> v4: addressed yet another transitive selection
> v3: addressed more transitive selections
> v2: add selections to options that were relying on transitive selection
>
> crypto/Kconfig | 27 +++++++++++++++++++--------
> drivers/crypto/Kconfig | 1 +
> drivers/crypto/allwinner/Kconfig | 2 ++
> drivers/crypto/intel/qat/Kconfig | 1 +
> 4 files changed, 23 insertions(+), 8 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt