Skip to content

Commit

Permalink
add rule shortcut via @samwho's suggesion
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Aug 27, 2017
1 parent 677b897 commit ba2ad57
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tmk_core/avr.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ba2ad57

Please sign in to comment.