xref: /optee_os/mk/config.mk (revision e0042c883c86034576451ea7c48e02d40e165034)
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
15*e0042c88SPascal Brand#   Max level of the tee core traces. 0 means disable, 4 is max.
16*e0042c88SPascal 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
19*e0042c88SPascal BrandCFG_TEE_CORE_LOG_LEVEL?=1
20b0104773SPascal Brand
21b0104773SPascal Brand# CFG_TEE_TA_LOG_LEVEL
22b0104773SPascal Brand#   TA and TEECore log level
23*e0042c88SPascal 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
26*e0042c88SPascal BrandCFG_TEE_TA_LOG_LEVEL?=1
27b0104773SPascal Brand
28b0104773SPascal Brand
29b0104773SPascal Brand#   If 1, enable debug features of the user mem module. This module track memory
30b0104773SPascal Brand#   allocation of the user ta.
31b0104773SPascal Brand#   Debug features include check of buffer overflow, statistics,
32b0104773SPascal Brand#   marck/check heap feature
33b0104773SPascal Brand#   Enabling this could decrease efficiency
34b0104773SPascal BrandCFG_TEE_CORE_USER_MEM_DEBUG?=1
35