From e09edb5d54e39bd9509a1dc450df5ab320759f97 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 5 Jul 2024 19:38:11 +0300 Subject: allow booting with Qemu's -kernel flag directly + Took some fairly significant changes, for one the kernel is no longer relocated at the start of a boot, instead it sits wherever the user decides the kernel should sit. Similarly, the initial kernel stack and page table are stored within the binary, slightly bloating the size but making it much safer to boot since there's really no chance of us overwriting the fdt or initrd in memory. --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 161290e..df2af61 100644 --- a/Makefile +++ b/Makefile @@ -19,16 +19,14 @@ all: setup setup: @echo -n > deps.mk @./scripts/gen-deps -p KERNEL -c COMPILE_KERNEL -b kernel "${KERNEL_SOURCES}" - @./scripts/gen-deps -p INIT -c COMPILE_INIT -b init "${INIT_SOURCES}" # default values, overwrite if/when needed ARCH ?= riscv64 ARCH_SOURCE = arch/$(ARCH) KERNEL_SOURCES != echo src/*.c src/uapi/*.c lib/*.c -INIT_SOURCES != echo lib/fdt*.c src/fdt.c src/string.c -CLEANUP := build deps.mk kernel.* init.* kmi.bin +CLEANUP := build deps.mk kernel.* kmi.bin CLEANUP_CMD := include arch/$(ARCH)/source.mk -- cgit v1.3