Config.in 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. BR2_TARGET_UBOOT
  5. help
  6. Enable this option if you want to build the ATF for your ARM
  7. based embedded device.
  8. https://github.com/ARM-software/arm-trusted-firmware
  9. if BR2_TARGET_ARM_TRUSTED_FIRMWARE
  10. choice
  11. prompt "ATF Version"
  12. help
  13. Select the specific ATF version you want to use
  14. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION
  15. bool "v2.2"
  16. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION
  17. bool "Custom version"
  18. help
  19. This option allows to use a specific official versions
  20. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL
  21. bool "Custom tarball"
  22. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT
  23. bool "Custom Git repository"
  24. endchoice
  25. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL
  26. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION
  27. string "URL of custom ATF tarball"
  28. endif
  29. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE
  30. string "ATF version"
  31. depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION
  32. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_VERSION
  33. string
  34. default "v2.2" if BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION
  35. default "custom" if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL
  36. default BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION \
  37. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT
  38. default BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE \
  39. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION
  40. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT
  41. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL
  42. string "URL of custom repository"
  43. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION
  44. string "Custom repository version"
  45. help
  46. Revision to use in the typical format used by Git
  47. E.G. a sha id, a tag, ..
  48. endif
  49. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM
  50. string "ATF platform"
  51. help
  52. Target plaform to build for.
  53. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP
  54. bool "Build FIP image"
  55. help
  56. This option enables building the FIP image (Firmware Image
  57. Package). This is typically the image format used by
  58. platforms were ATF encapsulates the second stage bootloader
  59. (such as U-Boot).
  60. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
  61. bool "Build BL31 image"
  62. help
  63. This option enables building the BL31 image. This is
  64. typically used on platforms where another bootloader (e.g
  65. U-Boot) encapsulates ATF BL31.
  66. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31_UBOOT
  67. bool "Build BL31 U-Boot image"
  68. select BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
  69. help
  70. Generates a U-Boot image named atf-uboot.ub containing
  71. bl31.bin. This is used for example by the Xilinx version of
  72. U-Boot SPL to load ATF on the ZynqMP SoC.
  73. choice
  74. prompt "BL32"
  75. default BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_DEFAULT
  76. help
  77. Select BL32 stage for the trusted firmware
  78. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_DEFAULT
  79. bool "Default"
  80. help
  81. With this option selected, ATF will not use any BL32 stage,
  82. unless if one is explicitly chosen using the SPD (for
  83. AArch64) or AARCH32_SP (for AArch32) variables, which can be
  84. passed through
  85. BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES.
  86. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE
  87. bool "OP-TEE OS"
  88. depends on BR2_TARGET_OPTEE_OS
  89. help
  90. This option allows to embed OP-TEE OS as the BL32 part of
  91. the ARM Trusted Firmware boot sequence.
  92. endchoice
  93. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33
  94. bool "Use U-Boot as BL33"
  95. depends on BR2_TARGET_UBOOT
  96. help
  97. This option allows to embed u-boot.bin as the BL33 part of
  98. the ARM Trusted Firmware. It ensures that the u-boot package
  99. gets built before ATF, and that the appropriate BL33
  100. variable pointing to u-boot.bin is passed when building ATF.
  101. if BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33
  102. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE
  103. string "U-Boot BL33 image name"
  104. default "u-boot.bin"
  105. help
  106. Name of the U-Boot BL33 image to include in ATF, it must
  107. have been installed to BINARIES_DIR by the U-Boot package.
  108. endif
  109. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS
  110. string "Additional ATF make targets"
  111. help
  112. Additional targets for the ATF build
  113. E.G. When using the QorIQ custom ATF repository from NXP,
  114. the target 'pbl' can be used to build the pbl binary.
  115. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES
  116. string "Additional ATF build variables"
  117. help
  118. Additional parameters for the ATF build
  119. E.G. 'DEBUG=1 LOG_LEVEL=20'
  120. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_DEBUG
  121. bool "Build in debug mode"
  122. help
  123. Enable this option to build ATF with DEBUG=1.
  124. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES
  125. string "Binary boot images"
  126. default "*.bin"
  127. help
  128. Names of generated image files that are installed in the
  129. output images/ directory.
  130. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC
  131. bool "Needs dtc"
  132. select BR2_PACKAGE_HOST_DTC
  133. help
  134. Select this option if your ATF board configuration
  135. requires the Device Tree compiler to be available.
  136. config BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN
  137. bool "Needs arm-none-eabi toolchain"
  138. depends on BR2_aarch64
  139. depends on BR2_HOSTARCH = "x86_64"
  140. help
  141. Select this option if your ATF board configuration requires
  142. an ARM32 bare metal toolchain to be available.
  143. endif