1b0104773SPascal Brand# WARNS from undefined, 1, 2 and 3. 3 means we have the most warning messages 2b0104773SPascal BrandWARNS ?= 3 3b0104773SPascal Brand 4b0104773SPascal Brand# Define NOWERROR=1 so that warnings are not treated as errors 5b0104773SPascal Brand# NOWERROR=1 6b0104773SPascal Brand 7b0104773SPascal Brand# Define DEBUG=1 to compile with -g option 8b0104773SPascal Brand# DEBUG=1 9b0104773SPascal Brand 10b0104773SPascal Brand# CFG_TEE_FW_DEBUG 11b0104773SPascal Brand# If 1, debug mode of the tee firmware (CPU restart, Core Status) 12b0104773SPascal BrandCFG_TEE_FW_DEBUG?=0 13b0104773SPascal Brand 14b0104773SPascal Brand# CFG_TEE_CORE_LOG_LEVEL 15e0042c88SPascal Brand# Max level of the tee core traces. 0 means disable, 4 is max. 16e0042c88SPascal Brand# Supported values: 0 (no traces) to 4 (all traces) 17b0104773SPascal Brand# If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be 18b0104773SPascal Brand# dynamically changes via debugfs in the range 1 => CFG_TEE_CORE_LOG_LEVEL 19e0042c88SPascal BrandCFG_TEE_CORE_LOG_LEVEL?=1 20b0104773SPascal Brand 21b0104773SPascal Brand# CFG_TEE_TA_LOG_LEVEL 22b0104773SPascal Brand# TA and TEECore log level 23e0042c88SPascal Brand# Supported values: 0 (no traces) to 4 (all traces) 24b0104773SPascal Brand# If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be 25b0104773SPascal Brand# dynamically changes via debugfs in the range 1 => CFG_TEE_TA_LOG_LEVEL 26e0042c88SPascal BrandCFG_TEE_TA_LOG_LEVEL?=1 27b0104773SPascal Brand 287c876f12SPascal Brand# CFG_TEE_CORE_TA_TRACE 297c876f12SPascal Brand# TA enablement 307c876f12SPascal Brand# When defined to "y", TA traces are output according to 317c876f12SPascal Brand# CFG_TEE_TA_LOG_LEVEL. Otherwise, they are not output at all 327c876f12SPascal BrandCFG_TEE_CORE_TA_TRACE?=y 33b0104773SPascal Brand 34b0104773SPascal Brand# If 1, enable debug features of the user mem module. This module track memory 35b0104773SPascal Brand# allocation of the user ta. 36b0104773SPascal Brand# Debug features include check of buffer overflow, statistics, 37b0104773SPascal Brand# marck/check heap feature 38b0104773SPascal Brand# Enabling this could decrease efficiency 39b0104773SPascal BrandCFG_TEE_CORE_USER_MEM_DEBUG?=1 40*7018ae01SSY Chiu 41*7018ae01SSY Chiu 42*7018ae01SSY Chiu# PRNG Configuration: 43*7018ae01SSY Chiu# 44*7018ae01SSY Chiu# If CFG_WITH_SOFTWARE_PRNG is enabled, crypto provider provided 45*7018ae01SSY Chiu# software PRNG implementation is used. 46*7018ae01SSY Chiu# 47*7018ae01SSY Chiu# Otherwise, you need to implement hw_get_random_byte() for your platform 48*7018ae01SSY Chiu# 49*7018ae01SSY ChiuCFG_WITH_SOFTWARE_PRNG ?= y 50