summaryrefslogtreecommitdiff
path: root/ecosflash/Makefile
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-28 08:25:46 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-28 08:25:46 +0000
commitd17e1cd93384d56886be7e67cf2b31e97118d811 (patch)
tree119eb57a4a078992cf5e79c4f59c410923e39adb /ecosflash/Makefile
parent0689e3dd6752f45f493eceb3edf040fbc7849846 (diff)
downloadopenocd+libswd-d17e1cd93384d56886be7e67cf2b31e97118d811.tar.gz
openocd+libswd-d17e1cd93384d56886be7e67cf2b31e97118d811.tar.bz2
openocd+libswd-d17e1cd93384d56886be7e67cf2b31e97118d811.tar.xz
openocd+libswd-d17e1cd93384d56886be7e67cf2b31e97118d811.zip
eCos flash driver.
git-svn-id: svn://svn.berlios.de/openocd/trunk@365 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'ecosflash/Makefile')
-rw-r--r--ecosflash/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/ecosflash/Makefile b/ecosflash/Makefile
new file mode 100644
index 00000000..dfff37c2
--- /dev/null
+++ b/ecosflash/Makefile
@@ -0,0 +1,11 @@
+# Create OpenOCD eCos flash driver
+# Syntax: make INSTALL_DIR=ecosinstalldir OUTPUT=outputname
+
+include $(INSTALL_DIR)/include/pkgconf/ecos.mak
+
+all:
+ $(ECOS_COMMAND_PREFIX)gcc $(ECOS_GLOBAL_CFLAGS) $(ECOS_GLOBAL_LDFLAGS) -g -o debug_$(OUTPUT).elf -nostdlib flash.S flash.c -Wl,--gc-sections -I$(INSTALL_DIR)/include -Wl,$(INSTALL_DIR)/lib/libtarget.a -Wl,-Map,flash.map
+ cp debug_$(OUTPUT).elf $(OUTPUT).elf
+ $(ECOS_COMMAND_PREFIX)strip $(OUTPUT).elf
+ echo Flash driver $(OUTPUT).elf
+