diff options
author | Grégoire Passault <g.passault@gmail.com> | 2014-11-26 22:56:37 -0500 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2015-02-28 23:14:25 -0800 |
commit | 8e213031af85fdf544b957cec18406f51eb2a077 (patch) | |
tree | bc850eef2704102c244b10c3fc804b4b2950e816 | |
parent | 422a4c67554f31570f06fab0469b094e985b3675 (diff) | |
download | librambutan-8e213031af85fdf544b957cec18406f51eb2a077.tar.gz librambutan-8e213031af85fdf544b957cec18406f51eb2a077.zip |
Generate .hex files as well.
Signed-off-by: Grégoire Passault <g.passault@gmail.com>
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | build-targets.mk | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -135,7 +135,7 @@ ifneq ($(PREV_BUILD_TYPE), $(MEMORY_TARGET)) $(shell rm -rf $(BUILD_PATH)) endif -sketch: build-check MSG_INFO $(BUILD_PATH)/$(BOARD).bin +sketch: build-check MSG_INFO $(BUILD_PATH)/$(BOARD).bin $(BUILD_PATH)/$(BOARD).hex clean: rm -rf build diff --git a/build-targets.mk b/build-targets.mk index 4b9c880..8232867 100644 --- a/build-targets.mk +++ b/build-targets.mk @@ -16,6 +16,9 @@ library: $(BUILD_PATH)/libmaple.a $(BUILD_PATH)/$(BOARD).elf: $(BUILDDIRS) $(TGT_BIN) $(OBJ_FILES) $(SILENT_LD) $(CXX) $(LDFLAGS) -o $@ $(TGT_BIN) $(BUILD_PATH)/main.o -Wl,-Map,$(BUILD_PATH)/$(BOARD).map +$(BUILD_PATH)/$(BOARD).hex: $(BUILD_PATH)/$(BOARD).elf + $(SILENT_OBJCOPY) $(OBJCOPY) -v -Oihex $(BUILD_PATH)/$(BOARD).elf $@ 1>/dev/null + $(BUILD_PATH)/$(BOARD).bin: $(BUILD_PATH)/$(BOARD).elf $(SILENT_OBJCOPY) $(OBJCOPY) -v -Obinary $(BUILD_PATH)/$(BOARD).elf $@ 1>/dev/null $(SILENT_DISAS) $(DISAS) -d $(BUILD_PATH)/$(BOARD).elf > $(BUILD_PATH)/$(BOARD).disas |