From 5a76a4ec5e6d6fec6035fbd70b83c2341b478424 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 16 Jun 2023 22:07:07 -0400 Subject: "make" targets for EFI boot testing --- partitions/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/partitions/Makefile b/partitions/Makefile index 20e9afe..5664e5e 100644 --- a/partitions/Makefile +++ b/partitions/Makefile @@ -25,8 +25,10 @@ usb: whole.img # QEMU_DISPLAY_OPTIONS = -nographic QEMU_DISPLAY_OPTIONS = -display gtk +QEMU_OPTIONS = $(QEMU_BIOS_OPTIONS) $(QEMU_DISPLAY_OPTIONS) + define emu - NO_AT_BRIDGE=1 qemu-system-x86_64 ${QEMU_DISPLAY_OPTIONS} -m 800 -enable-kvm -boot c \ + NO_AT_BRIDGE=1 qemu-system-x86_64 ${QEMU_OPTIONS} -m 800 -enable-kvm -boot c \ -drive file=$(1),media=disk,driver=raw \ $(persist) endef @@ -42,6 +44,13 @@ key: key.img sudo dd status=progress bs=1048576 if="$<" of="$$usb" && \ sudo $(call emu,"$$usb") +efi: QEMU_BIOS_OPTIONS = -bios /usr/share/ovmf/OVMF.fd +efi: emu + +efi-ventoy: QEMU_BIOS_OPTIONS = -bios /usr/share/ovmf/OVMF.fd +efi-ventoy: ventoy-efi-example.img + $(call emu,$<) + clean: rm -rf _build whole.img key.img -- cgit v1.2.3