From df3f8539c01c0de5bca95d932dddb93f04283a42 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 13 Jan 2020 14:39:14 +0100 Subject: shorten compilation rules --- build/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'build') 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 $^ -- cgit v1.2.3