summaryrefslogtreecommitdiffstats
path: root/roms
diff options
context:
space:
mode:
authorGerd Hoffmann2022-03-07 16:11:29 +0100
committerGerd Hoffmann2022-03-15 07:18:30 +0100
commit3ce48e499b96a603e16aa249ff12fbe6893a6314 (patch)
treed69f1a53d2c33bb6384ee2df8af17823c88e8c64 /roms
parentedk2: .git can be a file (diff)
downloadqemu-3ce48e499b96a603e16aa249ff12fbe6893a6314.tar.gz
qemu-3ce48e499b96a603e16aa249ff12fbe6893a6314.tar.xz
qemu-3ce48e499b96a603e16aa249ff12fbe6893a6314.zip
edk2: add microvm build
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'roms')
-rw-r--r--roms/Makefile.edk211
1 files changed, 11 insertions, 0 deletions
diff --git a/roms/Makefile.edk2 b/roms/Makefile.edk2
index 6801ea62e8..485f2244b1 100644
--- a/roms/Makefile.edk2
+++ b/roms/Makefile.edk2
@@ -33,6 +33,7 @@ flashdevs := \
i386-secure-code \
x86_64-code \
x86_64-secure-code \
+ x86_64-microvm \
\
arm-vars \
i386-vars
@@ -145,6 +146,16 @@ submodules:
-D SMM_REQUIRE
cp edk2/Build/Ovmf3264/$(target)_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@
+../pc-bios/edk2-x86_64-microvm.fd: submodules
+ +./edk2-build.sh \
+ x86_64 \
+ --arch=X64 \
+ --platform=OvmfPkg/Microvm/MicrovmX64.dsc \
+ -D NETWORK_IP6_ENABLE \
+ -D NETWORK_HTTP_BOOT_ENABLE \
+ -D NETWORK_TLS_ENABLE
+ cp edk2/Build/MicrovmX64/$(target)_$(call toolchain,x86_64)/FV/MICROVM.fd $@
+
../pc-bios/edk2-arm-vars.fd: ../pc-bios/edk2-arm-code.fd
cp edk2/Build/ArmVirtQemu-ARM/$(target)_$(call toolchain,arm)/FV/QEMU_VARS.fd \
$@