defaults.mk 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. #
  2. # Copyright (c) 2016-2023, Arm Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # Default, static values for build variables, listed in alphabetic order.
  7. # Dependencies between build options, if any, are handled in the top-level
  8. # Makefile, after this file is included. This ensures that the former is better
  9. # poised to handle dependencies, as all build variables would have a default
  10. # value by then.
  11. # Use T32 by default
  12. AARCH32_INSTRUCTION_SET := T32
  13. # The AArch32 Secure Payload to be built as BL32 image
  14. AARCH32_SP := none
  15. # The Target build architecture. Supported values are: aarch64, aarch32.
  16. ARCH := aarch64
  17. # ARM Architecture feature modifiers: none by default
  18. ARM_ARCH_FEATURE := none
  19. # ARM Architecture major and minor versions: 8.0 by default.
  20. ARM_ARCH_MAJOR := 8
  21. ARM_ARCH_MINOR := 0
  22. # Base commit to perform code check on
  23. BASE_COMMIT := origin/master
  24. # Execute BL2 at EL3
  25. RESET_TO_BL2 := 0
  26. # Only use SP packages if SP layout JSON is defined
  27. BL2_ENABLE_SP_LOAD := 0
  28. # BL2 image is stored in XIP memory, for now, this option is only supported
  29. # when RESET_TO_BL2 is 1.
  30. BL2_IN_XIP_MEM := 0
  31. # Do dcache invalidate upon BL2 entry at EL3
  32. BL2_INV_DCACHE := 1
  33. # Select the branch protection features to use.
  34. BRANCH_PROTECTION := 0
  35. # By default, consider that the platform may release several CPUs out of reset.
  36. # The platform Makefile is free to override this value.
  37. COLD_BOOT_SINGLE_CPU := 0
  38. # Flag to compile in coreboot support code. Exclude by default. The coreboot
  39. # Makefile system will set this when compiling TF as part of a coreboot image.
  40. COREBOOT := 0
  41. # For Chain of Trust
  42. CREATE_KEYS := 1
  43. # Build flag to include AArch32 registers in cpu context save and restore during
  44. # world switch. This flag must be set to 0 for AArch64-only platforms.
  45. CTX_INCLUDE_AARCH32_REGS := 1
  46. # Include FP registers in cpu context
  47. CTX_INCLUDE_FPREGS := 0
  48. # Debug build
  49. DEBUG := 0
  50. # By default disable authenticated decryption support.
  51. DECRYPTION_SUPPORT := none
  52. # Build platform
  53. DEFAULT_PLAT := fvp
  54. # Disable the generation of the binary image (ELF only).
  55. DISABLE_BIN_GENERATION := 0
  56. # Enable capability to disable authentication dynamically. Only meant for
  57. # development platforms.
  58. DYN_DISABLE_AUTH := 0
  59. # Enable the Maximum Power Mitigation Mechanism on supporting cores.
  60. ENABLE_MPMM := 0
  61. # Enable MPMM configuration via FCONF.
  62. ENABLE_MPMM_FCONF := 0
  63. # Flag to Enable Position Independant support (PIE)
  64. ENABLE_PIE := 0
  65. # Flag to enable Performance Measurement Framework
  66. ENABLE_PMF := 0
  67. # Flag to enable PSCI STATs functionality
  68. ENABLE_PSCI_STAT := 0
  69. # Flag to enable runtime instrumentation using PMF
  70. ENABLE_RUNTIME_INSTRUMENTATION := 0
  71. # Flag to enable stack corruption protection
  72. ENABLE_STACK_PROTECTOR := 0
  73. # Flag to enable exception handling in EL3
  74. EL3_EXCEPTION_HANDLING := 0
  75. # By default BL31 encryption disabled
  76. ENCRYPT_BL31 := 0
  77. # By default BL32 encryption disabled
  78. ENCRYPT_BL32 := 0
  79. # Default dummy firmware encryption key
  80. ENC_KEY := 1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
  81. # Default dummy nonce for firmware encryption
  82. ENC_NONCE := 1234567890abcdef12345678
  83. # Build flag to treat usage of deprecated platform and framework APIs as error.
  84. ERROR_DEPRECATED := 0
  85. # Fault injection support
  86. FAULT_INJECTION_SUPPORT := 0
  87. # Flag to enable architectural features detection mechanism
  88. FEATURE_DETECTION := 0
  89. # Byte alignment that each component in FIP is aligned to
  90. FIP_ALIGN := 0
  91. # Default FIP file name
  92. FIP_NAME := fip.bin
  93. # Default FWU_FIP file name
  94. FWU_FIP_NAME := fwu_fip.bin
  95. # By default firmware encryption with SSK
  96. FW_ENC_STATUS := 0
  97. # For Chain of Trust
  98. GENERATE_COT := 0
  99. # Hint platform interrupt control layer that Group 0 interrupts are for EL3. By
  100. # default, they are for Secure EL1.
  101. GICV2_G0_FOR_EL3 := 0
  102. # Route NS External Aborts to EL3. Disabled by default; External Aborts are handled
  103. # by lower ELs.
  104. HANDLE_EA_EL3_FIRST_NS := 0
  105. # Secure hash algorithm flag, accepts 3 values: sha256, sha384 and sha512.
  106. # The default value is sha256.
  107. HASH_ALG := sha256
  108. # Whether system coherency is managed in hardware, without explicit software
  109. # operations.
  110. HW_ASSISTED_COHERENCY := 0
  111. # Flag to enable trapping of implementation defined sytem registers
  112. IMPDEF_SYSREG_TRAP := 0
  113. # Set the default algorithm for the generation of Trusted Board Boot keys
  114. KEY_ALG := rsa
  115. # Set the default key size in case KEY_ALG is rsa
  116. ifeq ($(KEY_ALG),rsa)
  117. KEY_SIZE := 2048
  118. endif
  119. # Option to build TF with Measured Boot support
  120. MEASURED_BOOT := 0
  121. # NS timer register save and restore
  122. NS_TIMER_SWITCH := 0
  123. # Include lib/libc in the final image
  124. OVERRIDE_LIBC := 0
  125. # Build PL011 UART driver in minimal generic UART mode
  126. PL011_GENERIC_UART := 0
  127. # By default, consider that the platform's reset address is not programmable.
  128. # The platform Makefile is free to override this value.
  129. PROGRAMMABLE_RESET_ADDRESS := 0
  130. # Flag used to choose the power state format: Extended State-ID or Original
  131. PSCI_EXTENDED_STATE_ID := 0
  132. # Enable PSCI OS-initiated mode support
  133. PSCI_OS_INIT_MODE := 0
  134. # Enable RAS Firmware First Handling Support
  135. RAS_FFH_SUPPORT := 0
  136. # By default, BL1 acts as the reset handler, not BL31
  137. RESET_TO_BL31 := 0
  138. # For Chain of Trust
  139. SAVE_KEYS := 0
  140. # Software Delegated Exception support
  141. SDEI_SUPPORT := 0
  142. # True Random Number firmware Interface support
  143. TRNG_SUPPORT := 0
  144. # Check to see if Errata ABI is supported
  145. ERRATA_ABI_SUPPORT := 0
  146. # Check to enable Errata ABI for platforms with non-arm interconnect
  147. ERRATA_NON_ARM_INTERCONNECT := 0
  148. # SMCCC PCI support
  149. SMC_PCI_SUPPORT := 0
  150. # Whether code and read-only data should be put on separate memory pages. The
  151. # platform Makefile is free to override this value.
  152. SEPARATE_CODE_AND_RODATA := 0
  153. # Put NOBITS sections (.bss, stacks, page tables, and coherent memory) in a
  154. # separate memory region, which may be discontiguous from the rest of BL31.
  155. SEPARATE_NOBITS_REGION := 0
  156. # Put BL2 NOLOAD sections (.bss, stacks, page tables) in a separate memory
  157. # region, platform Makefile is free to override this value.
  158. SEPARATE_BL2_NOLOAD_REGION := 0
  159. # If the BL31 image initialisation code is recalimed after use for the secondary
  160. # cores stack
  161. RECLAIM_INIT_CODE := 0
  162. # SPD choice
  163. SPD := none
  164. # Enable the Management Mode (MM)-based Secure Partition Manager implementation
  165. SPM_MM := 0
  166. # Use the FF-A SPMC implementation in EL3.
  167. SPMC_AT_EL3 := 0
  168. # Use SPM at S-EL2 as a default config for SPMD
  169. SPMD_SPM_AT_SEL2 := 1
  170. # Flag to introduce an infinite loop in BL1 just before it exits into the next
  171. # image. This is meant to help debugging the post-BL2 phase.
  172. SPIN_ON_BL1_EXIT := 0
  173. # Flags to build TF with Trusted Boot support
  174. TRUSTED_BOARD_BOOT := 0
  175. # Build option to choose whether Trusted Firmware uses Coherent memory or not.
  176. USE_COHERENT_MEM := 1
  177. # Build option to add debugfs support
  178. USE_DEBUGFS := 0
  179. # Build option to fconf based io
  180. ARM_IO_IN_DTB := 0
  181. # Build option to support SDEI through fconf
  182. SDEI_IN_FCONF := 0
  183. # Build option to support Secure Interrupt descriptors through fconf
  184. SEC_INT_DESC_IN_FCONF := 0
  185. # Build option to choose whether Trusted Firmware uses library at ROM
  186. USE_ROMLIB := 0
  187. # Build option to choose whether the xlat tables of BL images can be read-only.
  188. # Note that this only serves as a higher level option to PLAT_RO_XLAT_TABLES,
  189. # which is the per BL-image option that actually enables the read-only tables
  190. # API. The reason for having this additional option is to have a common high
  191. # level makefile where we can check for incompatible features/build options.
  192. ALLOW_RO_XLAT_TABLES := 0
  193. # Chain of trust.
  194. COT := tbbr
  195. # Use tbbr_oid.h instead of platform_oid.h
  196. USE_TBBR_DEFS := 1
  197. # Build verbosity
  198. V := 0
  199. # Whether to enable D-Cache early during warm boot. This is usually
  200. # applicable for platforms wherein interconnect programming is not
  201. # required to enable cache coherency after warm reset (eg: single cluster
  202. # platforms).
  203. WARMBOOT_ENABLE_DCACHE_EARLY := 0
  204. # Default SVE vector length to maximum architected value
  205. SVE_VECTOR_LEN := 2048
  206. SANITIZE_UB := off
  207. # For ARMv8.1 (AArch64) platforms, enabling this option selects the spinlock
  208. # implementation variant using the ARMv8.1-LSE compare-and-swap instruction.
  209. # Default: disabled
  210. USE_SPINLOCK_CAS := 0
  211. # Enable Link Time Optimization
  212. ENABLE_LTO := 0
  213. # This option will include EL2 registers in cpu context save and restore during
  214. # EL2 firmware entry/exit. Internal flag not meant for direct setting.
  215. # Use SPD=spmd and SPMD_SPM_AT_SEL2=1 or ENABLE_RME=1 to enable
  216. # CTX_INCLUDE_EL2_REGS.
  217. CTX_INCLUDE_EL2_REGS := 0
  218. # Enable Memory tag extension which is supported for architecture greater
  219. # than Armv8.5-A
  220. # By default it is set to "no"
  221. SUPPORT_STACK_MEMTAG := no
  222. # Select workaround for AT speculative behaviour.
  223. ERRATA_SPECULATIVE_AT := 0
  224. # Trap RAS error record access from Non secure
  225. RAS_TRAP_NS_ERR_REC_ACCESS := 0
  226. # Build option to create cot descriptors using fconf
  227. COT_DESC_IN_DTB := 0
  228. # Build option to provide OpenSSL directory path
  229. OPENSSL_DIR := /usr
  230. # Select the openssl binary provided in OPENSSL_DIR variable
  231. ifeq ("$(wildcard ${OPENSSL_DIR}/bin)", "")
  232. OPENSSL_BIN_PATH = ${OPENSSL_DIR}/apps
  233. else
  234. OPENSSL_BIN_PATH = ${OPENSSL_DIR}/bin
  235. endif
  236. # Build option to use the SP804 timer instead of the generic one
  237. USE_SP804_TIMER := 0
  238. # Build option to define number of firmware banks, used in firmware update
  239. # metadata structure.
  240. NR_OF_FW_BANKS := 2
  241. # Build option to define number of images in firmware bank, used in firmware
  242. # update metadata structure.
  243. NR_OF_IMAGES_IN_FW_BANK := 1
  244. # Disable Firmware update support by default
  245. PSA_FWU_SUPPORT := 0
  246. # By default, disable the mocking of RSS provided services
  247. PLAT_RSS_NOT_SUPPORTED := 0
  248. # Dynamic Root of Trust for Measurement support
  249. DRTM_SUPPORT := 0
  250. # Check platform if cache management operations should be performed.
  251. # Disabled by default.
  252. CONDITIONAL_CMO := 0
  253. # By default, disable SPMD Logical partitions
  254. ENABLE_SPMD_LP := 0