Started implementing debugging facilities

This commit is contained in:
2022-12-14 21:45:24 +00:00
parent 51e065faaf
commit 72bf6faadd
11 changed files with 124 additions and 11 deletions

View File

@@ -17,8 +17,9 @@ KERNEL_OBJ := $(addprefix $(BUILDDIR)/,$(KERNEL_C_FILES:.c=.o))
BUILD_ID := $(shell tools/generate_build_id.py --arch $(ARCH))
CFLAGS := -DBUILD_ID=\"$(BUILD_ID)\"
ASMFLAGS := -DBUILD_ID=\"$(BUILD_ID)\"
CFLAGS := $(CFLAGS) -DBUILD_ID=\"$(BUILD_ID)\" -g
ASMFLAGS := $(ASMFLAGS) -DBUILD_ID=\"$(BUILD_ID)\"
LDFLAGS := $(LDFLAGS) -g
$(BUILDDIR)/$(KERNEL_EXEC): $(KERNEL_OBJ) $(ARCH_OBJ)
@echo " \033[1;36mLINK\033[0m \033[1m$@\033[0m"