aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-30 14:36:31 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-30 14:36:31 +0100
commit26685f5203bc38cfa082b96182a406f4f7e6435a (patch)
tree5566b6812c7cc127da597a08a6824616b2aa5bb5 /Makefile
parentee8668f9fcd952e4952706789bdde7fd223dacb5 (diff)
downloadrpi-MMU-example-26685f5203bc38cfa082b96182a406f4f7e6435a.tar.gz
rpi-MMU-example-26685f5203bc38cfa082b96182a406f4f7e6435a.zip
implement getchar() and putchar() in terms of supervisor call
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d44fc2b..48bbd14 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,8 @@ ARM_OBJECTS=kernel.o paging.o demo_functionality.o PL0_test.o uart.o loader_stag
KERNEL_STAGE2_OBJECTS=setup.o interrupt_vector.o interrupts.o uart.o demo_functionality.o paging.o ramfs_embeddable.o ramfs.o
+PL_0_TEST_OBJECTS=PL0_utils.o svc.o PL0_test.o uart.o
+
RAMFS_FILES=PL_0_test.img
all : kernel.img
@@ -21,8 +23,8 @@ all : kernel.img
%_embeddable.o : %.img
arm-none-eabi-objcopy -I binary -O elf32-littlearm -B arm $^ $@
-PL_0_test.elf : PL0_test.ld PL0_test.o uart.o
- arm-none-eabi-gcc -T $< -o $@ $(ELFFLAGS) PL0_test.o uart.o
+PL_0_test.elf : PL0_test.ld $(PL_0_TEST_OBJECTS)
+ arm-none-eabi-gcc -T $< -o $@ $(ELFFLAGS) $(PL_0_TEST_OBJECTS)
kernel_stage1.o : kernel_stage1.S kernel_stage2.img
arm-none-eabi-as -mcpu=cortex-a7 $< -o $@