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