Skip to content

Commit

Permalink
build/run-uefi: Use Limine's nightly EDK2 OVMF builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Aug 21, 2024
1 parent ad2778f commit 59077e2
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,22 @@ run-kvm: vinix.iso
run-hvf: vinix.iso
qemu-system-x86_64 -accel hvf -cpu host $(QEMUFLAGS)

ovmf:
ovmf/ovmf-code-x86_64.fd:
mkdir -p ovmf
cd ovmf && curl -o OVMF.fd https://retrage.github.io/edk2-nightly/bin/RELEASEX64_OVMF.fd
curl -Lo $@ https://github.com/limine-bootloader/edk2-ovmf-nightly/releases/latest/download/ovmf-code-x86_64.fd

ovmf/ovmf-vars-x86_64.fd:
mkdir -p ovmf
curl -Lo $@ https://github.com/limine-bootloader/edk2-ovmf-nightly/releases/latest/download/ovmf-vars-x86_64.fd

.PHONY: run-uefi
run-uefi: vinix.iso ovmf
qemu-system-x86_64 -enable-kvm -cpu host $(QEMUFLAGS) -bios ovmf/OVMF.fd
run-uefi: vinix.iso ovmf/ovmf-code-x86_64.fd ovmf/ovmf-vars-x86_64.fd
qemu-system-x86_64 \
-enable-kvm \
-cpu host \
-drive if=pflash,unit=0,format=raw,file=ovmf/ovmf-code-x86_64.fd,readonly=on \
-drive if=pflash,unit=1,format=raw,file=ovmf/ovmf-vars-x86_64.fd \
$(QEMUFLAGS)

.PHONY: run-bochs
run-bochs: vinix.iso
Expand Down

0 comments on commit 59077e2

Please sign in to comment.