Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 1 | # |
Yann Gautier | b9e252a | 2025-02-12 14:05:14 +0100 | [diff] [blame] | 2 | # Copyright (c) 2016-2025, Arm Limited. All rights reserved. |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 3 | # |
dp-arm | 82cb2c1 | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | # Default, static values for build variables, listed in alphabetic order. |
| 8 | # Dependencies between build options, if any, are handled in the top-level |
| 9 | # Makefile, after this file is included. This ensures that the former is better |
| 10 | # poised to handle dependencies, as all build variables would have a default |
| 11 | # value by then. |
| 12 | |
Antonio Nino Diaz | 8fd9d4d | 2018-08-08 16:28:43 +0100 | [diff] [blame] | 13 | # Use T32 by default |
| 14 | AARCH32_INSTRUCTION_SET := T32 |
| 15 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 16 | # The AArch32 Secure Payload to be built as BL32 image |
| 17 | AARCH32_SP := none |
| 18 | |
| 19 | # The Target build architecture. Supported values are: aarch64, aarch32. |
| 20 | ARCH := aarch64 |
| 21 | |
Alexei Fedorov | f182179 | 2020-12-07 16:38:53 +0000 | [diff] [blame] | 22 | # ARM Architecture feature modifiers: none by default |
| 23 | ARM_ARCH_FEATURE := none |
| 24 | |
Jeenu Viswambharan | c877b41 | 2017-01-16 16:52:35 +0000 | [diff] [blame] | 25 | # ARM Architecture major and minor versions: 8.0 by default. |
| 26 | ARM_ARCH_MAJOR := 8 |
| 27 | ARM_ARCH_MINOR := 0 |
| 28 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 29 | # Base commit to perform code check on |
| 30 | BASE_COMMIT := origin/master |
| 31 | |
Roberto Vargas | b1d27b4 | 2017-10-30 14:43:43 +0000 | [diff] [blame] | 32 | # Execute BL2 at EL3 |
Arvind Ram Prakash | 42d4d3b | 2022-11-22 14:41:00 -0600 | [diff] [blame] | 33 | RESET_TO_BL2 := 0 |
Roberto Vargas | b1d27b4 | 2017-10-30 14:43:43 +0000 | [diff] [blame] | 34 | |
Balint Dobszay | 46789a7 | 2021-03-26 16:23:18 +0100 | [diff] [blame] | 35 | # Only use SP packages if SP layout JSON is defined |
| 36 | BL2_ENABLE_SP_LOAD := 0 |
| 37 | |
Jiafei Pan | 7d173fc | 2018-03-21 07:20:09 +0000 | [diff] [blame] | 38 | # BL2 image is stored in XIP memory, for now, this option is only supported |
Arvind Ram Prakash | 42d4d3b | 2022-11-22 14:41:00 -0600 | [diff] [blame] | 39 | # when RESET_TO_BL2 is 1. |
Jiafei Pan | 7d173fc | 2018-03-21 07:20:09 +0000 | [diff] [blame] | 40 | BL2_IN_XIP_MEM := 0 |
| 41 | |
Hadi Asyrafi | b90f207 | 2019-08-20 15:33:27 +0800 | [diff] [blame] | 42 | # Do dcache invalidate upon BL2 entry at EL3 |
| 43 | BL2_INV_DCACHE := 1 |
| 44 | |
Alexei Fedorov | 9fc5963 | 2019-05-24 12:17:09 +0100 | [diff] [blame] | 45 | # Select the branch protection features to use. |
| 46 | BRANCH_PROTECTION := 0 |
| 47 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 48 | # By default, consider that the platform may release several CPUs out of reset. |
| 49 | # The platform Makefile is free to override this value. |
| 50 | COLD_BOOT_SINGLE_CPU := 0 |
| 51 | |
Julius Werner | 3429c77 | 2017-06-09 15:17:15 -0700 | [diff] [blame] | 52 | # Flag to compile in coreboot support code. Exclude by default. The coreboot |
| 53 | # Makefile system will set this when compiling TF as part of a coreboot image. |
| 54 | COREBOOT := 0 |
| 55 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 56 | # For Chain of Trust |
| 57 | CREATE_KEYS := 1 |
| 58 | |
| 59 | # Build flag to include AArch32 registers in cpu context save and restore during |
| 60 | # world switch. This flag must be set to 0 for AArch64-only platforms. |
| 61 | CTX_INCLUDE_AARCH32_REGS := 1 |
| 62 | |
| 63 | # Include FP registers in cpu context |
| 64 | CTX_INCLUDE_FPREGS := 0 |
| 65 | |
| 66 | # Debug build |
| 67 | DEBUG := 0 |
| 68 | |
Sumit Garg | 7cda17b | 2019-11-15 10:43:00 +0530 | [diff] [blame] | 69 | # By default disable authenticated decryption support. |
| 70 | DECRYPTION_SUPPORT := none |
| 71 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 72 | # Build platform |
| 73 | DEFAULT_PLAT := fvp |
| 74 | |
Christoph Müllner | 9e4609f | 2019-04-24 09:45:30 +0200 | [diff] [blame] | 75 | # Disable the generation of the binary image (ELF only). |
| 76 | DISABLE_BIN_GENERATION := 0 |
| 77 | |
Soby Mathew | 209a60c | 2018-03-26 12:43:37 +0100 | [diff] [blame] | 78 | # Enable capability to disable authentication dynamically. Only meant for |
| 79 | # development platforms. |
| 80 | DYN_DISABLE_AUTH := 0 |
| 81 | |
Chris Kay | 6812078 | 2021-05-05 13:38:30 +0100 | [diff] [blame] | 82 | # Enable the Maximum Power Mitigation Mechanism on supporting cores. |
| 83 | ENABLE_MPMM := 0 |
| 84 | |
| 85 | # Enable MPMM configuration via FCONF. |
| 86 | ENABLE_MPMM_FCONF := 0 |
| 87 | |
Soby Mathew | 3bd17c0 | 2018-08-28 11:13:55 +0100 | [diff] [blame] | 88 | # Flag to Enable Position Independant support (PIE) |
| 89 | ENABLE_PIE := 0 |
| 90 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 91 | # Flag to enable Performance Measurement Framework |
| 92 | ENABLE_PMF := 0 |
| 93 | |
| 94 | # Flag to enable PSCI STATs functionality |
| 95 | ENABLE_PSCI_STAT := 0 |
| 96 | |
| 97 | # Flag to enable runtime instrumentation using PMF |
| 98 | ENABLE_RUNTIME_INSTRUMENTATION := 0 |
| 99 | |
Douglas Raillard | 51faada | 2017-02-24 18:14:15 +0000 | [diff] [blame] | 100 | # Flag to enable stack corruption protection |
| 101 | ENABLE_STACK_PROTECTOR := 0 |
| 102 | |
Jeenu Viswambharan | 21b818c | 2017-09-22 08:32:10 +0100 | [diff] [blame] | 103 | # Flag to enable exception handling in EL3 |
| 104 | EL3_EXCEPTION_HANDLING := 0 |
| 105 | |
Yann Gautier | b9e252a | 2025-02-12 14:05:14 +0100 | [diff] [blame] | 106 | # Flag to include all errata for all CPUs TF-A implements workarounds for |
| 107 | # Its supposed to be used only for testing. |
| 108 | ENABLE_ERRATA_ALL := 0 |
| 109 | |
Sumit Garg | c6ba9b4 | 2019-11-14 16:33:45 +0530 | [diff] [blame] | 110 | # By default BL31 encryption disabled |
| 111 | ENCRYPT_BL31 := 0 |
| 112 | |
| 113 | # By default BL32 encryption disabled |
| 114 | ENCRYPT_BL32 := 0 |
| 115 | |
| 116 | # Default dummy firmware encryption key |
| 117 | ENC_KEY := 1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef |
| 118 | |
| 119 | # Default dummy nonce for firmware encryption |
| 120 | ENC_NONCE := 1234567890abcdef12345678 |
| 121 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 122 | # Build flag to treat usage of deprecated platform and framework APIs as error. |
| 123 | ERROR_DEPRECATED := 0 |
| 124 | |
Jeenu Viswambharan | 1a7c1cf | 2017-12-08 12:13:51 +0000 | [diff] [blame] | 125 | # Fault injection support |
| 126 | FAULT_INJECTION_SUPPORT := 0 |
| 127 | |
Jayanth Dodderi Chidanand | 6a0da73 | 2022-01-17 18:57:17 +0000 | [diff] [blame] | 128 | # Flag to enable architectural features detection mechanism |
| 129 | FEATURE_DETECTION := 0 |
| 130 | |
Masahiro Yamada | 1c75d5d | 2016-12-25 13:52:22 +0900 | [diff] [blame] | 131 | # Byte alignment that each component in FIP is aligned to |
| 132 | FIP_ALIGN := 0 |
| 133 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 134 | # Default FIP file name |
| 135 | FIP_NAME := fip.bin |
| 136 | |
| 137 | # Default FWU_FIP file name |
| 138 | FWU_FIP_NAME := fwu_fip.bin |
| 139 | |
Sumit Garg | c6ba9b4 | 2019-11-14 16:33:45 +0530 | [diff] [blame] | 140 | # By default firmware encryption with SSK |
| 141 | FW_ENC_STATUS := 0 |
| 142 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 143 | # For Chain of Trust |
| 144 | GENERATE_COT := 0 |
| 145 | |
Jeenu Viswambharan | 74dce7f | 2017-09-22 08:32:09 +0100 | [diff] [blame] | 146 | # Hint platform interrupt control layer that Group 0 interrupts are for EL3. By |
| 147 | # default, they are for Secure EL1. |
| 148 | GICV2_G0_FOR_EL3 := 0 |
| 149 | |
Manish Pandey | 46cc41d | 2022-10-10 11:43:08 +0100 | [diff] [blame] | 150 | # Route NS External Aborts to EL3. Disabled by default; External Aborts are handled |
Jeenu Viswambharan | 76454ab | 2017-11-30 12:54:15 +0000 | [diff] [blame] | 151 | # by lower ELs. |
Manish Pandey | 46cc41d | 2022-10-10 11:43:08 +0100 | [diff] [blame] | 152 | HANDLE_EA_EL3_FIRST_NS := 0 |
Jeenu Viswambharan | 76454ab | 2017-11-30 12:54:15 +0000 | [diff] [blame] | 153 | |
Raymond Mao | 3ba2c15 | 2023-07-25 07:53:35 -0700 | [diff] [blame] | 154 | # Enable Handoff protocol using transfer lists |
| 155 | TRANSFER_LIST := 0 |
| 156 | |
Bipin Ravi | 9cec549 | 2023-09-28 13:17:24 -0500 | [diff] [blame] | 157 | # Enables support for the gcc compiler option "-mharden-sls=all". |
| 158 | # By default, disables all SLS hardening. |
| 159 | HARDEN_SLS := 0 |
| 160 | |
Alexei Fedorov | ae3cf1f | 2020-10-06 15:54:12 +0100 | [diff] [blame] | 161 | # Secure hash algorithm flag, accepts 3 values: sha256, sha384 and sha512. |
| 162 | # The default value is sha256. |
| 163 | HASH_ALG := sha256 |
| 164 | |
Jeenu Viswambharan | 3c251af | 2017-01-04 13:51:42 +0000 | [diff] [blame] | 165 | # Whether system coherency is managed in hardware, without explicit software |
| 166 | # operations. |
| 167 | HW_ASSISTED_COHERENCY := 0 |
| 168 | |
Varun Wadekar | 0ed3be6 | 2023-04-13 21:06:18 +0100 | [diff] [blame] | 169 | # Flag to enable trapping of implementation defined sytem registers |
| 170 | IMPDEF_SYSREG_TRAP := 0 |
| 171 | |
Soby Mathew | 2091755 | 2017-08-31 11:49:32 +0100 | [diff] [blame] | 172 | # Set the default algorithm for the generation of Trusted Board Boot keys |
| 173 | KEY_ALG := rsa |
| 174 | |
Leonardo Sandoval | ee15a17 | 2020-06-18 17:32:55 -0500 | [diff] [blame] | 175 | # Set the default key size in case KEY_ALG is rsa |
| 176 | ifeq ($(KEY_ALG),rsa) |
| 177 | KEY_SIZE := 2048 |
| 178 | endif |
| 179 | |
Alexei Fedorov | 8c10529 | 2020-01-23 14:27:38 +0000 | [diff] [blame] | 180 | # Option to build TF with Measured Boot support |
| 181 | MEASURED_BOOT := 0 |
| 182 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 183 | # NS timer register save and restore |
| 184 | NS_TIMER_SWITCH := 0 |
| 185 | |
Varun Wadekar | 77f1f7a | 2019-01-31 09:22:30 -0800 | [diff] [blame] | 186 | # Include lib/libc in the final image |
| 187 | OVERRIDE_LIBC := 0 |
| 188 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 189 | # Build PL011 UART driver in minimal generic UART mode |
| 190 | PL011_GENERIC_UART := 0 |
| 191 | |
| 192 | # By default, consider that the platform's reset address is not programmable. |
| 193 | # The platform Makefile is free to override this value. |
| 194 | PROGRAMMABLE_RESET_ADDRESS := 0 |
| 195 | |
Antonio Nino Diaz | 7330861 | 2019-02-28 13:35:21 +0000 | [diff] [blame] | 196 | # Flag used to choose the power state format: Extended State-ID or Original |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 197 | PSCI_EXTENDED_STATE_ID := 0 |
| 198 | |
Wing Li | 64b4710 | 2023-01-26 18:33:36 -0800 | [diff] [blame] | 199 | # Enable PSCI OS-initiated mode support |
| 200 | PSCI_OS_INIT_MODE := 0 |
| 201 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 202 | # By default, BL1 acts as the reset handler, not BL31 |
| 203 | RESET_TO_BL31 := 0 |
| 204 | |
| 205 | # For Chain of Trust |
| 206 | SAVE_KEYS := 0 |
| 207 | |
Jeenu Viswambharan | b7cb133 | 2017-10-16 08:43:14 +0100 | [diff] [blame] | 208 | # Software Delegated Exception support |
johpow01 | dc78e62 | 2021-07-08 14:14:00 -0500 | [diff] [blame] | 209 | SDEI_SUPPORT := 0 |
Jeenu Viswambharan | b7cb133 | 2017-10-16 08:43:14 +0100 | [diff] [blame] | 210 | |
Jayanth Dodderi Chidanand | 0b22e59 | 2022-10-11 17:16:07 +0100 | [diff] [blame] | 211 | # True Random Number firmware Interface support |
johpow01 | dc78e62 | 2021-07-08 14:14:00 -0500 | [diff] [blame] | 212 | TRNG_SUPPORT := 0 |
Jimmy Brisson | 7dfb991 | 2020-06-22 14:18:42 -0500 | [diff] [blame] | 213 | |
Sona Mathew | ffea384 | 2022-11-18 18:05:38 -0600 | [diff] [blame] | 214 | # Check to see if Errata ABI is supported |
| 215 | ERRATA_ABI_SUPPORT := 0 |
| 216 | |
Sona Mathew | ef63f5b | 2023-03-14 14:02:03 -0500 | [diff] [blame] | 217 | # Check to enable Errata ABI for platforms with non-arm interconnect |
| 218 | ERRATA_NON_ARM_INTERCONNECT := 0 |
| 219 | |
Jeremy Linton | c7a28aa | 2020-11-18 10:12:41 -0600 | [diff] [blame] | 220 | # SMCCC PCI support |
johpow01 | dc78e62 | 2021-07-08 14:14:00 -0500 | [diff] [blame] | 221 | SMC_PCI_SUPPORT := 0 |
Jeremy Linton | c7a28aa | 2020-11-18 10:12:41 -0600 | [diff] [blame] | 222 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 223 | # Whether code and read-only data should be put on separate memory pages. The |
| 224 | # platform Makefile is free to override this value. |
| 225 | SEPARATE_CODE_AND_RODATA := 0 |
| 226 | |
Samuel Holland | f8578e6 | 2018-10-17 21:40:18 -0500 | [diff] [blame] | 227 | # Put NOBITS sections (.bss, stacks, page tables, and coherent memory) in a |
| 228 | # separate memory region, which may be discontiguous from the rest of BL31. |
| 229 | SEPARATE_NOBITS_REGION := 0 |
| 230 | |
Jiafei Pan | 96a8ed1 | 2022-02-24 10:47:33 +0800 | [diff] [blame] | 231 | # Put BL2 NOLOAD sections (.bss, stacks, page tables) in a separate memory |
| 232 | # region, platform Makefile is free to override this value. |
| 233 | SEPARATE_BL2_NOLOAD_REGION := 0 |
| 234 | |
Daniel Boulby | 1dcc28c | 2018-09-18 11:45:51 +0100 | [diff] [blame] | 235 | # If the BL31 image initialisation code is recalimed after use for the secondary |
| 236 | # cores stack |
| 237 | RECLAIM_INIT_CODE := 0 |
| 238 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 239 | # SPD choice |
| 240 | SPD := none |
| 241 | |
Paul Beesley | 3f3c341 | 2019-09-16 11:29:03 +0000 | [diff] [blame] | 242 | # Enable the Management Mode (MM)-based Secure Partition Manager implementation |
| 243 | SPM_MM := 0 |
Antonio Nino Diaz | 2d7b9e5 | 2018-10-30 11:08:08 +0000 | [diff] [blame] | 244 | |
Marc Bonnici | 1d63ae4 | 2021-12-01 18:00:40 +0000 | [diff] [blame] | 245 | # Use the FF-A SPMC implementation in EL3. |
| 246 | SPMC_AT_EL3 := 0 |
| 247 | |
Nishant Sharma | 801cd3c | 2023-06-27 00:36:01 +0100 | [diff] [blame] | 248 | # Enable SEL0 SP when SPMC is enabled at EL3 |
| 249 | SPMC_AT_EL3_SEL0_SP :=0 |
| 250 | |
Max Shvetsov | 033039f | 2020-02-25 13:55:00 +0000 | [diff] [blame] | 251 | # Use SPM at S-EL2 as a default config for SPMD |
| 252 | SPMD_SPM_AT_SEL2 := 1 |
| 253 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 254 | # Flag to introduce an infinite loop in BL1 just before it exits into the next |
| 255 | # image. This is meant to help debugging the post-BL2 phase. |
| 256 | SPIN_ON_BL1_EXIT := 0 |
| 257 | |
| 258 | # Flags to build TF with Trusted Boot support |
| 259 | TRUSTED_BOARD_BOOT := 0 |
| 260 | |
Antonio Nino Diaz | e23e057 | 2018-09-25 09:41:08 +0100 | [diff] [blame] | 261 | # Build option to choose whether Trusted Firmware uses Coherent memory or not. |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 262 | USE_COHERENT_MEM := 1 |
| 263 | |
Olivier Deprez | 0ca3913 | 2019-09-19 17:46:46 +0200 | [diff] [blame] | 264 | # Build option to add debugfs support |
| 265 | USE_DEBUGFS := 0 |
| 266 | |
Louis Mayencourt | 0a6e7e3 | 2019-10-24 15:18:46 +0100 | [diff] [blame] | 267 | # Build option to fconf based io |
Balint Dobszay | cbf9e84 | 2019-12-18 15:28:00 +0100 | [diff] [blame] | 268 | ARM_IO_IN_DTB := 0 |
| 269 | |
| 270 | # Build option to support SDEI through fconf |
Madhukar Pappireddy | 452d5e5 | 2020-06-02 09:26:30 -0500 | [diff] [blame] | 271 | SDEI_IN_FCONF := 0 |
| 272 | |
| 273 | # Build option to support Secure Interrupt descriptors through fconf |
| 274 | SEC_INT_DESC_IN_FCONF := 0 |
Louis Mayencourt | 0a6e7e3 | 2019-10-24 15:18:46 +0100 | [diff] [blame] | 275 | |
Antonio Nino Diaz | e23e057 | 2018-09-25 09:41:08 +0100 | [diff] [blame] | 276 | # Build option to choose whether Trusted Firmware uses library at ROM |
| 277 | USE_ROMLIB := 0 |
Roberto Vargas | 5accce5 | 2018-05-22 16:05:42 +0100 | [diff] [blame] | 278 | |
Petre-Ionut Tudor | 60e8f3c | 2019-11-07 15:18:03 +0000 | [diff] [blame] | 279 | # Build option to choose whether the xlat tables of BL images can be read-only. |
| 280 | # Note that this only serves as a higher level option to PLAT_RO_XLAT_TABLES, |
| 281 | # which is the per BL-image option that actually enables the read-only tables |
| 282 | # API. The reason for having this additional option is to have a common high |
| 283 | # level makefile where we can check for incompatible features/build options. |
| 284 | ALLOW_RO_XLAT_TABLES := 0 |
| 285 | |
Sandrine Bailleux | 3bff910 | 2020-01-15 10:23:25 +0100 | [diff] [blame] | 286 | # Chain of trust. |
| 287 | COT := tbbr |
| 288 | |
Masahiro Yamada | bb41eb7 | 2017-05-22 12:11:24 +0900 | [diff] [blame] | 289 | # Use tbbr_oid.h instead of platform_oid.h |
Antonio Nino Diaz | e23e057 | 2018-09-25 09:41:08 +0100 | [diff] [blame] | 290 | USE_TBBR_DEFS := 1 |
Masahiro Yamada | bb41eb7 | 2017-05-22 12:11:24 +0900 | [diff] [blame] | 291 | |
Jeenu Viswambharan | 2fae4b1 | 2016-10-24 14:31:51 +0100 | [diff] [blame] | 292 | # Build verbosity |
| 293 | V := 0 |
Soby Mathew | bcc3c49 | 2017-04-10 22:35:42 +0100 | [diff] [blame] | 294 | |
| 295 | # Whether to enable D-Cache early during warm boot. This is usually |
| 296 | # applicable for platforms wherein interconnect programming is not |
| 297 | # required to enable cache coherency after warm reset (eg: single cluster |
| 298 | # platforms). |
| 299 | WARMBOOT_ENABLE_DCACHE_EARLY := 0 |
dp-arm | d832aee | 2017-05-23 09:32:49 +0100 | [diff] [blame] | 300 | |
Mark Brown | bebcf27 | 2022-04-20 18:14:32 +0100 | [diff] [blame] | 301 | # Default SVE vector length to maximum architected value |
| 302 | SVE_VECTOR_LEN := 2048 |
| 303 | |
Justin Chadwell | 1f46197 | 2019-08-20 11:01:52 +0100 | [diff] [blame] | 304 | SANITIZE_UB := off |
Soby Mathew | c97cba4 | 2019-09-25 14:03:41 +0100 | [diff] [blame] | 305 | |
| 306 | # For ARMv8.1 (AArch64) platforms, enabling this option selects the spinlock |
| 307 | # implementation variant using the ARMv8.1-LSE compare-and-swap instruction. |
| 308 | # Default: disabled |
| 309 | USE_SPINLOCK_CAS := 0 |
zelalem-aweke | edbce9a | 2019-11-12 16:20:17 -0600 | [diff] [blame] | 310 | |
| 311 | # Enable Link Time Optimization |
| 312 | ENABLE_LTO := 0 |
Max Shvetsov | 28f39f0 | 2020-02-25 13:56:19 +0000 | [diff] [blame] | 313 | |
Govindraj Raja | f1910cc | 2022-11-21 13:10:40 +0000 | [diff] [blame] | 314 | # This option will include EL2 registers in cpu context save and restore during |
| 315 | # EL2 firmware entry/exit. Internal flag not meant for direct setting. |
| 316 | # Use SPD=spmd and SPMD_SPM_AT_SEL2=1 or ENABLE_RME=1 to enable |
| 317 | # CTX_INCLUDE_EL2_REGS. |
Max Shvetsov | 28f39f0 | 2020-02-25 13:56:19 +0000 | [diff] [blame] | 318 | CTX_INCLUDE_EL2_REGS := 0 |
Manish V Badarkhe | 7ff088d | 2020-03-22 05:06:38 +0000 | [diff] [blame] | 319 | |
| 320 | # Enable Memory tag extension which is supported for architecture greater |
| 321 | # than Armv8.5-A |
| 322 | # By default it is set to "no" |
| 323 | SUPPORT_STACK_MEMTAG := no |
Manish V Badarkhe | 45aecff | 2020-04-28 04:53:32 +0100 | [diff] [blame] | 324 | |
| 325 | # Select workaround for AT speculative behaviour. |
johpow01 | dc78e62 | 2021-07-08 14:14:00 -0500 | [diff] [blame] | 326 | ERRATA_SPECULATIVE_AT := 0 |
Varun Wadekar | fbc44bd | 2020-06-12 10:11:28 -0700 | [diff] [blame] | 327 | |
Manish Pandey | 00e8f79 | 2022-09-27 14:30:34 +0100 | [diff] [blame] | 328 | # Trap RAS error record access from Non secure |
| 329 | RAS_TRAP_NS_ERR_REC_ACCESS := 0 |
Manish V Badarkhe | 84ef9cd | 2020-06-29 10:32:53 +0100 | [diff] [blame] | 330 | |
| 331 | # Build option to create cot descriptors using fconf |
| 332 | COT_DESC_IN_DTB := 0 |
Manish V Badarkhe | 582e4e7 | 2020-07-29 10:58:44 +0100 | [diff] [blame] | 333 | |
Juan Pablo Conde | cf2dd17 | 2022-10-25 19:41:02 -0400 | [diff] [blame] | 334 | # Build option to provide OpenSSL directory path |
Manish V Badarkhe | 582e4e7 | 2020-07-29 10:58:44 +0100 | [diff] [blame] | 335 | OPENSSL_DIR := /usr |
Madhukar Pappireddy | fddfb3b | 2020-08-12 13:18:19 -0500 | [diff] [blame] | 336 | |
Salome Thirot | e95abc4 | 2022-07-14 16:14:15 +0100 | [diff] [blame] | 337 | # Select the openssl binary provided in OPENSSL_DIR variable |
| 338 | ifeq ("$(wildcard ${OPENSSL_DIR}/bin)", "") |
| 339 | OPENSSL_BIN_PATH = ${OPENSSL_DIR}/apps |
| 340 | else |
| 341 | OPENSSL_BIN_PATH = ${OPENSSL_DIR}/bin |
| 342 | endif |
| 343 | |
Madhukar Pappireddy | fddfb3b | 2020-08-12 13:18:19 -0500 | [diff] [blame] | 344 | # Build option to use the SP804 timer instead of the generic one |
| 345 | USE_SP804_TIMER := 0 |
Manish V Badarkhe | 5357f83 | 2021-03-16 10:01:27 +0000 | [diff] [blame] | 346 | |
| 347 | # Build option to define number of firmware banks, used in firmware update |
| 348 | # metadata structure. |
| 349 | NR_OF_FW_BANKS := 2 |
| 350 | |
| 351 | # Build option to define number of images in firmware bank, used in firmware |
| 352 | # update metadata structure. |
| 353 | NR_OF_IMAGES_IN_FW_BANK := 1 |
Manish V Badarkhe | 396b339 | 2021-06-25 23:28:59 +0100 | [diff] [blame] | 354 | |
| 355 | # Disable Firmware update support by default |
| 356 | PSA_FWU_SUPPORT := 0 |
Manish V Badarkhe | 813524e | 2021-07-02 09:10:56 +0100 | [diff] [blame] | 357 | |
Tamas Ban | 0ce2072 | 2022-01-18 16:20:47 +0100 | [diff] [blame] | 358 | # By default, disable the mocking of RSS provided services |
| 359 | PLAT_RSS_NOT_SUPPORTED := 0 |
Manish V Badarkhe | 00e2887 | 2022-03-02 12:06:35 +0000 | [diff] [blame] | 360 | |
| 361 | # Dynamic Root of Trust for Measurement support |
| 362 | DRTM_SUPPORT := 0 |
Okash Khawaja | 04c7303 | 2022-11-04 12:38:01 +0000 | [diff] [blame] | 363 | |
| 364 | # Check platform if cache management operations should be performed. |
| 365 | # Disabled by default. |
| 366 | CONDITIONAL_CMO := 0 |
Raghu Krishnamurthy | 890b508 | 2023-02-25 13:26:10 -0800 | [diff] [blame] | 367 | |
| 368 | # By default, disable SPMD Logical partitions |
| 369 | ENABLE_SPMD_LP := 0 |
Manish V Badarkhe | 5782b89 | 2023-09-06 09:08:28 +0100 | [diff] [blame] | 370 | |
| 371 | # By default, disable PSA crypto (use MbedTLS legacy crypto API). |
| 372 | PSA_CRYPTO := 0 |
Sandrine Bailleux | 85bebe1 | 2023-10-11 08:38:00 +0200 | [diff] [blame] | 373 | |
| 374 | # getc() support from the console(s). |
| 375 | # Disabled by default because it constitutes an attack vector into TF-A. It |
| 376 | # should only be enabled if there is a use case for it. |
| 377 | ENABLE_CONSOLE_GETC := 0 |
Arvind Ram Prakash | 183329a | 2023-08-15 16:28:06 -0500 | [diff] [blame] | 378 | |
| 379 | # Build option to disable EL2 when it is not used. |
| 380 | # Most platforms switch from EL3 to NS-EL2 and hence the unused NS-EL2 |
| 381 | # functions must be enabled by platforms if they require it. |
| 382 | # Disabled by default. |
| 383 | INIT_UNUSED_NS_EL2 := 0 |