# Default configuration values for OP-TEE core (all platforms). # # Platform-specific overrides are in core/arch/arm32/plat-*/conf.mk. # Some subsystem-specific defaults are not here but rather in */sub.mk. # # Configuration values may be assigned from multiple sources. # From higher to lower priority: # # 1. Make arguments ('make CFG_FOO=bar...') # 2. The file specified by $(CFG_OPTEE_CONFIG) (if defined) # 3. The environment ('CFG_FOO=bar make...') # 4. The platform-specific configuration file: core/arch/arm32/plat-*/conf.mk # 5. This file # 6. Subsystem-specific makefiles (*/sub.mk) # # Actual values used during the build are output to $(out-dir)/core/conf.mk # (CFG_* variables only). # Cross-compiler prefix and suffix CROSS_COMPILE ?= arm-linux-gnueabihf- COMPILER ?= gcc # Compiler warning level. # Supported values: undefined, 1, 2 and 3. 3 gives more warnings. WARNS ?= 3 # Define NOWERROR=1 so that warnings are not treated as errors # NOWERROR=1 # Define DEBUG=1 to compile with -g option # DEBUG=1 # If 1, debug mode of the tee firmware (CPU restart, Core Status) CFG_TEE_CORE_DEBUG ?= 0 # Max level of the tee core traces. 0 means disable, 4 is max. # Supported values: 0 (no traces) to 4 (all traces) # If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be # dynamically changes via debugfs in the range 1 => CFG_TEE_CORE_LOG_LEVEL CFG_TEE_CORE_LOG_LEVEL ?= 1 # TA and TEECore log level # Supported values: 0 (no traces) to 4 (all traces) # If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be # dynamically changes via debugfs in the range 1 => CFG_TEE_TA_LOG_LEVEL CFG_TEE_TA_LOG_LEVEL ?= 1 # TA enablement # When defined to "y", TA traces are output according to # CFG_TEE_TA_LOG_LEVEL. Otherwise, they are not output at all CFG_TEE_CORE_TA_TRACE ?= y # If 1, enable debug features in TA memory allocation. # Debug features include check of buffer overflow, statistics, mark/check heap # feature. CFG_TEE_CORE_USER_MEM_DEBUG ?= 1 # PRNG configuration # If CFG_WITH_SOFTWARE_PRNG is enabled, crypto provider provided # software PRNG implementation is used. # Otherwise, you need to implement hw_get_random_byte() for your platform CFG_WITH_SOFTWARE_PRNG ?= y # Number of threads CFG_NUM_THREADS ?= 2 # API implementation version CFG_TEE_API_VERSION ?= GPD-1.1-dev # Implementation description (implementation-dependent) CFG_TEE_IMPL_DESCR ?= OPTEE # Trusted OS implementation version CFG_TEE_IMPL_VERSION ?= $(shell git describe --always --dirty=-dev 2>/dev/null || echo Unknown) # Trusted OS implementation manufacturer name CFG_TEE_MANUFACTURER ?= LINARO # Trusted firmware version CFG_TEE_FW_IMPL_VERSION ?= FW_IMPL_UNDEF # Trusted OS implementation manufacturer name CFG_TEE_FW_MANUFACTURER ?= FW_MAN_UNDEF # Encrypted File System Support CFG_ENC_FS ?= y