xref: /optee_os/core/drivers/crypto/stm32/crypto.mk (revision 4edd96e6d7a7228e907cf498b23e5b5fbdaf39a0)
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
21endif # CFG_STM32_CRYPTO_DRIVER
22