aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $^