From b0c9ffa82ea26fa68f9a5ece89198ccfcf392980 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 9 Aug 2021 20:18:20 +0200 Subject: silence the QEMU debug output i'm using bochs for debugging now anyways, and this will be useful for serial output --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 959672e..31255c8 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ CFLAGS = -std=gnu99 -ffreestanding -O2 -Wall -Wextra CFLAGS += -mgeneral-regs-only CFLAGS += -Isrc/ LFLAGS = -ffreestanding -O2 -nostdlib -lgcc -QFLAGS = -no-reboot -d guest_errors,int,pcall,cpu_reset +QFLAGS = -no-reboot define from_sources $(patsubst src/%.s,out/obj/%.s.o,$(shell find $(1) -type f -name '*.s')) \ @@ -42,10 +42,10 @@ out/obj/%.c.o: src/%.c .PHONY: boot debug lint clean boot: out/boot.iso - qemu-system-i386 $< $(QFLAGS) -no-shutdown + qemu-system-i386 -cdrom $< $(QFLAGS) -no-shutdown debug: out/boot.iso - qemu-system-i386 $< $(QFLAGS) -s -S & + qemu-system-i386 -cdrom $< $(QFLAGS) -s -S & @sleep 1 gdb -- cgit v1.2.3