From c38deb7168e4ceab5250bcc5bf24a82c4db27354 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 7 Apr 2022 20:27:23 -0700 Subject: Kernel Map Output Fixed missing directory --- Common.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Common.mk b/Common.mk index 2e7f3d5..dc45935 100644 --- a/Common.mk +++ b/Common.mk @@ -29,6 +29,7 @@ LARGE ?= 1 CROSS = arm-none-eabi AR = $(CROSS)-ar +LD = $(CROSS)-ld CC = $(CROSS)-gcc CPP = $(CROSS)-g++ AS = $(CROSS)-as @@ -107,7 +108,7 @@ dump: build/kernel.list build/kernel.elf: build/libjobbed.a $(U_OBJECTS) @mkdir -p $(@D) @echo "IMAGE LD $@" - @$(CC) -T linker.ld -o $@ -Lbuild -l jobbed -ffreestanding -O3 -nostdlib $^ + @$(LD) -T linker.ld -o $@ -Lbuild -l jobbed -Map build/kernel.map -O3 -nostdlib $^ obj/kernel/%.co: kernel/%.c @mkdir -p $(@D) @@ -147,6 +148,7 @@ sd.hda: @dd if=/dev/zero of=sd.hda count=1 bs=1 seek=16383 build/libjobbed.a: $(K_OBJECTS) + @mkdir -p $(@D) @-rm -f $@ @echo "JOBBED LIB $@" @$(AR) rc $@ $^ -- cgit v1.2.1