Config.in 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. config BR2_TARGET_EDK2_ARCH_SUPPORTS
  2. bool
  3. default y if BR2_aarch64
  4. default y if BR2_i386
  5. default y if BR2_RISCV_64
  6. default y if BR2_x86_64
  7. config BR2_TARGET_EDK2
  8. bool "EDK2"
  9. depends on BR2_TARGET_EDK2_ARCH_SUPPORTS
  10. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
  11. select BR2_PACKAGE_EDK2_PLATFORMS
  12. help
  13. EDK II is a modern, feature-rich, cross-platform firmware
  14. development environment for the UEFI and PI specifications.
  15. https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
  16. if BR2_TARGET_EDK2
  17. choice
  18. prompt "Platform"
  19. default BR2_TARGET_EDK2_PLATFORM_OVMF_I386 if BR2_i386
  20. default BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV if BR2_RISCV_64
  21. default BR2_TARGET_EDK2_PLATFORM_OVMF_X64 if BR2_x86_64
  22. default BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU if BR2_aarch64
  23. config BR2_TARGET_EDK2_PLATFORM_OVMF_I386
  24. bool "i386"
  25. depends on BR2_i386 || BR2_x86_64
  26. help
  27. Platform configuration for a generic i386 target.
  28. This platform will boot from flash address 0x0.
  29. It should therefore be used as the first bootloader.
  30. config BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV
  31. bool "RISC-V"
  32. depends on BR2_RISCV_64
  33. help
  34. Platform configuration for RISC-V QEMU targeting the Virt
  35. machine. This platform will only boot from flash address
  36. 0x0. It should therefore be used as the first bootloader.
  37. config BR2_TARGET_EDK2_PLATFORM_OVMF_X64
  38. bool "x86-64"
  39. depends on BR2_x86_64
  40. help
  41. Platform configuration for a generic x86-64 target.
  42. This platform will boot from flash address 0x0.
  43. It should therefore be used as the first bootloader.
  44. config BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU
  45. bool "ARM Virt Qemu (flash)"
  46. depends on BR2_aarch64
  47. help
  48. Platform configuration for QEMU targeting the Virt machine.
  49. This platform will only boot from flash address 0x0.
  50. It should therefore be used as the first bootloader.
  51. config BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU_KERNEL
  52. bool "ARM Virt Qemu (kernel)"
  53. depends on BR2_aarch64
  54. help
  55. Platform configuration for QEMU targeting the Virt machine.
  56. This platform can boot from either flash address 0x0 or via
  57. the Linux boot protocol. It can therefore be loaded by a
  58. previous bootloader like ARM Trusted Firmware or OP-TEE.
  59. config BR2_TARGET_EDK2_PLATFORM_ARM_SGI575
  60. bool "ARM SGI-575"
  61. depends on BR2_aarch64
  62. help
  63. Platform configuration for ARM SGI-575 on ARM's
  64. Fixed Virtual Platform (FVP).
  65. config BR2_TARGET_EDK2_PLATFORM_ARM_VEXPRESS_FVP_AARCH64
  66. bool "ARM VExpress FVP Aarch64"
  67. depends on BR2_aarch64
  68. help
  69. Platform configuration for ARM Versatile Express targeting
  70. the Aarch64 Fixed Virtual Platform (FVP).
  71. config BR2_TARGET_EDK2_PLATFORM_SOCIONEXT_DEVELOPERBOX
  72. bool "Socionext DeveloperBox"
  73. depends on BR2_aarch64
  74. depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
  75. depends on !BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
  76. select BR2_PACKAGE_HOST_DTC
  77. select BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP
  78. help
  79. Platform configuration for Socionext SynQuacer DeveloperBox
  80. (SC2A11).
  81. comment "Socionext DeveloperBox depends on ATF not using EDK2 as BL33"
  82. depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
  83. config BR2_TARGET_EDK2_PLATFORM_SOLIDRUN_ARMADA80X0MCBIN
  84. bool "SolidRun MacchiatoBin"
  85. depends on BR2_aarch64
  86. depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
  87. select BR2_PACKAGE_EDK2_NON_OSI
  88. select BR2_PACKAGE_HOST_DTC
  89. select BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP
  90. help
  91. Platform configuration for the SolidRun MacchiatoBin.
  92. config BR2_TARGET_EDK2_PLATFORM_QEMU_SBSA
  93. bool "QEMU SBSA"
  94. depends on BR2_aarch64
  95. depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
  96. depends on !BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
  97. help
  98. Platform configuration for QEMU targeting the SBSA reference
  99. machine.
  100. comment "QEMU SBSA depends on ATF not using EDK2 as BL33"
  101. depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
  102. endchoice
  103. config BR2_TARGET_EDK2_OVMF_DEBUG_ON_SERIAL
  104. bool "OVMF Debug on Serial"
  105. depends on BR2_ENABLE_DEBUG
  106. depends on BR2_TARGET_EDK2_PLATFORM_OVMF_I386 || \
  107. BR2_TARGET_EDK2_PLATFORM_OVMF_X64
  108. help
  109. When EDK2 OVMF is built with debug, messages are printed to
  110. IO port 0x402. Those messages are not shown in the normal
  111. Qemu emulated serial port. Enabling this option will print
  112. debug messages on the emulated serial port, potentially
  113. mixing messages with UEFI serial console output.
  114. See OVMF README:
  115. https://github.com/tianocore/edk2/blob/master/OvmfPkg/README
  116. config BR2_TARGET_EDK2_FD_NAME
  117. string
  118. default "OVMF" if BR2_TARGET_EDK2_PLATFORM_OVMF_I386
  119. default "OVMF" if BR2_TARGET_EDK2_PLATFORM_OVMF_X64
  120. default "QEMU_EFI" if BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU
  121. default "QEMU_EFI" if BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU_KERNEL
  122. default "BL33_AP_UEFI" if BR2_TARGET_EDK2_PLATFORM_ARM_SGI575
  123. default "FVP_AARCH64_EFI" if BR2_TARGET_EDK2_PLATFORM_ARM_VEXPRESS_FVP_AARCH64
  124. default "FVP_AARCH64_EFI" if BR2_TARGET_EDK2_PLATFORM_SOCIONEXT_DEVELOPERBOX
  125. default "ARMADA_EFI" if BR2_TARGET_EDK2_PLATFORM_SOLIDRUN_ARMADA80X0MCBIN
  126. endif
  127. comment "EDK2 needs a toolchain w/ gcc >= 5"
  128. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5