diff options
author | Damien George <damien.p.george@gmail.com> | 2014-07-02 13:53:28 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-07-02 13:53:28 +0100 |
commit | 9cd96cf25d4b044288a923dae63e8e7d8c261c7b (patch) | |
tree | 696a7ef30d998615a43b62f7e3915fa389a5bb90 | |
parent | f83debc716029f87f62cdae751e88838db343eb8 (diff) | |
parent | b6af4c8104ce85c70c8a6d56ba1c5ad65721b523 (diff) | |
download | micropython-9cd96cf25d4b044288a923dae63e8e7d8c261c7b.tar.gz micropython-9cd96cf25d4b044288a923dae63e8e7d8c261c7b.zip |
Merge pull request #709 from windelbouwman/master
Added hexfile target
-rw-r--r-- | stmhal/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile index 3cc98d7be8..f6619859ce 100644 --- a/stmhal/Makefile +++ b/stmhal/Makefile @@ -196,7 +196,7 @@ OBJ += $(addprefix $(BUILD)/, $(SRC_FATFS:.c=.o)) OBJ += $(addprefix $(BUILD)/, $(SRC_CC3K:.c=.o)) OBJ += $(BUILD)/pins_$(BOARD).o -all: $(BUILD)/firmware.dfu +all: $(BUILD)/firmware.dfu $(BUILD)/firmware.hex .PHONY: deploy @@ -210,6 +210,10 @@ $(BUILD)/firmware.dfu: $(BUILD)/firmware.elf $(Q)$(OBJCOPY) -O binary -j .text -j .data $^ $(BUILD)/firmware1.bin $(Q)$(PYTHON) $(DFU) -b 0x08000000:$(BUILD)/firmware0.bin -b 0x08020000:$(BUILD)/firmware1.bin $@ +$(BUILD)/firmware.hex: $(BUILD)/firmware.elf + $(ECHO) "Create $@" + $(Q)$(OBJCOPY) -O ihex $< $@ + $(BUILD)/firmware.elf: $(OBJ) $(ECHO) "LINK $@" $(Q)$(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) |