aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'platforms')
-rw-r--r--platforms/arm_atsam/flash.mk2
-rw-r--r--platforms/avr/flash.mk14
-rw-r--r--platforms/chibios/flash.mk10
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
6flash: bin 6flash: bin
7ifneq ($(strip $(PROGRAM_CMD)),) 7ifneq ($(strip $(PROGRAM_CMD)),)
8 $(PROGRAM_CMD) 8 $(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD)
9else 9else
10 $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)" 10 $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)"
11endif 11endif
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
162flash: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware 162flash: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware
163ifneq ($(strip $(PROGRAM_CMD)),) 163ifneq ($(strip $(PROGRAM_CMD)),)
164 $(PROGRAM_CMD) 164 $(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD)
165else ifeq ($(strip $(BOOTLOADER)), caterina) 165else ifeq ($(strip $(BOOTLOADER)), caterina)
166 $(call EXEC_AVRDUDE) 166 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_AVRDUDE)
167else ifeq ($(strip $(BOOTLOADER)), halfkay) 167else ifeq ($(strip $(BOOTLOADER)), halfkay)
168 $(call EXEC_TEENSY) 168 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_TEENSY)
169else ifeq (dfu,$(findstring dfu,$(BOOTLOADER))) 169else ifeq (dfu,$(findstring dfu,$(BOOTLOADER)))
170 $(call EXEC_DFU) 170 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_DFU)
171else ifeq ($(strip $(BOOTLOADER)), USBasp) 171else ifeq ($(strip $(BOOTLOADER)), USBasp)
172 $(call EXEC_USBASP) 172 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_USBASP)
173else ifeq ($(strip $(BOOTLOADER)), bootloadHID) 173else ifeq ($(strip $(BOOTLOADER)), bootloadHID)
174 $(call EXEC_BOOTLOADHID) 174 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_BOOTLOADHID)
175else ifeq ($(strip $(BOOTLOADER)), qmk-hid) 175else ifeq ($(strip $(BOOTLOADER)), qmk-hid)
176 $(call EXEC_HID_LUFA) 176 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_HID_LUFA)
177else 177else
178 $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_BOOTLOADER)" 178 $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_BOOTLOADER)"
179endif 179endif
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
74flash: $(BUILD_DIR)/$(TARGET).bin cpfirmware sizeafter 74flash: $(BUILD_DIR)/$(TARGET).bin cpfirmware sizeafter
75ifneq ($(strip $(PROGRAM_CMD)),) 75ifneq ($(strip $(PROGRAM_CMD)),)
76 $(PROGRAM_CMD) 76 $(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD)
77else ifeq ($(strip $(BOOTLOADER)),kiibohd) 77else ifeq ($(strip $(BOOTLOADER)),kiibohd)
78 $(call EXEC_DFU_UTIL) 78 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_DFU_UTIL)
79else ifeq ($(strip $(MCU_FAMILY)),KINETIS) 79else ifeq ($(strip $(MCU_FAMILY)),KINETIS)
80 $(call EXEC_TEENSY) 80 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_TEENSY)
81else ifeq ($(strip $(MCU_FAMILY)),MIMXRT1062) 81else ifeq ($(strip $(MCU_FAMILY)),MIMXRT1062)
82 $(call EXEC_TEENSY) 82 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_TEENSY)
83else ifeq ($(strip $(MCU_FAMILY)),STM32) 83else ifeq ($(strip $(MCU_FAMILY)),STM32)
84 $(call EXEC_DFU_UTIL) 84 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_DFU_UTIL)
85else 85else
86 $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_BOOTLOADER)" 86 $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_BOOTLOADER)"
87endif 87endif