altos/stm: Add .elf to .ihx rule
authorKeith Packard <keithp@keithp.com>
Sun, 24 Mar 2013 22:26:26 +0000 (15:26 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 24 Mar 2013 22:26:26 +0000 (15:26 -0700)
Uses objcopy -O ihex to extract the initialized bits from an elf file

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/Makefile.defs

index 04404cdcda11b3a86c400becabfcfdee7721cd57..3ce6eead168b4ff0b2a18669fa5a0e60d08368a2 100644 (file)
@@ -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=/home/keithp/sat
 SAT_CLIB=$(SAT)/lib/pdclib.a