mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-09 21:58:19 +00:00
Merge pull request #1132 from akatrevorjay/pr/dfu-serial
Allow to specify serial to dfu-util flash
This commit is contained in:
commit
3448d5d487
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue