Skip to content

Commit

Permalink
Makefile: add boot_gfx target
Browse files Browse the repository at this point in the history
This can be used to boot KTF under QEMU with display.

Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel committed Aug 23, 2023
1 parent e59baa7 commit 93da4a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +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_KERNEL := -append "param1 param2 param3"
QEMU_PARAMS_DEBUG := -s &

Expand All @@ -265,6 +266,11 @@ endif

.PHONY: boot
boot: $(ISO_FILE)
@echo "QEMU START"
$(VERBOSE) $(QEMU_BIN) -cdrom $(ISO_FILE) $(QEMU_PARAMS) $(QEMU_PARAMS_NOGFX)

.PHONY: boot_gfx
boot_gfx: $(ISO_FILE)
@echo "QEMU START"
$(VERBOSE) $(QEMU_BIN) -cdrom $(ISO_FILE) $(QEMU_PARAMS)

Expand Down

0 comments on commit 93da4a7

Please sign in to comment.