xref: /optee_os/core/drivers/crypto/stm32/crypto.mk (revision 77c4fee62acd2d90ccdfacc27abc95910833fc47)
1# CFG_STM32_CRYPTO_DRIVER, when enabled, embeds
2#       STM32 HW cryptographic support and OP-TEE Crypto Driver.
3# CFG_STM32_CRYP, when enabled, embeds
4#       STM32 CRYP module support,
5#       CIPHER Crypto Driver,
6#       AUTHENC Crypto Driver.
7
8ifeq ($(CFG_STM32_CRYPTO_DRIVER),y)
9
10$(call force,CFG_CRYPTO_DRIVER,y)
11CFG_CRYPTO_DRIVER_DEBUG ?= 0
12
13ifeq ($(call cfg-one-enabled, CFG_STM32_CRYP CFG_STM32_SAES),y)
14$(call force,CFG_CRYPTO_DRV_CIPHER,y,Mandated by CFG_STM32_CRYP)
15endif
16
17ifeq ($(CFG_STM32_CRYP),y)
18$(call force,CFG_CRYPTO_DRV_AUTHENC,y,Mandated by CFG_STM32_CRYP)
19endif
20
21ifeq ($(CFG_STM32_PKA),y)
22$(call force,CFG_CRYPTO_DRV_ECC,y,Mandated by CFG_STM32_PKA)
23$(call force,CFG_CRYPTO_DRV_ACIPHER,y,Mandated by CFG_STM32_PKA)
24endif
25
26endif # CFG_STM32_CRYPTO_DRIVER
27