blob: 2366c713a77a20fd1f6a8a65f2d9ef092a1a5db1 [file] [log] [blame]
Pascal Brandb0104772014-06-12 15:56:20 +02001# WARNS from undefined, 1, 2 and 3. 3 means we have the most warning messages
2WARNS ?= 3
3
Pascal Brand7c876f12015-03-02 16:43:19 +01004# Define NOWERROR=1 so that warnings are not treated as errors
Pascal Brandb0104772014-06-12 15:56:20 +02005# NOWERROR=1
6
7# Define DEBUG=1 to compile with -g option
8# DEBUG=1
9
Pascal Brandb0104772014-06-12 15:56:20 +020010# 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
Pascal Brande0042c82014-11-17 13:42:52 +010015# Max level of the tee core traces. 0 means disable, 4 is max.
16# Supported values: 0 (no traces) to 4 (all traces)
Pascal Brandb0104772014-06-12 15:56:20 +020017# 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
Pascal Brande0042c82014-11-17 13:42:52 +010019CFG_TEE_CORE_LOG_LEVEL?=1
Pascal Brandb0104772014-06-12 15:56:20 +020020
21# CFG_TEE_TA_LOG_LEVEL
22# TA and TEECore log level
Pascal Brande0042c82014-11-17 13:42:52 +010023# Supported values: 0 (no traces) to 4 (all traces)
Pascal Brandb0104772014-06-12 15:56:20 +020024# 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
Pascal Brande0042c82014-11-17 13:42:52 +010026CFG_TEE_TA_LOG_LEVEL?=1
Pascal Brandb0104772014-06-12 15:56:20 +020027
Pascal Brand7c876f12015-03-02 16:43:19 +010028# CFG_TEE_CORE_TA_TRACE
29# TA enablement
30# When defined to "y", TA traces are output according to
31# CFG_TEE_TA_LOG_LEVEL. Otherwise, they are not output at all
32CFG_TEE_CORE_TA_TRACE?=y
Pascal Brandb0104772014-06-12 15:56:20 +020033
34# If 1, enable debug features of the user mem module. This module track memory
35# allocation of the user ta.
36# Debug features include check of buffer overflow, statistics,
37# marck/check heap feature
38# Enabling this could decrease efficiency
39CFG_TEE_CORE_USER_MEM_DEBUG?=1
SY Chiu7018ae02015-03-04 15:04:45 +080040
41
42# PRNG Configuration:
43#
44# If CFG_WITH_SOFTWARE_PRNG is enabled, crypto provider provided
45# software PRNG implementation is used.
46#
47# Otherwise, you need to implement hw_get_random_byte() for your platform
48#
49CFG_WITH_SOFTWARE_PRNG ?= y