diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -7,13 +7,25 @@ all : kernel7.img kernel.o : kernel.c arm-none-eabi-gcc $(CFLAGS) -c $^ -o $@ +PL0_test.o : PL0_test.c + arm-none-eabi-gcc $(CFLAGS) -c $^ -o $@ + +PL_0_test.elf : PL0_test.o uart.o + arm-none-eabi-gcc -T PL0_test.ld -o $@ $(ELFFLAGS) $^ + +PL_0_test.img : PL_0_test.elf + arm-none-eabi-objcopy $^ -O binary $@ + +PL_0_test_embeddable.o : PL_0_test.img + arm-none-eabi-objcopy -I binary -O elf32-littlearm -B arm --rename-section .data=.rodata $^ $@ + uart.o : uart.c arm-none-eabi-gcc $(CFLAGS) -c $^ -o $@ boot.o : boot.S arm-none-eabi-as -mcpu=cortex-a7 $^ -o $@ -kernel.elf : boot.o kernel.o uart.o +kernel.elf : boot.o kernel.o uart.o PL0_test.o PL_0_test_embeddable.o arm-none-eabi-gcc -T linker.ld -o $@ $(ELFFLAGS) $^ kernel7.img : kernel.elf |