xref: /OK3568_Linux_fs/buildroot/boot/edk2/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config 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
7config 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
16	  https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
17
18if BR2_TARGET_EDK2
19
20choice
21	prompt "Platform"
22	default BR2_TARGET_EDK2_PLATFORM_OVMF_I386 if BR2_i386
23	default BR2_TARGET_EDK2_PLATFORM_OVMF_X64 if BR2_x86_64
24	default BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU if BR2_aarch64
25
26config 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	  It should therefore be used as the first bootloader.
33
34config BR2_TARGET_EDK2_PLATFORM_OVMF_X64
35	bool "x86-64"
36	depends on BR2_x86_64
37	help
38	  Platform configuration for a generic x86-64 target.
39	  This platform will boot from flash address 0x0.
40	  It should therefore be used as the first bootloader.
41
42config BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU
43	bool "ARM Virt Qemu (flash)"
44	depends on BR2_aarch64
45	help
46	  Platform configuration for QEMU targeting the Virt machine.
47	  This platform will only boot from flash address 0x0.
48	  It should therefore be used as the first bootloader.
49
50config BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU_KERNEL
51	bool "ARM Virt Qemu (kernel)"
52	depends on BR2_aarch64
53	help
54	  Platform configuration for QEMU targeting the Virt machine.
55	  This platform can boot from either flash address 0x0 or via
56	  the Linux boot protocol. It can therefore be loaded by a
57	  previous bootloader like ARM Trusted Firmware or OP-TEE.
58
59config 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
66config BR2_TARGET_EDK2_PLATFORM_ARM_VEXPRESS_FVP_AARCH64
67	bool "ARM VExpress FVP Aarch64"
68	depends on BR2_aarch64
69	help
70	  Platform configuration for ARM Versatile Express targeting
71	  the Aarch64 Fixed Virtual Platform (FVP).
72
73config BR2_TARGET_EDK2_PLATFORM_SOCIONEXT_DEVELOPERBOX
74	bool "Socionext DeveloperBox"
75	depends on BR2_aarch64
76	depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
77	depends on !BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
78	select BR2_PACKAGE_HOST_DTC
79	select BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP
80	help
81	  Platform configuration for Socionext SynQuacer DeveloperBox
82	  (SC2A11).
83
84comment "Socionext DeveloperBox depends on ATF not using EDK2 as BL33"
85	depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
86
87config BR2_TARGET_EDK2_PLATFORM_SOLIDRUN_ARMADA80X0MCBIN
88	bool "SolidRun MacchiatoBin"
89	depends on BR2_aarch64
90	depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
91	select BR2_PACKAGE_HOST_DTC
92	select BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP
93	help
94	  Platform configuration for the SolidRun MacchiatoBin.
95
96config BR2_TARGET_EDK2_PLATFORM_QEMU_SBSA
97	bool "QEMU SBSA"
98	depends on BR2_aarch64
99	depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
100	depends on !BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
101	help
102	  Platform configuration for QEMU targeting the SBSA reference
103	  machine.
104
105comment "QEMU SBSA depends on ATF not using EDK2 as BL33"
106	depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
107
108endchoice
109
110config BR2_TARGET_EDK2_FD_NAME
111	string
112	default "OVMF" if BR2_TARGET_EDK2_PLATFORM_OVMF_I386
113	default "OVMF" if BR2_TARGET_EDK2_PLATFORM_OVMF_X64
114	default "QEMU_EFI" if BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU
115	default "QEMU_EFI" if BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU_KERNEL
116	default "BL33_AP_UEFI" if BR2_TARGET_EDK2_PLATFORM_ARM_SGI575
117	default "FVP_AARCH64_EFI" if BR2_TARGET_EDK2_PLATFORM_ARM_VEXPRESS_FVP_AARCH64
118	default "FVP_AARCH64_EFI" if BR2_TARGET_EDK2_PLATFORM_SOCIONEXT_DEVELOPERBOX
119	default "ARMADA_EFI" if BR2_TARGET_EDK2_PLATFORM_SOLIDRUN_ARMADA80X0MCBIN
120
121endif
122
123comment "EDK2 needs a toolchain w/ gcc >= 5"
124	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5
125