summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-24 15:26:26 -0700
committerKeith Packard <keithp@keithp.com>2013-05-07 20:16:52 -0700
commitab1cbc0f51ddf897a3a7a768862d9dfe26a6c14d (patch)
treea200bbc2f87bfc19161b8ce1130e91f493fdff60 /src
parent9362d400d06aa3badfc826d8edbd7c55406b4f7d (diff)
altos/stm: Add .elf to .ihx rule
Uses objcopy -O ihex to extract the initialized bits from an elf file Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/stm/Makefile.defs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stm/Makefile.defs b/src/stm/Makefile.defs
index 1480f0b3..c8bb7d70 100644
--- a/src/stm/Makefile.defs
+++ b/src/stm/Makefile.defs
@@ -7,6 +7,11 @@ vpath load_csv.5c ../kalman
vpath matrix.5c ../kalman
vpath ao-make-product.5c ../util
+.SUFFIXES: .elf .ihx
+
+.elf.ihx:
+ objcopy -O ihex $*.elf $@
+
CC=arm-none-eabi-gcc
SAT=/opt/cortex
SAT_CLIB=$(SAT)/lib/pdclib-cortex-m3.a