diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-24 15:26:26 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-03-24 15:26:26 -0700 |
commit | 72a1110b6d0571d43ddba437683f66f6d54bfda8 (patch) | |
tree | 400eadb4b86298b7f5f9d3e2e16892f5b3bf06e8 | |
parent | 05930bd24926746d4a2c2188a4865edc12936b67 (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>
-rw-r--r-- | src/stm/Makefile.defs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stm/Makefile.defs b/src/stm/Makefile.defs index 04404cdc..3ce6eead 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=/home/keithp/sat SAT_CLIB=$(SAT)/lib/pdclib.a |