diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-04-01 00:28:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-01 00:28:26 +0200 |
commit | 3448d5d4874a2775f85320a2be69edd241575d46 (patch) | |
tree | 572b8740336e659fb784d9c8e46b35baf2225522 /tmk_core/chibios.mk | |
parent | ec35fea26420dc7d11dfa464f912566e5a5424c1 (diff) | |
parent | 515b4dd1f7c941f9e96790f7433015fc9bd385bf (diff) | |
download | qmk_firmware-3448d5d4874a2775f85320a2be69edd241575d46.tar.gz qmk_firmware-3448d5d4874a2775f85320a2be69edd241575d46.tar.xz |
Merge pull request #1132 from akatrevorjay/pr/dfu-serial
Allow to specify serial to dfu-util flash
Diffstat (limited to 'tmk_core/chibios.mk')
-rw-r--r-- | tmk_core/chibios.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk index 062a712bd..eb0c40138 100644 --- a/tmk_core/chibios.mk +++ b/tmk_core/chibios.mk @@ -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
\ No newline at end of file + dfu-util $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin |