Skip to content

Commit

Permalink
Merge pull request qmk#1132 from akatrevorjay/pr/dfu-serial
Browse files Browse the repository at this point in the history
Allow to specify serial to dfu-util flash
  • Loading branch information
jackhumbert authored Mar 31, 2017
2 parents ec35fea + 515b4dd commit 3448d5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tmk_core/chibios.mk
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,13 @@ MCUFLAGS = -mcpu=$(MCU)

DEBUG = gdb

DFU_ARGS =
ifneq ("$(SERIAL)","")
DFU_ARGS += -S $(SERIAL)
endif

# List any extra directories to look for libraries here.
EXTRALIBDIRS = $(RULESPATH)/ld

dfu-util: $(BUILD_DIR)/$(TARGET).bin sizeafter
dfu-util -D $(BUILD_DIR)/$(TARGET).bin
dfu-util $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin

0 comments on commit 3448d5d

Please sign in to comment.