summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2023-06-16 22:07:07 -0400
committerAndrew Cady <d@jerkface.net>2023-06-16 22:07:07 -0400
commit0b4c41d1fb932246463e253b93ab312794d7179f (patch)
treeff9e12d7cc58b0fec7ae9cfb68afb900118df0c3
parentbbeab7821e05955ea000b3348542f9fe6de47a97 (diff)
"make" targets for EFI boot testing
-rw-r--r--partitions/Makefile11
1 files changed, 10 insertions, 1 deletions
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
25# QEMU_DISPLAY_OPTIONS = -nographic 25# QEMU_DISPLAY_OPTIONS = -nographic
26QEMU_DISPLAY_OPTIONS = -display gtk 26QEMU_DISPLAY_OPTIONS = -display gtk
27 27
28QEMU_OPTIONS = $(QEMU_BIOS_OPTIONS) $(QEMU_DISPLAY_OPTIONS)
29
28define emu 30define emu
29 NO_AT_BRIDGE=1 qemu-system-x86_64 ${QEMU_DISPLAY_OPTIONS} -m 800 -enable-kvm -boot c \ 31 NO_AT_BRIDGE=1 qemu-system-x86_64 ${QEMU_OPTIONS} -m 800 -enable-kvm -boot c \
30 -drive file=$(1),media=disk,driver=raw \ 32 -drive file=$(1),media=disk,driver=raw \
31 $(persist) 33 $(persist)
32endef 34endef
@@ -42,6 +44,13 @@ key: key.img
42 sudo dd status=progress bs=1048576 if="$<" of="$$usb" && \ 44 sudo dd status=progress bs=1048576 if="$<" of="$$usb" && \
43 sudo $(call emu,"$$usb") 45 sudo $(call emu,"$$usb")
44 46
47efi: QEMU_BIOS_OPTIONS = -bios /usr/share/ovmf/OVMF.fd
48efi: emu
49
50efi-ventoy: QEMU_BIOS_OPTIONS = -bios /usr/share/ovmf/OVMF.fd
51efi-ventoy: ventoy-efi-example.img
52 $(call emu,$<)
53
45clean: 54clean:
46 rm -rf _build whole.img key.img 55 rm -rf _build whole.img key.img
47 56