summaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-08-27 18:53:35 +0200
committerJack Humbert <jack.humb@gmail.com>2017-08-27 18:53:35 +0200
commitba2ad57ca8977ba00228109e962f0eb4abf848a6 (patch)
tree55c7377b6b0a994c1f8e21ecb8f5340f6dd68eb6 /tmk_core
parent677b89768b5ffba7261a16686ecf34f23d964580 (diff)
downloadqmk_firmware-ba2ad57ca8977ba00228109e962f0eb4abf848a6.tar.gz
qmk_firmware-ba2ad57ca8977ba00228109e962f0eb4abf848a6.tar.xz
add rule shortcut via @samwho's suggesion
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/avr.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk
index b8045a1d4..989180f3c 100644
--- a/tmk_core/avr.mk
+++ b/tmk_core/avr.mk
@@ -167,10 +167,8 @@ 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
- $(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin;
+# copy bin to FLASH.bin
+flashbin: bin
$(COPY) $(BUILD_DIR)/$(TARGET).bin FLASH.bin;
# Generate avr-gdb config/init file which does the following: