Support booting both BIOS and UEFI from the same image

This commit is contained in:
Jeremy Soller 2022-08-28 15:24:34 -06:00
parent b9b54f7c71
commit 68c91c801f
5 changed files with 103 additions and 83 deletions

View file

@ -34,18 +34,14 @@ endif
ifeq ($(efi),yes)
FIRMWARE=build/firmware.rom
QEMUFLAGS+=-bios build/firmware.rom
ifeq ($(live),yes)
HARDDRIVE=build/livedisk-efi.bin
else
HARDDRIVE=build/harddrive-efi.bin
endif
else
FIRMWARE=
ifeq ($(live),yes)
HARDDRIVE=build/livedisk.bin
else
HARDDRIVE=build/harddrive.bin
endif
endif
ifeq ($(live),yes)
HARDDRIVE=build/livedisk.bin
else
HARDDRIVE=build/harddrive.bin
endif
QEMU=SDL_VIDEO_X11_DGAMOUSE=0 qemu-system-$(QEMU_ARCH)