From 4c7b4a3d0f798f62775d16b47b8f192c2c2b5ef0 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 16 Jul 2021 16:09:10 +0200 Subject: `make boot` uses boot.iso / GRUB now I'm going to implement the "initrd" soon, and it'll use multiboot modules - I have no idea how to use them with the qemu -kernel thing, and I have to support GRUB anyways, so I'm just going to use it instead. --- Makefile | 8 ++++---- grub.cfg | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1d5571a..666c226 100644 --- a/Makefile +++ b/Makefile @@ -31,11 +31,11 @@ out/obj/%.c.o: src/%.c .PHONY: boot debug lint clean -boot: out/fs/boot/kernel.bin - qemu-system-i386 -kernel $< $(QFLAGS) -no-shutdown +boot: out/boot.iso + qemu-system-i386 $< $(QFLAGS) -no-shutdown -debug: out/fs/boot/kernel.bin - qemu-system-i386 -kernel $< $(QFLAGS) -s -S & +debug: out/boot.iso + qemu-system-i386 $< $(QFLAGS) -s -S & sleep 1 gdb diff --git a/grub.cfg b/grub.cfg index ab0a41d..5f66c18 100644 --- a/grub.cfg +++ b/grub.cfg @@ -1,3 +1,5 @@ +set timeout=0 + menuentry "Camellia" { multiboot /boot/kernel.bin } -- cgit v1.2.3