Makefile: debug flags for qemu

This commit is contained in:
Matheus
2023-04-08 17:15:54 -03:00
parent d8141261cb
commit f78650f42e
+2 -2
View File
@@ -2,7 +2,7 @@ ISODIR=$(shell pwd)/iso
ISO=astral.iso
LIMINEDIR=$(shell pwd)/host-pkgs/limine/usr/local/share/limine/
KERNEL=$(shell pwd)/pkgs/astral/boot/astral
QEMUFLAGS=-cdrom $(ISO) -m 2G -smp cpus=2 -monitor stdio -debugcon file:/dev/stdout -serial file:/dev/stdout # hacky but works :')
QEMUFLAGS=-cdrom $(ISO) -m 2G -smp cpus=2 -no-shutdown -no-reboot -monitor stdio -debugcon file:/dev/stdout -serial file:/dev/stdout # hacky but works :')
.PHONY: all kernel clean clean-kernel iso
@@ -35,7 +35,7 @@ clean:
rm jinx
run:
qemu-system-x86_64 $(QEMUFLAGS)
qemu-system-x86_64 $(QEMUFLAGS) -d int
run-kvm:
qemu-system-x86_64 $(QEMUFLAGS) -enable-kvm -cpu host