]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
add bin targets - closes #1648, fixes #1647
authorJack Humbert <jack.humb@gmail.com>
Sun, 27 Aug 2017 16:11:59 +0000 (12:11 -0400)
committerJack Humbert <jack.humb@gmail.com>
Sun, 27 Aug 2017 16:11:59 +0000 (12:11 -0400)
tmk_core/avr.mk
tmk_core/chibios.mk

index 95aa973aa916845333c1ba34983e9e59085979ad..b8045a1d4dc34a58af677e21c6f542befd5188a2 100644 (file)
@@ -162,6 +162,11 @@ avrdude: $(BUILD_DIR)/$(TARGET).hex
                avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex; \
        fi
 
+# Convert hex to bin.
+bin: $(BUILD_DIR)/$(TARGET).hex
+       $(OBJCOPY) -Iihex -Obinary $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
+       $(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin;
+
 # Convert hex to bin.
 flashbin: $(BUILD_DIR)/$(TARGET).hex
        $(OBJCOPY) -Iihex -Obinary $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
index 2a8d32fb99d40dd7e7a827b0b8cff180c5d09198..61e0a847d7dc03b0f7026e08baf2c064b5531ee2 100644 (file)
@@ -155,3 +155,6 @@ DFU_UTIL ?= dfu-util
 
 dfu-util: $(BUILD_DIR)/$(TARGET).bin sizeafter
        $(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin
+
+bin: $(BUILD_DIR)/$(TARGET).bin sizeafter
+       $(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin;
\ No newline at end of file