diff options
-rw-r--r-- | message.mk | 1 | ||||
-rw-r--r-- | tmk_core/avr.mk | 4 | ||||
-rw-r--r-- | tmk_core/chibios.mk | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/message.mk b/message.mk index c8d2135d5..dfbde2845 100644 --- a/message.mk +++ b/message.mk | |||
@@ -87,3 +87,4 @@ MSG_PYTHON_MISSING = $(WARN_COLOR)WARNING:$(NO_COLOR)\n \ | |||
87 | Please run $(BOLD)util/qmk_install.sh$(NO_COLOR) to install all the dependencies QMK requires.\n\n | 87 | Please run $(BOLD)util/qmk_install.sh$(NO_COLOR) to install all the dependencies QMK requires.\n\n |
88 | MSG_FLASH_BOOTLOADER = $(WARN_COLOR)WARNING:$(NO_COLOR) This board's bootloader is not specified or is not supported by the \":flash\" target at this time.\n\n | 88 | MSG_FLASH_BOOTLOADER = $(WARN_COLOR)WARNING:$(NO_COLOR) This board's bootloader is not specified or is not supported by the \":flash\" target at this time.\n\n |
89 | MSG_FLASH_ARCH = $(WARN_COLOR)WARNING:$(NO_COLOR) This board's architecture is not supported by the \":flash\" target at this time.\n\n | 89 | MSG_FLASH_ARCH = $(WARN_COLOR)WARNING:$(NO_COLOR) This board's architecture is not supported by the \":flash\" target at this time.\n\n |
90 | MSG_BOOTLOADER_NOT_FOUND = $(ERROR_COLOR)ERROR:$(NO_COLOR) Bootloader not found. Trying again in 5s.\n | ||
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk index 775f2a996..40dcdc3f6 100644 --- a/tmk_core/avr.mk +++ b/tmk_core/avr.mk | |||
@@ -147,7 +147,7 @@ define EXEC_DFU | |||
147 | echo "Flashing '$(1)' for EE_HANDS split keyboard support." ;\ | 147 | echo "Flashing '$(1)' for EE_HANDS split keyboard support." ;\ |
148 | fi; \ | 148 | fi; \ |
149 | until $(DFU_PROGRAMMER) $(MCU) get bootloader-version; do\ | 149 | until $(DFU_PROGRAMMER) $(MCU) get bootloader-version; do\ |
150 | echo "Error: Bootloader not found. Trying again in 5s." ;\ | 150 | printf "$(MSG_FLASH_BOOTLOADER)" ;\ |
151 | sleep 5 ;\ | 151 | sleep 5 ;\ |
152 | done; \ | 152 | done; \ |
153 | if $(DFU_PROGRAMMER) --version 2>&1 | $(GREP) -q 0.7 ; then\ | 153 | if $(DFU_PROGRAMMER) --version 2>&1 | $(GREP) -q 0.7 ; then\ |
@@ -252,7 +252,7 @@ define EXEC_BOOTLOADHID | |||
252 | # bootloadHid executable has no cross platform detect methods | 252 | # bootloadHid executable has no cross platform detect methods |
253 | # so keep running bootloadHid if the output contains "The specified device was not found" | 253 | # so keep running bootloadHid if the output contains "The specified device was not found" |
254 | until $(BOOTLOADHID_PROGRAMMER) -r $(BUILD_DIR)/$(TARGET).hex 2>&1 | tee /dev/stderr | grep -v "device was not found"; do\ | 254 | until $(BOOTLOADHID_PROGRAMMER) -r $(BUILD_DIR)/$(TARGET).hex 2>&1 | tee /dev/stderr | grep -v "device was not found"; do\ |
255 | echo "Error: Bootloader not found. Trying again in 5s." ;\ | 255 | printf "$(MSG_FLASH_BOOTLOADER)" ;\ |
256 | sleep 5 ;\ | 256 | sleep 5 ;\ |
257 | done | 257 | done |
258 | endef | 258 | endef |
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk index 4b5b6d00b..5c757ec89 100644 --- a/tmk_core/chibios.mk +++ b/tmk_core/chibios.mk | |||
@@ -236,7 +236,7 @@ qmk: $(BUILD_DIR)/$(TARGET).bin | |||
236 | 236 | ||
237 | define EXEC_DFU_UTIL | 237 | define EXEC_DFU_UTIL |
238 | until $(DFU_UTIL) -l | grep -q "Found DFU"; do\ | 238 | until $(DFU_UTIL) -l | grep -q "Found DFU"; do\ |
239 | echo "Error: Bootloader not found. Trying again in 5s." ;\ | 239 | printf "$(MSG_FLASH_BOOTLOADER)" ;\ |
240 | sleep 5 ;\ | 240 | sleep 5 ;\ |
241 | done | 241 | done |
242 | $(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin | 242 | $(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin |