Config.in 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. config BR2_TARGET_ARM_TRUSTED_FIRMWARE
  2. bool "ARM Trusted Firmware (ATF)"
  3. depends on (BR2_ARM_CPU_ARMV8A || BR2_ARM_CPU_ARMV7A)
  4. help
  5. Enable this option if you want to build the ATF for your ARM
  6. based embedded device.
  7. https://github.com/ARM-software/arm-trusted-firmware
  8. if BR2_TARGET_ARM_TRUSTED_FIRMWARE
  9. choice
  10. prompt "ATF Version"
  11. help
  12. Select the specific ATF version you want to use
  13. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION
  14. bool "v2.10"
  15. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_8_VERSION
  16. bool "latest lts-v2.8.x"
  17. help
  18. Select the latest LTS v2.8.x version available
  19. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION
  20. bool "Custom version"
  21. help
  22. This option allows to use a specific official versions
  23. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL
  24. bool "Custom tarball"
  25. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT
  26. bool "Custom Git repository"
  27. endchoice
  28. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL
  29. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION
  30. string "URL of custom ATF tarball"
  31. endif
  32. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE
  33. string "ATF version"
  34. depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION
  35. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_VERSION
  36. string
  37. default "v2.10" if BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION
  38. default "lts-v2.8.13" if BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_8_VERSION
  39. default "custom" if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL
  40. default BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION \
  41. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT
  42. default BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE \
  43. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION
  44. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT
  45. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL
  46. string "URL of custom repository"
  47. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION
  48. string "Custom repository version"
  49. help
  50. Revision to use in the typical format used by Git
  51. E.G. a sha id, a tag, ..
  52. endif
  53. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM
  54. string "ATF platform"
  55. help
  56. Target platform to build for.
  57. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_TARGET_BOARD
  58. string "ATF target board"
  59. help
  60. Target board to build for. In many cases, this can be left
  61. empty.
  62. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_DTS_PATH
  63. string "Device Tree Source file paths"
  64. help
  65. Space-separated list of paths to device tree source files
  66. that will be copied to fdts/ before starting the build.
  67. To use this device tree source file, the ATF configuration
  68. file must refer to it.
  69. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP
  70. bool "Build FIP image"
  71. help
  72. This option enables building the FIP image (Firmware Image
  73. Package). This is typically the image format used by
  74. platforms were ATF encapsulates the second stage bootloader
  75. (such as U-Boot).
  76. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
  77. bool "Build BL31 image"
  78. help
  79. This option enables building the BL31 image. This is
  80. typically used on platforms where another bootloader (e.g
  81. U-Boot) encapsulates ATF BL31.
  82. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31_UBOOT
  83. bool "Build BL31 U-Boot image"
  84. select BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
  85. help
  86. Generates a U-Boot image named atf-uboot.ub containing
  87. bl31.bin. This is used for example by the Xilinx version of
  88. U-Boot SPL to load ATF on the ZynqMP SoC.
  89. choice
  90. prompt "BL32"
  91. default BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_DEFAULT
  92. help
  93. Select BL32 stage for the trusted firmware
  94. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_DEFAULT
  95. bool "Default"
  96. help
  97. With this option selected, ATF will not use any BL32 stage,
  98. unless if one is explicitly chosen using the SPD (for
  99. AArch64) or AARCH32_SP (for AArch32) variables, which can be
  100. passed through
  101. BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES.
  102. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE
  103. bool "OP-TEE OS"
  104. depends on BR2_TARGET_OPTEE_OS
  105. help
  106. This option allows to embed OP-TEE OS as the BL32 part of
  107. the ARM Trusted Firmware boot sequence.
  108. endchoice
  109. choice
  110. prompt "BL33"
  111. default BR2_TARGET_ARM_TRUSTED_FIRMWARE_NONE_AS_BL33
  112. help
  113. Select the image to include as BL33.
  114. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_NONE_AS_BL33
  115. bool "None"
  116. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BAREBOX_AS_BL33
  117. bool "Barebox"
  118. depends on BR2_TARGET_BAREBOX
  119. help
  120. This option allows to embed the Barebox generic BL33 image in
  121. the ARM Trusted Firmware. It ensures that the Barebox package
  122. gets built before ATF, and that the appropriate BL33
  123. variable pointing to the generic bl33 image is passed
  124. when building ATF.
  125. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33
  126. bool "U-Boot"
  127. depends on BR2_TARGET_UBOOT
  128. help
  129. This option allows to embed u-boot.bin as the BL33 part of
  130. the ARM Trusted Firmware. It ensures that the u-boot package
  131. gets built before ATF, and that the appropriate BL33
  132. variable pointing to u-boot.bin is passed when building ATF.
  133. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
  134. bool "EDK2"
  135. depends on BR2_TARGET_EDK2
  136. help
  137. This option allows to embed EDK2 as the BL33 part of
  138. the ARM Trusted Firmware. It ensures that the EDK2 package
  139. gets built before ATF, and that the appropriate BL33
  140. variable pointing to the EDK2 is passed when building ATF.
  141. Do not choose this option if you intend to build ATF and EDK2
  142. for the 'qemu_sbsa' platform. In this case, due to the EDK2
  143. build system, the dependency between ATF and EDK is reversed.
  144. endchoice
  145. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_BAREBOX_AS_BL33
  146. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BAREBOX_BL33_IMAGE
  147. string "Barebox BL33 image name"
  148. default "*-generic-bl33.img"
  149. help
  150. Name of the Barebox BL33 image to include in ATF, it must
  151. have been installed to BINARIES_DIR by the Barebox package.
  152. endif
  153. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33
  154. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE
  155. string "U-Boot BL33 image name"
  156. default "u-boot.bin"
  157. help
  158. Name of the U-Boot BL33 image to include in ATF, it must
  159. have been installed to BINARIES_DIR by the U-Boot package.
  160. endif
  161. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_RCW
  162. bool "Include NXP RCW in BL2"
  163. depends on BR2_PACKAGE_HOST_QORIQ_RCW
  164. help
  165. Include the NXP RCW (Reset Control Word) in BL2. See
  166. package/qoriq-rcw/ for more details. This is mostly useful
  167. on NXP LayerScape platforms.
  168. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS
  169. string "Additional ATF make targets"
  170. help
  171. Additional targets for the ATF build
  172. E.G. When using the QorIQ custom ATF repository from NXP,
  173. the target 'pbl' can be used to build the pbl binary.
  174. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES
  175. string "Additional ATF build variables"
  176. help
  177. Additional parameters for the ATF build
  178. E.G. 'DEBUG=1 LOG_LEVEL=20'
  179. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_DEBUG
  180. bool "Build in debug mode"
  181. help
  182. Enable this option to build ATF with DEBUG=1.
  183. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES
  184. string "Binary boot images"
  185. default "*.bin"
  186. help
  187. Names of generated image files that are installed in the
  188. output images/ directory.
  189. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC
  190. bool "Needs dtc"
  191. select BR2_PACKAGE_HOST_DTC
  192. help
  193. Select this option if your ATF board configuration
  194. requires the Device Tree compiler to be available.
  195. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN
  196. bool "Needs arm-none-eabi toolchain"
  197. depends on BR2_aarch64
  198. depends on BR2_HOSTARCH = "x86_64"
  199. help
  200. Select this option if your ATF board configuration requires
  201. an ARM32 bare metal toolchain to be available.
  202. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_SSP
  203. bool "Build with SSP"
  204. depends on BR2_TOOLCHAIN_HAS_SSP
  205. depends on !BR2_SSP_NONE
  206. help
  207. Say 'y' here if you want to build ATF with SSP.
  208. Your board must have SSP support in ATF: it must have an
  209. implementation for plat_get_stack_protector_canary().
  210. If you say 'y', the SSP level will be the level selected
  211. by the global SSP setting.
  212. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_SSP_LEVEL
  213. string
  214. default "default" if BR2_SSP_REGULAR
  215. default "strong" if BR2_SSP_STRONG
  216. default "all" if BR2_SSP_ALL
  217. endif