aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave2006-07-02 21:56:28 +0000
committerdave2006-07-02 21:56:28 +0000
commit84bd297c95d6c41ea8dfd89a83a54ef1018e3530 (patch)
tree947db9b7b782f2edc18bdb350406f4bb122913b9
parent44e0c376be8114d4f73e160f6fe0ec874488a977 (diff)
Oops, forgot the Makefile
-rw-r--r--estorm/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/estorm/Makefile b/estorm/Makefile
new file mode 100644
index 0000000..9b3c7ab
--- /dev/null
+++ b/estorm/Makefile
@@ -0,0 +1,17 @@
+#all:
+# gcc -Wall -O0 -mcpu=arm7tdmi-s -mapcs -mthumb-interwork -o flash.o flash.c -nostartfiles -nodefaultlibs -nostdlib -Wl,-e,main
+# objcopy -Obinary -j.text flash.o flash.bin
+# objdump --disassemble-all -bbinary -marm7tdmi flash.bin > flash.asm
+#
+
+TOOL_PREFIX=arm-elf-
+
+all:
+ $(TOOL_PREFIX)gcc -W -Wall -O3 -mcpu=arm7tdmi -mapcs -mthumb-interwork -c -o boot.o boot.c
+ $(TOOL_PREFIX)as --warn -mcpu=arm7tdmi -mapcs-32 -EL -mthumb-interwork -o crt0.o crt0.s
+ $(TOOL_PREFIX)ld -T estorm.lds --gc-sections crt0.o boot.o -o estorm
+ $(TOOL_PREFIX)objcopy -O binary estorm estorm.bin
+ $(TOOL_PREFIX)objdump --disassemble-all -b binary -m arm7tdmi estorm.bin > estorm.asm
+
+clean:
+ rm -f estorm.o estorm.bin estorm.asm