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