aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 1e8f8fe..6963722 100644
--- a/Makefile
+++ b/Makefile
@@ -34,23 +34,17 @@ kernel_stage1.o : kernel_stage1.S kernel_stage2.img
kernel.elf : kernel_stage1.ld kernel_stage1.o
arm-none-eabi-gcc -T $< -o $@ $(ELFFLAGS) kernel_stage1.o
-kernel.img : kernel.elf
- arm-none-eabi-objcopy $^ -O binary $@
-
kernel_stage2.elf : kernel_stage2.ld $(KERNEL_STAGE2_OBJECTS)
arm-none-eabi-gcc -T $< -o $@ $(ELFFLAGS) $(KERNEL_STAGE2_OBJECTS)
-#kernel.elf : boot.o kernel.o uart.o demo_functionality.o paging.o interrupt_vector.o interrupts.o ramfs_embeddable.o ramfs.o
-# arm-none-eabi-gcc -T linker.ld -o $@ $(ELFFLAGS) $^
-
loader_stage2.elf : loader_stage2_linker.ld $(LOADER_STAGE2_OBJECTS)
arm-none-eabi-gcc -T $< -o $@ $(ELFFLAGS) $(LOADER_STAGE2_OBJECTS)
loader_stage1.o : loader_stage1.S loader_stage2.img
arm-none-eabi-as -mcpu=cortex-a7 $< -o $@
-loader.elf : loader_stage1.o
- arm-none-eabi-gcc -T loader_stage1_linker.ld -o $@ $(ELFFLAGS) $^
+loader.elf : loader_stage1_linker.ld loader_stage1.o
+ arm-none-eabi-gcc -T $< -o $@ $(ELFFLAGS) loader_stage1.o
loader.img : loader.elf
arm-none-eabi-objcopy $^ -O binary $@