diff options
| author | Trevor Joynson (trevorj) <github@skywww.net> | 2017-03-02 18:21:45 -0800 |
|---|---|---|
| committer | Trevor Joynson (trevorj) <github@skywww.net> | 2017-03-02 18:26:26 -0800 |
| commit | 515b4dd1f7c941f9e96790f7433015fc9bd385bf (patch) | |
| tree | 5e0c203107ccc31705f4187eff3a4b2bedca1f8f | |
| parent | c62f3bd74d4d9719f9d26e0b4ab43d64d56c9715 (diff) | |
| download | qmk_firmware-515b4dd1f7c941f9e96790f7433015fc9bd385bf.tar.gz qmk_firmware-515b4dd1f7c941f9e96790f7433015fc9bd385bf.zip | |
Allow to specify serial to dfu-util flash
| -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) | |||
| 143 | 143 | ||
| 144 | DEBUG = gdb | 144 | DEBUG = gdb |
| 145 | 145 | ||
| 146 | DFU_ARGS = | ||
| 147 | ifneq ("$(SERIAL)","") | ||
| 148 | DFU_ARGS += -S $(SERIAL) | ||
| 149 | endif | ||
| 150 | |||
| 146 | # List any extra directories to look for libraries here. | 151 | # List any extra directories to look for libraries here. |
| 147 | EXTRALIBDIRS = $(RULESPATH)/ld | 152 | EXTRALIBDIRS = $(RULESPATH)/ld |
| 148 | 153 | ||
| 149 | dfu-util: $(BUILD_DIR)/$(TARGET).bin sizeafter | 154 | dfu-util: $(BUILD_DIR)/$(TARGET).bin sizeafter |
| 150 | dfu-util -D $(BUILD_DIR)/$(TARGET).bin \ No newline at end of file | 155 | dfu-util $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin |
