feat: misc

Nicer kernel, now can fetch multiboot2 boot info
This commit is contained in:
2026-02-21 22:12:23 +01:00
parent a2dfc5c775
commit e6b231488d
11 changed files with 282 additions and 27 deletions

View File

@@ -7,9 +7,11 @@ RUST_DEP := Cargo.toml Cargo.lock $(shell find .cargo -type f) $(shell find deps
KERNELFILE = $(OXIDE_MULTIBOOT)
$(KERNELFILE): $(shell find members/oxide -type f) $(RUST_DEP)
cargo b -r --target=.cargo/target-protected-i386.json --package oxide
cargo b -r --package oxide
BOOTLOADER ?= grub
# Must not contain '/' with current limitations
CMDLINE ?=
include mk/make_bootloader/$(BOOTLOADER).mk
.PHONY: clean \
@@ -24,6 +26,6 @@ run-bootloader-qemu-nographic: $(OUTIMG)
qemu-system-x86_64 -nographic -drive format=raw,file=$(OUTIMG)
# one day qemu will support multiboot2
run-qemu: $(KERNELFILE)
qemu-system-x86_64 -kernel $(KERNELFILE)
qemu-system-x86_64 -kernel $(KERNELFILE) -append $(CMDLINE)
run-qemu-nographic: $(KERNELFILE)
qemu-system-x86_64 -nographic -kernel $(KERNELFILE)
qemu-system-x86_64 -nographic -kernel $(KERNELFILE) -append $(CMDLINE)