1*120c43adSJerome Forissier# Default configuration values for OP-TEE core (all platforms). 2*120c43adSJerome Forissier# 3*120c43adSJerome Forissier# Platform-specific overrides are in core/arch/arm32/plat-*/conf.mk. 4*120c43adSJerome Forissier# Some subsystem-specific defaults are not here but rather in */sub.mk. 5*120c43adSJerome Forissier# 6*120c43adSJerome Forissier# Configuration values may be assigned from multiple sources. 7*120c43adSJerome Forissier# From higher to lower priority: 8*120c43adSJerome Forissier# 9*120c43adSJerome Forissier# 1. Make arguments ('make CFG_FOO=bar...') 10*120c43adSJerome Forissier# 2. The file specified by $(CFG_OPTEE_CONFIG) (if defined) 11*120c43adSJerome Forissier# 3. The environment ('CFG_FOO=bar make...') 12*120c43adSJerome Forissier# 4. The platform-specific configuration file: core/arch/arm32/plat-*/conf.mk 13*120c43adSJerome Forissier# 5. This file 14*120c43adSJerome Forissier# 6. Subsystem-specific makefiles (*/sub.mk) 15*120c43adSJerome Forissier# 16*120c43adSJerome Forissier# Actual values used during the build are output to $(out-dir)/core/conf.mk 17*120c43adSJerome Forissier# (CFG_* variables only). 18*120c43adSJerome Forissier 19*120c43adSJerome Forissier# Compiler warning level. 20*120c43adSJerome Forissier# Supported values: undefined, 1, 2 and 3. 3 gives more warnings. 21b0104773SPascal BrandWARNS ?= 3 22b0104773SPascal Brand 23b0104773SPascal Brand# Define NOWERROR=1 so that warnings are not treated as errors 24b0104773SPascal Brand# NOWERROR=1 25b0104773SPascal Brand 26b0104773SPascal Brand# Define DEBUG=1 to compile with -g option 27b0104773SPascal Brand# DEBUG=1 28b0104773SPascal Brand 29b0104773SPascal Brand# If 1, debug mode of the tee firmware (CPU restart, Core Status) 30b0104773SPascal BrandCFG_TEE_FW_DEBUG ?= 0 31b0104773SPascal Brand 32e0042c88SPascal Brand# Max level of the tee core traces. 0 means disable, 4 is max. 33e0042c88SPascal Brand# Supported values: 0 (no traces) to 4 (all traces) 34b0104773SPascal Brand# If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be 35b0104773SPascal Brand# dynamically changes via debugfs in the range 1 => CFG_TEE_CORE_LOG_LEVEL 36e0042c88SPascal BrandCFG_TEE_CORE_LOG_LEVEL ?= 1 37b0104773SPascal Brand 38b0104773SPascal Brand# TA and TEECore log level 39e0042c88SPascal Brand# Supported values: 0 (no traces) to 4 (all traces) 40b0104773SPascal Brand# If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be 41b0104773SPascal Brand# dynamically changes via debugfs in the range 1 => CFG_TEE_TA_LOG_LEVEL 42e0042c88SPascal BrandCFG_TEE_TA_LOG_LEVEL ?= 1 43b0104773SPascal Brand 447c876f12SPascal Brand# TA enablement 457c876f12SPascal Brand# When defined to "y", TA traces are output according to 467c876f12SPascal Brand# CFG_TEE_TA_LOG_LEVEL. Otherwise, they are not output at all 477c876f12SPascal BrandCFG_TEE_CORE_TA_TRACE ?= y 48b0104773SPascal Brand 49*120c43adSJerome Forissier# If 1, enable debug features in TA memory allocation. 50*120c43adSJerome Forissier# Debug features include check of buffer overflow, statistics, mark/check heap 51*120c43adSJerome Forissier# feature. 52b0104773SPascal BrandCFG_TEE_CORE_USER_MEM_DEBUG ?= 1 537018ae01SSY Chiu 54*120c43adSJerome Forissier# PRNG configuration 557018ae01SSY Chiu# If CFG_WITH_SOFTWARE_PRNG is enabled, crypto provider provided 567018ae01SSY Chiu# software PRNG implementation is used. 577018ae01SSY Chiu# Otherwise, you need to implement hw_get_random_byte() for your platform 587018ae01SSY ChiuCFG_WITH_SOFTWARE_PRNG ?= y 59*120c43adSJerome Forissier 60*120c43adSJerome Forissier# Number of threads 61*120c43adSJerome ForissierCFG_NUM_THREADS ?= 2 62