[PATCH 1/2] edk2: add qemuvars builds to config

Gerd Hoffmann posted 2 patches 1 day ago
[PATCH 1/2] edk2: add qemuvars builds to config
Posted by Gerd Hoffmann 1 day ago
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 roms/edk2-build.config | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/roms/edk2-build.config b/roms/edk2-build.config
index 96ebc3bcd9e7..9caafa7a5f55 100644
--- a/roms/edk2-build.config
+++ b/roms/edk2-build.config
@@ -20,6 +20,11 @@ SECURE_BOOT_ENABLE       = TRUE
 SMM_REQUIRE              = TRUE
 BUILD_SHELL              = FALSE
 
+[opts.ovmf.sb.qemuvars]
+SECURE_BOOT_ENABLE       = TRUE
+QEMU_PV_VARS             = TRUE
+BUILD_SHELL              = FALSE
+
 [opts.armvirt.silent]
 DEBUG_PRINT_ERROR_LEVEL  = 0x80000000
 
@@ -55,6 +60,16 @@ plat = OvmfX64
 dest = ../pc-bios
 cpy1 = FV/OVMF_CODE.fd edk2-x86_64-secure-code.fd
 
+[build.ovmf.x86_64.qemuvars]
+desc = ovmf build (64-bit, secure boot)
+conf = OvmfPkg/OvmfPkgX64.dsc
+arch = X64
+opts = common
+       ovmf.sb.qemuvars
+plat = OvmfX64
+dest = ../pc-bios
+cpy1 = FV/OVMF.fd edk2-x86_64-qemuvars.fd
+
 [build.ovmf.microvm]
 desc = ovmf build for microvm
 conf = OvmfPkg/Microvm/MicrovmX64.dsc
@@ -81,6 +96,19 @@ cpy2 = FV/QEMU_VARS.fd edk2-aarch64-vars.fd
 pad1 = edk2-aarch64-code.fd  64m
 pad2 = edk2-aarch64-vars.fd  64m
 
+[build.armvirt.aa64.qemuvars]
+desc = ArmVirt build, 64-bit (arm v8)
+conf = ArmVirtPkg/ArmVirtQemu.dsc
+arch = AARCH64
+opts = common
+       armvirt.silent
+       ovmf.sb.qemuvars
+pcds = nx.broken.shim.grub
+plat = ArmVirtQemu-AArch64
+dest = ../pc-bios
+cpy1 = FV/QEMU_EFI.fd  edk2-aarch64-qemuvars.fd
+pad1 = edk2-aarch64-qemuvars.fd  64m
+
 ####################################################################################
 # riscv64
 
@@ -94,6 +122,15 @@ cpy2 = FV/RISCV_VIRT_VARS.fd  edk2-riscv64-vars.fd
 pad1 = edk2-riscv64-code.fd   32m
 pad2 = edk2-riscv64-vars.fd   32m
 
+#[build.riscv.qemu.qemuvars]
+#conf = OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc
+#arch = RISCV64
+#opts = ovmf.sb.qemuvars
+#plat = RiscVVirtQemu
+#dest = ../pc-bios
+#cpy1 = FV/RISCV_VIRT_CODE.fd  edk2-riscv-qemuvars.fd
+#pad1 = edk2-riscv-qemuvars.fd     32m
+
 ####################################################################################
 # LoongArch64
 
-- 
2.52.0