aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-11-19 17:49:20 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-11-19 17:49:20 +0100
commit39145f6d1b8c57abe2bc0167b2b413970d0dfdb6 (patch)
tree2e2a76590e749579676720505aa38c57f85a95a4 /Makefile
parent11541f1d1eaaefebd6d01b42e92a65606e4bc382 (diff)
downloadrpi-MMU-example-39145f6d1b8c57abe2bc0167b2b413970d0dfdb6.tar.gz
rpi-MMU-example-39145f6d1b8c57abe2bc0167b2b413970d0dfdb6.zip
split kernel into more files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6f2600e..caa0154 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,12 @@ all : kernel7.img
kernel.o : kernel.c
arm-none-eabi-gcc $(CFLAGS) -c $^ -o $@
+paging.o : paging.c
+ arm-none-eabi-gcc $(CFLAGS) -c $^ -o $@
+
+demo_functionality.o : demo_functionality.c
+ arm-none-eabi-gcc $(CFLAGS) -c $^ -o $@
+
PL0_test.o : PL0_test.c
arm-none-eabi-gcc $(CFLAGS) -c $^ -o $@
@@ -25,7 +31,7 @@ uart.o : uart.c
boot.o : boot.S
arm-none-eabi-as -mcpu=cortex-a7 $^ -o $@
-kernel.elf : boot.o kernel.o uart.o PL0_test.o PL_0_test_embeddable.o
+kernel.elf : boot.o kernel.o uart.o PL_0_test_embeddable.o demo_functionality.o paging.o
arm-none-eabi-gcc -T linker.ld -o $@ $(ELFFLAGS) $^
kernel7.img : kernel.elf