From 90acc32bae82becfd704580b7d483095100bc0cf Mon Sep 17 00:00:00 2001 From: Pawel Wieczorkiewicz Date: Wed, 23 Aug 2023 10:55:32 +0200 Subject: [PATCH] Makefile: add boot_gfx target This can be used to boot KTF under QEMU with display. Signed-off-by: Pawel Wieczorkiewicz --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 976af3e4..7b7d6d00 100644 --- a/Makefile +++ b/Makefile @@ -241,9 +241,11 @@ ifeq ($(HAVE_KVM), kvm) QEMU_PARAMS += -enable-kvm endif # HAVE_KVM QEMU_PARAMS += -m 128 -QEMU_PARAMS += -display none -vga none -vnc none QEMU_PARAMS += -serial stdio QEMU_PARAMS += -smp cpus=2 +QEMU_PARAMS_NOGFX := -display none -vga none -vnc none +QEMU_PARAMS_GFX := $(QEMU_PARAMS) +QEMU_PARAMS += $(QEMU_PARAMS_NOGFX) QEMU_PARAMS_KERNEL := -append "param1 param2 param3" QEMU_PARAMS_DEBUG := -s & @@ -268,6 +270,11 @@ boot: $(ISO_FILE) @echo "QEMU START" $(VERBOSE) $(QEMU_BIN) -cdrom $(ISO_FILE) $(QEMU_PARAMS) +.PHONY: boot_gfx +boot_gfx: $(ISO_FILE) + @echo "QEMU START" + $(VERBOSE) $(QEMU_BIN) -cdrom $(ISO_FILE) $(QEMU_PARAMS_GFX) + .PHONY: boot_debug boot_debug: $(ISO_FILE) $(QEMU_BIN) -cdrom $(ISO_FILE) $(QEMU_PARAMS) $(QEMU_PARAMS_DEBUG)