From 4baff8e17b8f62f0e399d95b7fdcadc0c1a9719c Mon Sep 17 00:00:00 2001 From: Zejun Zhao Date: Sun, 6 Apr 2025 18:05:47 +0800 Subject: [PATCH] Fallback to BIOS when using legacy boot protocols --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 94b50d674..3317c833a 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,14 @@ BOOT_PROTOCOL = linux-efi-handover64 CARGO_OSDK_ARGS += --scheme tdx endif +ifeq ($(BOOT_PROTOCOL), linux-legacy32) +BOOT_METHOD = qemu-direct +OVMF = off +else ifeq ($(BOOT_PROTOCOL), multiboot) +BOOT_METHOD = qemu-direct +OVMF = off +endif + ifneq ($(SCHEME), "") CARGO_OSDK_ARGS += --scheme $(SCHEME) else