[make] also output .hex files in intel hex format

This commit is contained in:
Travis Geiselbrecht
2012-11-02 11:48:17 -07:00
parent a6e3b0976f
commit 0e0c77c04f
2 changed files with 6 additions and 2 deletions

View File

@@ -6,6 +6,10 @@ $(OUTBIN): $(OUTELF)
$(NOECHO)$(SIZE) $<
$(NOCOPY)$(OBJCOPY) -O binary $< $@
$(OUTELF).hex: $(OUTELF)
@echo generating hex file: $@
$(NOCOPY)$(OBJCOPY) -O ihex $< $@
$(OUTELF): $(ALLMODULE_OBJS) $(EXTRA_OBJS) $(LINKER_SCRIPT)
@echo linking $@
$(NOECHO)$(SIZE) -t $(ALLMODULE_OBJS)