diff options
author | Thomas White <taw@physics.org> | 2018-06-21 20:03:16 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-06-21 20:03:16 +0200 |
commit | 07ddaabc49362f672e0d4f52f57220aac7af39cf (patch) | |
tree | ac6d6bd5e4882eaba4b4233e5a0822ee2bbfc1ab /Makefile | |
parent | 9ca41f57fbbc1bc69a3d8751218cd85ef93680d6 (diff) |
Split into separate files and tidy up
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,13 +1,16 @@ all: kernel.img
kernel.img: kernel.elf
- arm-linux-gnu-objcopy kernel.elf -O binary kernel.img
+ arm-none-eabi-objcopy kernel.elf -O binary kernel.img
-kernel.elf : main.o linkscript.ld
- arm-linux-gnu-ld --no-undefined main.o -o kernel.elf -T linkscript.ld
+kernel.elf : main.o slow_status_flash.o linkscript.ld
+ arm-none-eabi-ld --no-undefined main.o slow_status_flash.o -o kernel.elf -T linkscript.ld
main.o: src/main.s
- arm-linux-gnu-as -Isrc src/main.s -o main.o
+ arm-none-eabi-as -Isrc src/main.s -o main.o
+
+slow_status_flash.o: src/slow_status_flash.s
+ arm-none-eabi-as -Isrc src/slow_status_flash.s -o slow_status_flash.o
clean:
rm -f main.o kernel.elf kernel.img
|