From bebf7a832ad4c6651a46f95f5ff0cfb7d48b4c75 Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 27 Apr 2023 23:31:28 -0300 Subject: [PATCH] kernel: build with debug options --- kernel-src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel-src/Makefile b/kernel-src/Makefile index cc2f285d..b4f08615 100644 --- a/kernel-src/Makefile +++ b/kernel-src/Makefile @@ -5,12 +5,12 @@ TARGET=x86-64 INCDIR=$(shell pwd)/include ARCHINCDIR=$(shell pwd)/include/$(TARGET)/ ARCHDIR=$(shell pwd)/arch/$(TARGET)/ -LDFLAGS=-ffreestanding -nostdlib -lgcc -Wl,-T,"$(ARCHDIR)/kernel.ld" -debug +LDFLAGS=-ffreestanding -nostdlib -lgcc -Wl,-T,"$(ARCHDIR)/kernel.ld" -g # required for mpaland printf so it doesn't compile with floating point support, which results in build failures PRINTFOPTS=-DPRINTF_DISABLE_SUPPORT_FLOAT # flanterm includes break if the headers are moved into the include dir in the tree FLANTERMINCDIR=$(shell pwd)/flanterm -CFLAGS=-ffreestanding -mcmodel=kernel -O2 -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -nostdlib -Wall -I "${INCDIR}" -I "$(ARCHINCDIR)" -I "$(FLANTERMINCDIR)" $(PRINTFOPTS) +CFLAGS=-g -ffreestanding -mcmodel=kernel -O2 -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -nostdlib -Wall -I "${INCDIR}" -I "$(ARCHINCDIR)" -I "$(FLANTERMINCDIR)" $(PRINTFOPTS) ASFLAGS=-felf64 astral: $(OBJS)