Config.in 8.3 KB

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