summaryrefslogtreecommitdiff
path: root/tmk_core/chibios.mk
diff options
context:
space:
mode:
authorDamien <Dbroqua@users.noreply.github.com>2017-04-02 23:29:12 +0200
committerGitHub <noreply@github.com>2017-04-02 23:29:12 +0200
commit3e41cde9f99778ca30c03b97470c32780379db43 (patch)
tree18e2376acae06563166b5ea8b8cd6368cb9cddae /tmk_core/chibios.mk
parente7347ff0de93ff823462b3ff2b4136b44dc576c0 (diff)
parent3448d5d4874a2775f85320a2be69edd241575d46 (diff)
Merge pull request #19 from qmk/master
Merge from qmk
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 062a712bd1..eb0c40138a 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