1
0
Fork 0
forked from forks/qmk_firmware

Allow to specify serial to dfu-util flash

This commit is contained in:
Trevor Joynson (trevorj) 2017-03-02 18:21:45 -08:00
parent c62f3bd74d
commit 515b4dd1f7

View file

@ -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