kernel: add missing sym table generation steps

Adds missing symbol table generation steps that were not commited
alongside previous work. Also bumps astral.
This commit is contained in:
Matheus
2026-10-09 02:20:28 -03:00
parent 92aac97f22
commit 26cd12e7c6
2 changed files with 14 additions and 2 deletions
+13 -1
View File
@@ -23,6 +23,10 @@ endif
ASFLAGS=-felf64
DEPS=$(CSOURCES:.c=.d)
ifeq ($(TARGET),x86-64)
KERNEL_BASE=0xffffffff80000000
endif
.PHONY: all
all:
# build build.h file
@@ -33,7 +37,15 @@ all:
echo "#endif" >> include/build.h
make astral
astral: $(OBJS)
astral.tmp: $(OBJS)
@echo [LD] $@
@$(LD) $(LDFLAGS) -o $@ $^
astral.sym.o: astral.tmp
@echo [GEN] $@
@python3 gen_fn_sym.py $< $(KERNEL_BASE) $(shell pwd)/ $@
astral: $(OBJS) astral.sym.o
@echo [LD] $@
@$(LD) $(LDFLAGS) -o $@ $^