Config.in 4.8 KB

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