2
1

Config.in 4.6 KB

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