summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-21 20:03:16 +0200
committerThomas White <taw@physics.org>2018-06-21 20:03:16 +0200
commit07ddaabc49362f672e0d4f52f57220aac7af39cf (patch)
treeac6d6bd5e4882eaba4b4233e5a0822ee2bbfc1ab /Makefile
parent9ca41f57fbbc1bc69a3d8751218cd85ef93680d6 (diff)
Split into separate files and tidy up
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index aeac4a4..1d38433 100644
--- a/Makefile
+++ b/Makefile
@@ -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