From ba2ad57ca8977ba00228109e962f0eb4abf848a6 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Sun, 27 Aug 2017 12:53:35 -0400 Subject: [PATCH] add rule shortcut via @samwho's suggesion --- tmk_core/avr.mk | 6 ++---- 1 file 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: