mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
For release notes since edk2-stable202411, see: https://github.com/tianocore/edk2/releases/tag/edk2-stable202502 https://github.com/tianocore/edk2/releases/tag/edk2-stable202505 Note: the edk2-stable202505 release note mention a security fix. This fix was already backported in Buildroot in a previous commit. For that reason, this bump is not marked as securiy, and also removes the backported patch and its associated _IGNORE_CVES entry. Those versions include fixes when using gcc 15 (host and target). This commit also updates the edk2-platforms and edk2-non-osi packages with the last commit merged at the edk2 release date (2025-05-23). In the case of edk2-platforms, the commit id used in this update is few days later, to include a fix for the Arm Sgi575 platform. Exact commit should have been [1] (to be exactly aligned to the edk2 tag date), but commit [2] is used instead. The package edk2-non-osi is updated to commit [3]. Also, the SocioNext SynQuacer platforms (including the DeveloperBox) were removed upstream in edk2-platforms commit [4]. This commit reflect that change by removing those platforms choices and associated runtime tests. This commit has been runtime tested with tests using EDK2 package, with commands: support/testing/run-tests \ -d dl -o output_folder \ tests.boot.test_edk2 \ tests.boot.test_grub.TestGrubAArch64EFI \ tests.boot.test_grub.TestGrubi386EFI \ tests.boot.test_grub.TestGrubRiscV64EFI \ tests.boot.test_grub.TestGrubX8664EFI \ tests.fs.test_iso9660.TestIso9660Grub2EFI \ tests.fs.test_iso9660.TestIso9660Grub2Hybrid \ tests.package.test_fwts It has also been runtime tested (by booting in qemu) with defconfigs using EDK2 package: qemu_aarch64_sbsa_defconfig qemu_riscv64_virt_efi_defconfig [1]2bfe3fa99e[2]92f7d69e8a[3]ea2040c2d4[4]aaba5807f1Cc: Dick Olsson <hi@senzilla.io> Cc: Romain Naour <romain.naour@smile.fr> Cc: Vincent Stehlé <vincent.stehle@arm.com> Tested-by: Vincent Stehlé <vincent.stehle@arm.com> Reviewed-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Julien Olivain <ju.o@free.fr>
136 lines
4.4 KiB
Plaintext
136 lines
4.4 KiB
Plaintext
config BR2_TARGET_EDK2_ARCH_SUPPORTS
|
|
bool
|
|
default y if BR2_aarch64
|
|
default y if BR2_i386
|
|
default y if BR2_RISCV_64
|
|
default y if BR2_x86_64
|
|
|
|
config BR2_TARGET_EDK2
|
|
bool "EDK2"
|
|
depends on BR2_TARGET_EDK2_ARCH_SUPPORTS
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
|
|
select BR2_PACKAGE_EDK2_PLATFORMS
|
|
help
|
|
EDK II is a modern, feature-rich, cross-platform firmware
|
|
development environment for the UEFI and PI specifications.
|
|
|
|
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
|
|
|
|
if BR2_TARGET_EDK2
|
|
|
|
choice
|
|
prompt "Platform"
|
|
default BR2_TARGET_EDK2_PLATFORM_OVMF_I386 if BR2_i386
|
|
default BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV if BR2_RISCV_64
|
|
default BR2_TARGET_EDK2_PLATFORM_OVMF_X64 if BR2_x86_64
|
|
default BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU if BR2_aarch64
|
|
|
|
config BR2_TARGET_EDK2_PLATFORM_OVMF_I386
|
|
bool "i386"
|
|
depends on BR2_i386 || BR2_x86_64
|
|
help
|
|
Platform configuration for a generic i386 target.
|
|
This platform will boot from flash address 0x0.
|
|
It should therefore be used as the first bootloader.
|
|
|
|
config BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV
|
|
bool "RISC-V"
|
|
depends on BR2_RISCV_64
|
|
help
|
|
Platform configuration for RISC-V QEMU targeting the Virt
|
|
machine. This platform will only boot from flash address
|
|
0x0. It should therefore be used as the first bootloader.
|
|
|
|
config BR2_TARGET_EDK2_PLATFORM_OVMF_X64
|
|
bool "x86-64"
|
|
depends on BR2_x86_64
|
|
help
|
|
Platform configuration for a generic x86-64 target.
|
|
This platform will boot from flash address 0x0.
|
|
It should therefore be used as the first bootloader.
|
|
|
|
config BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU
|
|
bool "ARM Virt Qemu (flash)"
|
|
depends on BR2_aarch64
|
|
help
|
|
Platform configuration for QEMU targeting the Virt machine.
|
|
This platform will only boot from flash address 0x0.
|
|
It should therefore be used as the first bootloader.
|
|
|
|
config BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU_KERNEL
|
|
bool "ARM Virt Qemu (kernel)"
|
|
depends on BR2_aarch64
|
|
help
|
|
Platform configuration for QEMU targeting the Virt machine.
|
|
This platform can boot from either flash address 0x0 or via
|
|
the Linux boot protocol. It can therefore be loaded by a
|
|
previous bootloader like ARM Trusted Firmware or OP-TEE.
|
|
|
|
config BR2_TARGET_EDK2_PLATFORM_ARM_SGI575
|
|
bool "ARM SGI-575"
|
|
depends on BR2_aarch64
|
|
help
|
|
Platform configuration for ARM SGI-575 on ARM's
|
|
Fixed Virtual Platform (FVP).
|
|
|
|
config BR2_TARGET_EDK2_PLATFORM_ARM_VEXPRESS_FVP_AARCH64
|
|
bool "ARM VExpress FVP Aarch64"
|
|
depends on BR2_aarch64
|
|
help
|
|
Platform configuration for ARM Versatile Express targeting
|
|
the Aarch64 Fixed Virtual Platform (FVP).
|
|
|
|
config BR2_TARGET_EDK2_PLATFORM_SOLIDRUN_ARMADA80X0MCBIN
|
|
bool "SolidRun MacchiatoBin"
|
|
depends on BR2_aarch64
|
|
depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
|
|
select BR2_PACKAGE_EDK2_NON_OSI
|
|
select BR2_PACKAGE_HOST_DTC
|
|
select BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP
|
|
help
|
|
Platform configuration for the SolidRun MacchiatoBin.
|
|
|
|
config BR2_TARGET_EDK2_PLATFORM_QEMU_SBSA
|
|
bool "QEMU SBSA"
|
|
depends on BR2_aarch64
|
|
depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
|
|
depends on !BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
|
|
help
|
|
Platform configuration for QEMU targeting the SBSA reference
|
|
machine.
|
|
|
|
comment "QEMU SBSA depends on ATF not using EDK2 as BL33"
|
|
depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33
|
|
|
|
endchoice
|
|
|
|
config BR2_TARGET_EDK2_OVMF_DEBUG_ON_SERIAL
|
|
bool "OVMF Debug on Serial"
|
|
depends on BR2_ENABLE_DEBUG
|
|
depends on BR2_TARGET_EDK2_PLATFORM_OVMF_I386 || \
|
|
BR2_TARGET_EDK2_PLATFORM_OVMF_X64
|
|
help
|
|
When EDK2 OVMF is built with debug, messages are printed to
|
|
IO port 0x402. Those messages are not shown in the normal
|
|
Qemu emulated serial port. Enabling this option will print
|
|
debug messages on the emulated serial port, potentially
|
|
mixing messages with UEFI serial console output.
|
|
|
|
See OVMF README:
|
|
https://github.com/tianocore/edk2/blob/master/OvmfPkg/README
|
|
|
|
config BR2_TARGET_EDK2_FD_NAME
|
|
string
|
|
default "OVMF" if BR2_TARGET_EDK2_PLATFORM_OVMF_I386
|
|
default "OVMF" if BR2_TARGET_EDK2_PLATFORM_OVMF_X64
|
|
default "QEMU_EFI" if BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU
|
|
default "QEMU_EFI" if BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU_KERNEL
|
|
default "BL33_AP_UEFI" if BR2_TARGET_EDK2_PLATFORM_ARM_SGI575
|
|
default "FVP_AARCH64_EFI" if BR2_TARGET_EDK2_PLATFORM_ARM_VEXPRESS_FVP_AARCH64
|
|
default "ARMADA_EFI" if BR2_TARGET_EDK2_PLATFORM_SOLIDRUN_ARMADA80X0MCBIN
|
|
|
|
endif
|
|
|
|
comment "EDK2 needs a toolchain w/ gcc >= 5"
|
|
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5
|