aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-28 14:01:14 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-28 14:01:14 +0100
commit826d5b3ba04a8b830c8a92a6f69ca4e223257c5b (patch)
tree6702ee0e8e70d9098e3f3cfe56ee857ed01bb3e8 /Makefile
parent5b5ed23b44ae9eb845ebbac284e0b27822e45ed1 (diff)
downloadrpi-MMU-example-826d5b3ba04a8b830c8a92a6f69ca4e223257c5b.tar.gz
rpi-MMU-example-826d5b3ba04a8b830c8a92a6f69ca4e223257c5b.zip
place PL_0_test.img in ramfs instead of embedding it directly
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3d6b095..b8800cc 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
EMBEDDABLE_OBJECTS=PL_0_test_embeddable.o loader_stage2_embeddable.o
+RAMFS_FILES=PL_0_test.img
+
all : kernel7.img
%.o : %.c
@@ -22,7 +24,7 @@ all : kernel7.img
PL_0_test.elf : PL0_test.o uart.o
arm-none-eabi-gcc -T PL0_test.ld -o $@ $(ELFFLAGS) $^
-kernel.elf : boot.o kernel.o uart.o PL_0_test_embeddable.o demo_functionality.o paging.o libkernel.o interrupt_vector.o interrupts.o
+kernel.elf : boot.o kernel.o uart.o demo_functionality.o paging.o libkernel.o interrupt_vector.o interrupts.o ramfs_embeddable.o ramfs.o
arm-none-eabi-gcc -T linker.ld -o $@ $(ELFFLAGS) $^
loader.elf : boot.o loader_stage1.o loader_stage2.o uart.o
@@ -49,6 +51,9 @@ pipe_image : pipe_image.c lib/rs232/rs232.c
makefs : makefs.c
gcc -Wall -std=gnu99 -O3 $^ -o $@
+ramfs.img : makefs $(RAMFS_FILES)
+ ./makefs $(RAMFS_FILES) > $@
+
clean :
-rm *.img *.elf *.o pipe_image