diff options
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/arm_atsam/flash.mk | 2 | ||||
-rw-r--r-- | platforms/avr/flash.mk | 14 | ||||
-rw-r--r-- | platforms/chibios/flash.mk | 10 |
3 files changed, 13 insertions, 13 deletions
diff --git a/platforms/arm_atsam/flash.mk b/platforms/arm_atsam/flash.mk index 444ba77f5..f31d4b4d9 100644 --- a/platforms/arm_atsam/flash.mk +++ b/platforms/arm_atsam/flash.mk | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | flash: bin | 6 | flash: bin |
7 | ifneq ($(strip $(PROGRAM_CMD)),) | 7 | ifneq ($(strip $(PROGRAM_CMD)),) |
8 | $(PROGRAM_CMD) | 8 | $(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD) |
9 | else | 9 | else |
10 | $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)" | 10 | $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)" |
11 | endif | 11 | endif |
diff --git a/platforms/avr/flash.mk b/platforms/avr/flash.mk index e679bf0ac..8eef5fbb0 100644 --- a/platforms/avr/flash.mk +++ b/platforms/avr/flash.mk | |||
@@ -161,19 +161,19 @@ hid_bootloader: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware | |||
161 | 161 | ||
162 | flash: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware | 162 | flash: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware |
163 | ifneq ($(strip $(PROGRAM_CMD)),) | 163 | ifneq ($(strip $(PROGRAM_CMD)),) |
164 | $(PROGRAM_CMD) | 164 | $(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD) |
165 | else ifeq ($(strip $(BOOTLOADER)), caterina) | 165 | else ifeq ($(strip $(BOOTLOADER)), caterina) |
166 | $(call EXEC_AVRDUDE) | 166 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_AVRDUDE) |
167 | else ifeq ($(strip $(BOOTLOADER)), halfkay) | 167 | else ifeq ($(strip $(BOOTLOADER)), halfkay) |
168 | $(call EXEC_TEENSY) | 168 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_TEENSY) |
169 | else ifeq (dfu,$(findstring dfu,$(BOOTLOADER))) | 169 | else ifeq (dfu,$(findstring dfu,$(BOOTLOADER))) |
170 | $(call EXEC_DFU) | 170 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_DFU) |
171 | else ifeq ($(strip $(BOOTLOADER)), USBasp) | 171 | else ifeq ($(strip $(BOOTLOADER)), USBasp) |
172 | $(call EXEC_USBASP) | 172 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_USBASP) |
173 | else ifeq ($(strip $(BOOTLOADER)), bootloadHID) | 173 | else ifeq ($(strip $(BOOTLOADER)), bootloadHID) |
174 | $(call EXEC_BOOTLOADHID) | 174 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_BOOTLOADHID) |
175 | else ifeq ($(strip $(BOOTLOADER)), qmk-hid) | 175 | else ifeq ($(strip $(BOOTLOADER)), qmk-hid) |
176 | $(call EXEC_HID_LUFA) | 176 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_HID_LUFA) |
177 | else | 177 | else |
178 | $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_BOOTLOADER)" | 178 | $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_BOOTLOADER)" |
179 | endif | 179 | endif |
diff --git a/platforms/chibios/flash.mk b/platforms/chibios/flash.mk index 46aff6e4b..c0b32c2f2 100644 --- a/platforms/chibios/flash.mk +++ b/platforms/chibios/flash.mk | |||
@@ -73,15 +73,15 @@ teensy: $(BUILD_DIR)/$(TARGET).hex cpfirmware sizeafter | |||
73 | 73 | ||
74 | flash: $(BUILD_DIR)/$(TARGET).bin cpfirmware sizeafter | 74 | flash: $(BUILD_DIR)/$(TARGET).bin cpfirmware sizeafter |
75 | ifneq ($(strip $(PROGRAM_CMD)),) | 75 | ifneq ($(strip $(PROGRAM_CMD)),) |
76 | $(PROGRAM_CMD) | 76 | $(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD) |
77 | else ifeq ($(strip $(BOOTLOADER)),kiibohd) | 77 | else ifeq ($(strip $(BOOTLOADER)),kiibohd) |
78 | $(call EXEC_DFU_UTIL) | 78 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_DFU_UTIL) |
79 | else ifeq ($(strip $(MCU_FAMILY)),KINETIS) | 79 | else ifeq ($(strip $(MCU_FAMILY)),KINETIS) |
80 | $(call EXEC_TEENSY) | 80 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_TEENSY) |
81 | else ifeq ($(strip $(MCU_FAMILY)),MIMXRT1062) | 81 | else ifeq ($(strip $(MCU_FAMILY)),MIMXRT1062) |
82 | $(call EXEC_TEENSY) | 82 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_TEENSY) |
83 | else ifeq ($(strip $(MCU_FAMILY)),STM32) | 83 | else ifeq ($(strip $(MCU_FAMILY)),STM32) |
84 | $(call EXEC_DFU_UTIL) | 84 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_DFU_UTIL) |
85 | else | 85 | else |
86 | $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_BOOTLOADER)" | 86 | $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_BOOTLOADER)" |
87 | endif | 87 | endif |