Merge pull request #1060 from g-oikonomou/cc26xx/contrib/ihex
Produce ihex files usable with TI's Flash Programmer
This commit is contained in:
commit
c9324d133f
3 changed files with 8 additions and 2 deletions
|
@ -6,6 +6,7 @@ OBJCOPY = arm-none-eabi-objcopy
|
|||
OBJDUMP = arm-none-eabi-objdump
|
||||
NM = arm-none-eabi-nm
|
||||
SIZE = arm-none-eabi-size
|
||||
SREC_CAT = srec_cat
|
||||
|
||||
### TI CC26xxware out-of-tree
|
||||
### TI_CC26XXWARE is the home directory of the cc26xxware
|
||||
|
@ -106,9 +107,12 @@ CUSTOM_RULE_LINK=1
|
|||
$(TRACE_LD)
|
||||
$(Q)$(LD) $(LDFLAGS) ${filter-out $(LDSCRIPT) %.a,$^} ${filter %.a,$^} $(TARGET_LIBFILES) -lm -o $@
|
||||
|
||||
%.hex: %.elf
|
||||
%.i16hex: %.elf
|
||||
$(OBJCOPY) -O ihex $< $@
|
||||
|
||||
%.hex: %.i16hex
|
||||
$(SREC_CAT) $< -intel -o $@ -intel
|
||||
|
||||
%.bin: %.elf
|
||||
$(OBJCOPY) $(OBJCOPY_FLAGS) $< $@
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue