aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2020-01-13 14:39:14 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2020-01-13 14:39:14 +0100
commitdf3f8539c01c0de5bca95d932dddb93f04283a42 (patch)
treeb002b1239eac26ce19dd35ac04abef485aa21bb9
parentde8804d159f684a5a41692951141fb62db9534d0 (diff)
downloadrpi-MMU-example-df3f8539c01c0de5bca95d932dddb93f04283a42.tar.gz
rpi-MMU-example-df3f8539c01c0de5bca95d932dddb93f04283a42.zip
shorten compilation rules
-rw-r--r--build/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/build/Makefile b/build/Makefile
index 25f2da9..7c9432f 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -27,13 +27,13 @@ echo :
echo $(CFLAGS)
%.o : %.c
- arm-none-eabi-gcc $(CFLAGS) -c $^ -o $@
+ arm-none-eabi-gcc $(CFLAGS) -c $< -o $@
%.img : %.elf
arm-none-eabi-objcopy $^ -O binary $@
%.o: %.S
- arm-none-eabi-as -mcpu=cortex-a7 $^ -o $@
+ arm-none-eabi-as -mcpu=cortex-a7 $< -o $@
%_embeddable.o : %.img
arm-none-eabi-objcopy -I binary -O elf32-littlearm -B arm $^ $@
@@ -51,11 +51,9 @@ loader_stage2.elf : $(LOADER_STAGE2_OBJECTS)
loader.elf : loader_stage1.o
-kernel_stage1.o : kernel_stage1.S kernel_stage2.img
- arm-none-eabi-as -mcpu=cortex-a7 $< -o $@
+kernel_stage1.o : kernel_stage2.img
-loader_stage1.o : loader_stage1.S loader_stage2.img
- arm-none-eabi-as -mcpu=cortex-a7 $< -o $@
+loader_stage1.o : loader_stage2.img
qemu-elf : kernel.elf
qemu-system-arm -m 256 -M raspi2 -serial stdio -kernel $^