aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-04-07 20:27:23 -0700
committerChristian Cunningham <cc@localhost>2022-04-07 20:27:23 -0700
commitc38deb7168e4ceab5250bcc5bf24a82c4db27354 (patch)
tree58fc3e5a6ca797e9aa66e004d9526b8b59bf5171
parent44542cf5e3372cb6f3b59f891dd90edcd313292c (diff)
Kernel Map Output
Fixed missing directory
-rw-r--r--Common.mk4
1 files changed, 3 insertions, 1 deletions
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 $@ $^