This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 4e70d59c3b53db80fbec5bbc2df6ea8ff4c80aa6
Author: makejian <[email protected]>
AuthorDate: Wed Jul 26 21:09:43 2023 +0800

    crypto: reduce software algorithm size
    
    not compile the software algorithm file when 
CONFIG_CRYPTO_CRYPTODEV_SOFTWARE not set
    Signed-off-by: makejian <[email protected]>
---
 crypto/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/crypto/Makefile b/crypto/Makefile
index aae8be748f..c963f60c8d 100644
--- a/crypto/Makefile
+++ b/crypto/Makefile
@@ -30,7 +30,9 @@ CRYPTO_CSRCS += crypto.c testmngr.c
 
 ifeq ($(CONFIG_CRYPTO_CRYPTODEV),y)
   CRYPTO_CSRCS += cryptodev.c
+ifeq ($(CONFIG_CRYPTO_CRYPTODEV_SOFTWARE),y)
   CRYPTO_CSRCS += cryptosoft.c
+endif
   CRYPTO_CSRCS += xform.c
   CRYPTO_CSRCS += aes.c
   CRYPTO_CSRCS += blf.c

Reply via email to