diff options
author | Jerome Forissier <jerome@forissier.org> | 2021-11-09 18:01:16 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2021-11-24 15:51:42 +0100 |
commit | cf23e962814bf8c10ac43c7a49a51b98d2dbe649 (patch) | |
tree | 4e84cd673366141715627f6996e207a489e93901 | |
parent | b17cf5c874fff6434261c9c3e1a26c6b009395ef (diff) |
crypto: build aes-gcm*.c files only when both AES and GCM are enabled
crypto/aes-gcm*.c need building only when both CFG_CRYPTO_AES and
CFG_AES_GCM are enabled.
Signed-off-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
-rw-r--r-- | core/crypto/sub.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/crypto/sub.mk b/core/crypto/sub.mk index 873ef986..c9019431 100644 --- a/core/crypto/sub.mk +++ b/core/crypto/sub.mk @@ -1,5 +1,6 @@ srcs-y += crypto.c +ifeq (y-y,$(CFG_CRYPTO_AES)-$(CFG_CRYPTO_GCM)) srcs-y += aes-gcm.c ifneq ($(CFG_CRYPTO_WITH_CE),y) srcs-y += aes-gcm-sw.c @@ -7,6 +8,7 @@ ifeq ($(CFG_AES_GCM_TABLE_BASED),y) srcs-y += aes-gcm-ghash-tbl.c endif endif +endif srcs-$(CFG_WITH_USER_TA) += signed_hdr.c |