crypto: reduce software algorithm size

not compile the software algorithm file when CONFIG_CRYPTO_CRYPTODEV_SOFTWARE not set
Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
makejian 2023-07-26 21:09:43 +08:00 committed by Xiang Xiao
parent 6676853589
commit 4e70d59c3b
1 changed files with 2 additions and 0 deletions

View File

@ -30,7 +30,9 @@ CRYPTO_CSRCS += crypto.c testmngr.c
ifeq ($(CONFIG_CRYPTO_CRYPTODEV),y) ifeq ($(CONFIG_CRYPTO_CRYPTODEV),y)
CRYPTO_CSRCS += cryptodev.c CRYPTO_CSRCS += cryptodev.c
ifeq ($(CONFIG_CRYPTO_CRYPTODEV_SOFTWARE),y)
CRYPTO_CSRCS += cryptosoft.c CRYPTO_CSRCS += cryptosoft.c
endif
CRYPTO_CSRCS += xform.c CRYPTO_CSRCS += xform.c
CRYPTO_CSRCS += aes.c CRYPTO_CSRCS += aes.c
CRYPTO_CSRCS += blf.c CRYPTO_CSRCS += blf.c