1ifeq ($(CFG_NXP_SE05X),y) 2# Enable the crypto driver 3$(call force,CFG_CRYPTO_DRIVER,y) 4CFG_CRYPTO_DRIVER_DEBUG ?= 0 5 6# SE050 initialization 7# Enables the SCP03 key rotation 8CFG_CORE_SE05X_SCP03_PROVISION ?= n 9# Displays the SE050 device information on the console at boot (i.e. OEFID) 10CFG_CORE_SE05X_DISPLAY_INFO ?= y 11# Enables the SCP03 before the REE: notice that if SCP03_PROVISION is enabled, 12# it will also attempt to rotate the keys 13CFG_CORE_SE05X_SCP03_EARLY ?= y 14# Deletes all persistent storage from the SE050 at boot 15CFG_CORE_SE05X_INIT_NVM ?= n 16 17# I2C bus baudrate (depends on SoC) 18CFG_CORE_SE05X_BAUDRATE ?= 3400000 19# I2C bus [0..2] (depends on board) 20CFG_CORE_SE05X_I2C_BUS ?= 2 21 22# Extra stacks required to support the Plug and Trust external library 23ifeq ($(shell test $(CFG_STACK_THREAD_EXTRA) -lt 8192; echo $$?), 0) 24$(error Error: SE050 requires CFG_STACK_THREAD_EXTRA at least 8192) 25endif 26ifeq ($(shell test $(CFG_STACK_TMP_EXTRA) -lt 8192; echo $$?), 0) 27$(error Error: SE050 requires CFG_STACK_TMP_EXTRA at least 8192) 28endif 29 30# SE05X Die Identifier 31CFG_NXP_SE05X_DIEID_DRV ?= y 32 33# Allow a secure client to enable the SCP03 session 34CFG_NXP_SE05X_SCP03_DRV ?= y 35ifeq ($(CFG_NXP_SE05X_SCP03_DRV),y) 36$(call force,CFG_SCP03_PTA,y,Mandated by CFG_NXP_SE05X_SCP03) 37endif 38 39# Allow a secure client to send APDU raw frames 40CFG_NXP_SE05X_APDU_DRV ?= y 41ifeq ($(CFG_NXP_SE05X_APDU_DRV),y) 42$(call force,CFG_APDU_PTA,y,Mandated by CFG_NXP_SE05X_APDU) 43endif 44 45# Random Number Generator 46CFG_NXP_SE05X_RNG_DRV ?= y 47ifeq ($(CFG_NXP_SE05X_RNG_DRV),y) 48$(call force,CFG_WITH_SOFTWARE_PRNG,n) 49endif 50 51se050-one-enabled = $(call cfg-one-enabled, \ 52 $(foreach v,$(1), CFG_NXP_SE05X_$(v)_DRV)) 53# Asymmetric ciphers 54CFG_NXP_SE05X_RSA_DRV ?= y 55CFG_NXP_SE05X_ECC_DRV ?= y 56$(call force,CFG_NXP_SE05X_ACIPHER_DRV,$(call se050-one-enabled,RSA ECC)) 57 58# Asymmetric driver 59ifeq ($(CFG_NXP_SE05X_ACIPHER_DRV),y) 60$(call force,CFG_CRYPTO_DRV_ACIPHER,y,Mandated by CFG_NXP_SE05X_ACIPHER_DRV) 61endif 62 63# Asymmetric ciphers configuration 64# - RSA 65ifeq ($(CFG_NXP_SE05X_RSA_DRV),y) 66$(call force,CFG_CRYPTO_DRV_RSA,y) 67CFG_CRYPTO_RSASSA_NA1 ?= y 68_CFG_CORE_LTC_RSA = n 69endif 70# - ECC 71ifeq ($(CFG_NXP_SE05X_ECC_DRV),y) 72$(call force,CFG_CRYPTO_DRV_ECC,y) 73endif 74 75# Symmetric ciphers 76CFG_NXP_SE05X_CTR_DRV ?= y 77$(call force,CFG_NXP_SE05X_CIPHER_DRV,$(call se050-one-enabled,CTR)) 78 79# Symmetric driver 80ifeq ($(CFG_NXP_SE05X_CIPHER_DRV),y) 81$(call force,CFG_CRYPTO_DRV_CIPHER,y,Mandated by CFG_NXP_SE05X_CIPHER_DRV) 82endif 83 84endif # CFG_NXP_SE05X 85