diff options
author | Florian Didron <fdidron@users.noreply.github.com> | 2019-05-06 10:32:32 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 10:32:32 +0900 |
commit | c7d9b48cc92a046e62df2e7e5f6dfb1b833c8ad7 (patch) | |
tree | 32b1a8591ee87789623ea923bfaeaf8914988e6f /tmk_core | |
parent | 8903b7913ae89e98a2e403266df6ae5ad8953136 (diff) | |
parent | 3c5dd583e13485b840fd88e54453ea69757871c4 (diff) |
Merge branch 'master' into enable_lto_option
Diffstat (limited to 'tmk_core')
-rw-r--r-- | tmk_core/chibios.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk index 01edebfd74..44c00bdd15 100644 --- a/tmk_core/chibios.mk +++ b/tmk_core/chibios.mk @@ -201,6 +201,7 @@ DFU_ARGS ?= ifneq ("$(SERIAL)","") DFU_ARGS += -S $(SERIAL) endif +DFU_SUFFIX_ARGS ?= ST_LINK_ARGS ?= @@ -208,6 +209,7 @@ ST_LINK_ARGS ?= EXTRALIBDIRS = $(RULESPATH)/ld DFU_UTIL ?= dfu-util +DFU_SUFFIX ?= dfu-suffix ST_LINK_CLI ?= st-link_cli # Generate a .qmk for the QMK-FF @@ -259,4 +261,7 @@ st-link-cli: $(BUILD_DIR)/$(TARGET).hex sizeafter $(ST_LINK_CLI) $(ST_LINK_ARGS) -q -c SWD -p $(BUILD_DIR)/$(TARGET).hex -Rst bin: $(BUILD_DIR)/$(TARGET).bin sizeafter + if [ ! -z "$(DFU_SUFFIX_ARGS)" ]; then \ + $(DFU_SUFFIX) $(DFU_SUFFIX_ARGS) -a $(BUILD_DIR)/$(TARGET).bin 1>/dev/null ;\ + fi $(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin; |