Working i386 paging and liballoc

This commit is contained in:
2025-12-07 00:53:33 +01:00
commit de5350010b
75 changed files with 6716 additions and 0 deletions

21
kernel/Makefile Normal file
View File

@ -0,0 +1,21 @@
include $(srctree)/build/make.config
here := $(srctree)/kernel
include $(here)/make.src
all: $(srctree)/out/kernel.elf
$(srctree)/out/kernel.elf: $(o_files)
$(cc) $(kernel_ldflags) -o $@ $^
%.o: %.c
$(cc) $(kernel_cflags) -c -o $@ $<
%.o: %.S
$(cc) $(kernel_cflags) -c -o $@ $<
clean:
-rm $(srctree)/out/kernel.elf $(o_files)
.PHONY: all clean