summaryrefslogtreecommitdiffstats
path: root/tmk_core/chibios.mk
diff options
context:
space:
mode:
authorTrevor Joynson (trevorj) <github@skywww.net>2017-03-03 03:21:45 +0100
committerTrevor Joynson (trevorj) <github@skywww.net>2017-03-03 03:26:26 +0100
commit515b4dd1f7c941f9e96790f7433015fc9bd385bf (patch)
tree5e0c203107ccc31705f4187eff3a4b2bedca1f8f /tmk_core/chibios.mk
parentc62f3bd74d4d9719f9d26e0b4ab43d64d56c9715 (diff)
downloadqmk_firmware-515b4dd1f7c941f9e96790f7433015fc9bd385bf.tar.gz
qmk_firmware-515b4dd1f7c941f9e96790f7433015fc9bd385bf.tar.xz
Allow to specify serial to dfu-util flash
Diffstat (limited to 'tmk_core/chibios.mk')
-rw-r--r--tmk_core/chibios.mk7
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