summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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