defaults.mk 5.57 KB
Newer Older
1
#
2
# Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved.
3
#
dp-arm's avatar
dp-arm committed
4
# SPDX-License-Identifier: BSD-3-Clause
5
6
7
8
9
10
11
12
#

# Default, static values for build variables, listed in alphabetic order.
# Dependencies between build options, if any, are handled in the top-level
# Makefile, after this file is included. This ensures that the former is better
# poised to handle dependencies, as all build variables would have a default
# value by then.

13
14
15
# Use T32 by default
AARCH32_INSTRUCTION_SET		:= T32

16
17
18
19
20
21
# The AArch32 Secure Payload to be built as BL32 image
AARCH32_SP			:= none

# The Target build architecture. Supported values are: aarch64, aarch32.
ARCH				:= aarch64

22
23
24
25
# ARM Architecture major and minor versions: 8.0 by default.
ARM_ARCH_MAJOR			:= 8
ARM_ARCH_MINOR			:= 0

26
27
28
# Base commit to perform code check on
BASE_COMMIT			:= origin/master

Roberto Vargas's avatar
Roberto Vargas committed
29
30
31
# Execute BL2 at EL3
BL2_AT_EL3			:= 0

Jiafei Pan's avatar
Jiafei Pan committed
32
33
34
35
# BL2 image is stored in XIP memory, for now, this option is only supported
# when BL2_AT_EL3 is 1.
BL2_IN_XIP_MEM			:= 0

36
37
38
39
# By default, consider that the platform may release several CPUs out of reset.
# The platform Makefile is free to override this value.
COLD_BOOT_SINGLE_CPU		:= 0

40
41
42
43
# Flag to compile in coreboot support code. Exclude by default. The coreboot
# Makefile system will set this when compiling TF as part of a coreboot image.
COREBOOT			:= 0

44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# For Chain of Trust
CREATE_KEYS			:= 1

# Build flag to include AArch32 registers in cpu context save and restore during
# world switch. This flag must be set to 0 for AArch64-only platforms.
CTX_INCLUDE_AARCH32_REGS	:= 1

# Include FP registers in cpu context
CTX_INCLUDE_FPREGS		:= 0

# Debug build
DEBUG				:= 0

# Build platform
DEFAULT_PLAT			:= fvp

60
61
62
63
# Enable capability to disable authentication dynamically. Only meant for
# development platforms.
DYN_DISABLE_AUTH		:= 0

64
65
66
# Build option to enable MPAM for lower ELs
ENABLE_MPAM_FOR_LOWER_ELS	:= 0

Soby Mathew's avatar
Soby Mathew committed
67
68
69
# Flag to Enable Position Independant support (PIE)
ENABLE_PIE			:= 0

70
71
72
73
74
75
76
77
78
# Flag to enable Performance Measurement Framework
ENABLE_PMF			:= 0

# Flag to enable PSCI STATs functionality
ENABLE_PSCI_STAT		:= 0

# Flag to enable runtime instrumentation using PMF
ENABLE_RUNTIME_INSTRUMENTATION	:= 0

79
80
81
# Flag to enable stack corruption protection
ENABLE_STACK_PROTECTOR		:= 0

82
83
84
# Flag to enable exception handling in EL3
EL3_EXCEPTION_HANDLING		:= 0

85
86
87
# Build flag to treat usage of deprecated platform and framework APIs as error.
ERROR_DEPRECATED		:= 0

88
89
90
# Fault injection support
FAULT_INJECTION_SUPPORT		:= 0

91
92
93
# Byte alignment that each component in FIP is aligned to
FIP_ALIGN			:= 0

94
95
96
97
98
99
100
101
102
# Default FIP file name
FIP_NAME			:= fip.bin

# Default FWU_FIP file name
FWU_FIP_NAME			:= fwu_fip.bin

# For Chain of Trust
GENERATE_COT			:= 0

103
104
105
106
# Hint platform interrupt control layer that Group 0 interrupts are for EL3. By
# default, they are for Secure EL1.
GICV2_G0_FOR_EL3		:= 0

107
108
109
110
# Route External Aborts to EL3. Disabled by default; External Aborts are handled
# by lower ELs.
HANDLE_EA_EL3_FIRST		:= 0

111
112
113
114
# Whether system coherency is managed in hardware, without explicit software
# operations.
HW_ASSISTED_COHERENCY		:= 0

115
116
117
# Set the default algorithm for the generation of Trusted Board Boot keys
KEY_ALG				:= rsa

118
119
120
# Enable use of the console API allowing multiple consoles to be registered
# at the same time.
MULTI_CONSOLE_API		:= 0
121

122
123
124
125
126
127
128
129
130
131
132
133
134
135
# NS timer register save and restore
NS_TIMER_SWITCH			:= 0

# Build PL011 UART driver in minimal generic UART mode
PL011_GENERIC_UART		:= 0

# By default, consider that the platform's reset address is not programmable.
# The platform Makefile is free to override this value.
PROGRAMMABLE_RESET_ADDRESS	:= 0

# Flag used to choose the power state format viz Extended State-ID or the
# Original format.
PSCI_EXTENDED_STATE_ID		:= 0

136
137
138
# Enable RAS support
RAS_EXTENSION			:= 0

139
140
141
142
143
144
# By default, BL1 acts as the reset handler, not BL31
RESET_TO_BL31			:= 0

# For Chain of Trust
SAVE_KEYS			:= 0

Jeenu Viswambharan's avatar
Jeenu Viswambharan committed
145
146
147
# Software Delegated Exception support
SDEI_SUPPORT            	:= 0

148
149
150
151
# Whether code and read-only data should be put on separate memory pages. The
# platform Makefile is free to override this value.
SEPARATE_CODE_AND_RODATA	:= 0

152
153
154
155
# If the BL31 image initialisation code is recalimed after use for the secondary
# cores stack
RECLAIM_INIT_CODE		:= 0

156
157
158
# SPD choice
SPD				:= none

159
160
161
# For including the Secure Partition Manager
ENABLE_SPM			:= 0

162
163
# Use the SPM based on MM
SPM_MM				:= 1
164

165
166
167
168
169
170
171
# Flag to introduce an infinite loop in BL1 just before it exits into the next
# image. This is meant to help debugging the post-BL2 phase.
SPIN_ON_BL1_EXIT		:= 0

# Flags to build TF with Trusted Boot support
TRUSTED_BOARD_BOOT		:= 0

172
# Build option to choose whether Trusted Firmware uses Coherent memory or not.
173
174
USE_COHERENT_MEM		:= 1

175
176
# Build option to choose whether Trusted Firmware uses library at ROM
USE_ROMLIB			:= 0
177

178
# Use tbbr_oid.h instead of platform_oid.h
179
USE_TBBR_DEFS			:= 1
180

181
182
# Build verbosity
V				:= 0
183
184
185
186
187
188

# Whether to enable D-Cache early during warm boot. This is usually
# applicable for platforms wherein interconnect programming is not
# required to enable cache coherency after warm reset (eg: single cluster
# platforms).
WARMBOOT_ENABLE_DCACHE_EARLY	:= 0
189

190
# Build option to enable/disable the Statistical Profiling Extensions
191
192
ENABLE_SPE_FOR_LOWER_ELS	:= 1

193
# SPE is only supported on AArch64 so disable it on AArch32.
194
195
196
ifeq (${ARCH},aarch32)
    override ENABLE_SPE_FOR_LOWER_ELS := 0
endif
197
198

ENABLE_AMU			:= 0
David Cunado's avatar
David Cunado committed
199
200
201
202
203
204
205
206
207

# By default, enable Scalable Vector Extension if implemented for Non-secure
# lower ELs
# Note SVE is only supported on AArch64 - therefore do not enable in AArch32
ifneq (${ARCH},aarch32)
    ENABLE_SVE_FOR_NS		:= 1
else
    override ENABLE_SVE_FOR_NS	:= 0
endif