xref: /optee_os/mk/config.mk (revision c84d070c6a123fa9f1dec3d23ec2c837b4ee3fca)
1# WARNS from undefined, 1, 2 and 3. 3 means we have the most warning messages
2WARNS ?= 3
3
4# Define NOWERROR=1 so that warnings are not treated as errors
5# NOWERROR=1
6
7# Define DEBUG=1 to compile with -g option
8# DEBUG=1
9
10# CFG_TEE_FW_DEBUG
11#   If 1, debug mode of the tee firmware (CPU restart, Core Status)
12CFG_TEE_FW_DEBUG?=0
13
14# CFG_TEE_CORE_LOG_LEVEL
15#   Max level of the tee core traces. 0 means disable, 4 is max.
16#   Supported values: 0 (no traces) to 4 (all traces)
17#   If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be
18#   dynamically changes via debugfs in the range 1 => CFG_TEE_CORE_LOG_LEVEL
19CFG_TEE_CORE_LOG_LEVEL?=1
20
21# CFG_TEE_TA_LOG_LEVEL
22#   TA and TEECore log level
23#   Supported values: 0 (no traces) to 4 (all traces)
24#   If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be
25#   dynamically changes via debugfs in the range 1 => CFG_TEE_TA_LOG_LEVEL
26CFG_TEE_TA_LOG_LEVEL?=1
27
28
29#   If 1, enable debug features of the user mem module. This module track memory
30#   allocation of the user ta.
31#   Debug features include check of buffer overflow, statistics,
32#   marck/check heap feature
33#   Enabling this could decrease efficiency
34CFG_TEE_CORE_USER_MEM_DEBUG?=1
35