xref: /optee_os/mk/config.mk (revision b01047730e77127c23a36591643eeb8bb0487d68)
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# Define TEE_ACCEPT_UNSIGNED_BINARIES=1 so that non-signed TA are loaded
11# It should not be defined in a real product
12TEE_ACCEPT_UNSIGNED_BINARIES=1
13
14# CFG_TEE_FW_DEBUG
15#   If 1, debug mode of the tee firmware (CPU restart, Core Status)
16CFG_TEE_FW_DEBUG?=0
17
18# CFG_TEE_CORE_LOG_LEVEL
19#   Max level of the tee core traces. 0 means disable, 5 is max.
20#   Supported values: 0 (no traces) to 5 (all traces)
21#   If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be
22#   dynamically changes via debugfs in the range 1 => CFG_TEE_CORE_LOG_LEVEL
23CFG_TEE_CORE_LOG_LEVEL?=2
24
25# CFG_TEE_TA_LOG_LEVEL
26#   TA and TEECore log level
27#   Supported values: 0 (no traces) to 5 (all traces)
28#   If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be
29#   dynamically changes via debugfs in the range 1 => CFG_TEE_TA_LOG_LEVEL
30CFG_TEE_TA_LOG_LEVEL?=2
31
32
33#   If 1, enable debug features of the user mem module. This module track memory
34#   allocation of the user ta.
35#   Debug features include check of buffer overflow, statistics,
36#   marck/check heap feature
37#   Enabling this could decrease efficiency
38CFG_TEE_CORE_USER_MEM_DEBUG?=1
39
40