xref: /optee_os/mk/config.mk (revision 2cdaaacbc1d6d409e10402bc8017bd71a433a5b8)
1# Default configuration values for OP-TEE core (all platforms).
2#
3# Platform-specific overrides are in core/arch/arm32/plat-*/conf.mk.
4# Some subsystem-specific defaults are not here but rather in */sub.mk.
5#
6# Configuration values may be assigned from multiple sources.
7# From higher to lower priority:
8#
9#   1. Make arguments ('make CFG_FOO=bar...')
10#   2. The file specified by $(CFG_OPTEE_CONFIG) (if defined)
11#   3. The environment ('CFG_FOO=bar make...')
12#   4. The platform-specific configuration file: core/arch/arm32/plat-*/conf.mk
13#   5. This file
14#   6. Subsystem-specific makefiles (*/sub.mk)
15#
16# Actual values used during the build are output to $(out-dir)/core/conf.mk
17# (CFG_* variables only).
18
19# Cross-compiler prefix and suffix
20CROSS_COMPILE ?= arm-linux-gnueabihf-
21COMPILER ?= gcc
22
23# Compiler warning level.
24# Supported values: undefined, 1, 2 and 3. 3 gives more warnings.
25WARNS ?= 3
26
27# Define NOWERROR=1 so that warnings are not treated as errors
28# NOWERROR=1
29
30# Define DEBUG=1 to compile with -g option
31# DEBUG=1
32
33# If 1, debug mode of the tee firmware (CPU restart, Core Status)
34CFG_TEE_CORE_DEBUG ?= 0
35
36# Max level of the tee core traces. 0 means disable, 4 is max.
37# Supported values: 0 (no traces) to 4 (all traces)
38# If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be
39# dynamically changes via debugfs in the range 1 => CFG_TEE_CORE_LOG_LEVEL
40CFG_TEE_CORE_LOG_LEVEL ?= 1
41
42# TA and TEECore log level
43# Supported values: 0 (no traces) to 4 (all traces)
44# If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be
45# dynamically changes via debugfs in the range 1 => CFG_TEE_TA_LOG_LEVEL
46CFG_TEE_TA_LOG_LEVEL ?= 1
47
48# TA enablement
49# When defined to "y", TA traces are output according to
50# CFG_TEE_TA_LOG_LEVEL. Otherwise, they are not output at all
51CFG_TEE_CORE_TA_TRACE ?= y
52
53# Define TEE_Panic as a macro to help debugging panics caused by calls to
54# TEE_Panic. This flag can have a different value when later compiling the
55# TA
56CFG_TEE_PANIC_DEBUG ?= y
57
58# If 1, enable debug features in TA memory allocation.
59# Debug features include check of buffer overflow, statistics, mark/check heap
60# feature.
61CFG_TEE_CORE_USER_MEM_DEBUG ?= 1
62
63# PRNG configuration
64# If CFG_WITH_SOFTWARE_PRNG is enabled, crypto provider provided
65# software PRNG implementation is used.
66# Otherwise, you need to implement hw_get_random_byte() for your platform
67CFG_WITH_SOFTWARE_PRNG ?= y
68
69# Number of threads
70CFG_NUM_THREADS ?= 2
71
72# API implementation version
73CFG_TEE_API_VERSION ?= GPD-1.1-dev
74
75# Implementation description (implementation-dependent)
76CFG_TEE_IMPL_DESCR ?= OPTEE
77
78# Trusted OS implementation version
79CFG_TEE_IMPL_VERSION ?= $(shell git describe --always --dirty=-dev 2>/dev/null || echo Unknown)
80
81# Trusted OS implementation manufacturer name
82CFG_TEE_MANUFACTURER ?= LINARO
83
84# Trusted firmware version
85CFG_TEE_FW_IMPL_VERSION ?= FW_IMPL_UNDEF
86
87# Trusted OS implementation manufacturer name
88CFG_TEE_FW_MANUFACTURER ?= FW_MAN_UNDEF
89
90# Encrypted File System Support
91CFG_ENC_FS ?= y
92
93# Embed public part of this key in OP-TEE OS
94TA_SIGN_KEY ?= keys/default_ta.pem
95