aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/deltasplit75/rules.mk12
-rw-r--r--keyboards/handwired/atreus50/rules.mk12
-rw-r--r--keyboards/handwired/magicforce61/rules.mk12
-rw-r--r--keyboards/handwired/magicforce68/rules.mk12
-rw-r--r--keyboards/handwired/numpad20/rules.mk12
-rw-r--r--keyboards/handwired/ortho5x13/rules.mk12
-rw-r--r--keyboards/lets_split/rules.mk12
-rw-r--r--keyboards/nyquist/rules.mk12
-rw-r--r--keyboards/orthodox/rules.mk12
-rw-r--r--tmk_core/avr.mk14
10 files changed, 14 insertions, 108 deletions
diff --git a/keyboards/deltasplit75/rules.mk b/keyboards/deltasplit75/rules.mk
index 0efa78550..1aee5313c 100644
--- a/keyboards/deltasplit75/rules.mk
+++ b/keyboards/deltasplit75/rules.mk
@@ -73,15 +73,3 @@ USE_I2C ?= yes
73SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend 73SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
74 74
75CUSTOM_MATRIX = yes 75CUSTOM_MATRIX = yes
76
77avrdude: build
78 ls /dev/tty* > /tmp/1; \
79 echo "Reset your Pro Micro now"; \
80 while [[ -z $$USB ]]; do \
81 sleep 1; \
82 ls /dev/tty* > /tmp/2; \
83 USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
84 done; \
85 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
86
87.PHONY: avrdude
diff --git a/keyboards/handwired/atreus50/rules.mk b/keyboards/handwired/atreus50/rules.mk
index 5e808dfa7..2e2d48f6a 100644
--- a/keyboards/handwired/atreus50/rules.mk
+++ b/keyboards/handwired/atreus50/rules.mk
@@ -67,15 +67,3 @@ RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this
67 67
68# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 68# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
69SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 69SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
70
71avrdude: build
72 ls /dev/tty* > /tmp/1; \
73 echo "Reset your Pro Micro now"; \
74 while [[ -z $$USB ]]; do \
75 sleep 1; \
76 ls /dev/tty* > /tmp/2; \
77 USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
78 done; \
79 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
80
81.PHONY: avrdude
diff --git a/keyboards/handwired/magicforce61/rules.mk b/keyboards/handwired/magicforce61/rules.mk
index 913bcb93e..a3fdd3d70 100644
--- a/keyboards/handwired/magicforce61/rules.mk
+++ b/keyboards/handwired/magicforce61/rules.mk
@@ -69,15 +69,3 @@ AUDIO_ENABLE ?= no # Audio output on port C6
69ifndef QUANTUM_DIR 69ifndef QUANTUM_DIR
70 include ../../../Makefile 70 include ../../../Makefile
71endif 71endif
72
73avrdude: build
74 ls /dev/tty* > /tmp/1; \
75 echo "Reset your Pro Micro now"; \
76 while [[ -z $$USB ]]; do \
77 sleep 1; \
78 ls /dev/tty* > /tmp/2; \
79 USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
80 done; \
81 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
82
83.PHONY: avrdude
diff --git a/keyboards/handwired/magicforce68/rules.mk b/keyboards/handwired/magicforce68/rules.mk
index 0e07bde40..0d21623ce 100644
--- a/keyboards/handwired/magicforce68/rules.mk
+++ b/keyboards/handwired/magicforce68/rules.mk
@@ -69,15 +69,3 @@ AUDIO_ENABLE = no # Audio output on port C6
69ifndef QUANTUM_DIR 69ifndef QUANTUM_DIR
70 include ../../../Makefile 70 include ../../../Makefile
71endif 71endif
72
73avrdude: build
74 ls /dev/tty* > /tmp/1; \
75 echo "Reset your Pro Micro now"; \
76 while [[ -z $$USB ]]; do \
77 sleep 1; \
78 ls /dev/tty* > /tmp/2; \
79 USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
80 done; \
81 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
82
83.PHONY: avrdude
diff --git a/keyboards/handwired/numpad20/rules.mk b/keyboards/handwired/numpad20/rules.mk
index 0e07bde40..0d21623ce 100644
--- a/keyboards/handwired/numpad20/rules.mk
+++ b/keyboards/handwired/numpad20/rules.mk
@@ -69,15 +69,3 @@ AUDIO_ENABLE = no # Audio output on port C6
69ifndef QUANTUM_DIR 69ifndef QUANTUM_DIR
70 include ../../../Makefile 70 include ../../../Makefile
71endif 71endif
72
73avrdude: build
74 ls /dev/tty* > /tmp/1; \
75 echo "Reset your Pro Micro now"; \
76 while [[ -z $$USB ]]; do \
77 sleep 1; \
78 ls /dev/tty* > /tmp/2; \
79 USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
80 done; \
81 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
82
83.PHONY: avrdude
diff --git a/keyboards/handwired/ortho5x13/rules.mk b/keyboards/handwired/ortho5x13/rules.mk
index 0e07bde40..0d21623ce 100644
--- a/keyboards/handwired/ortho5x13/rules.mk
+++ b/keyboards/handwired/ortho5x13/rules.mk
@@ -69,15 +69,3 @@ AUDIO_ENABLE = no # Audio output on port C6
69ifndef QUANTUM_DIR 69ifndef QUANTUM_DIR
70 include ../../../Makefile 70 include ../../../Makefile
71endif 71endif
72
73avrdude: build
74 ls /dev/tty* > /tmp/1; \
75 echo "Reset your Pro Micro now"; \
76 while [[ -z $$USB ]]; do \
77 sleep 1; \
78 ls /dev/tty* > /tmp/2; \
79 USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
80 done; \
81 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
82
83.PHONY: avrdude
diff --git a/keyboards/lets_split/rules.mk b/keyboards/lets_split/rules.mk
index cc87ee31c..c2b7d556e 100644
--- a/keyboards/lets_split/rules.mk
+++ b/keyboards/lets_split/rules.mk
@@ -74,15 +74,3 @@ USE_I2C = yes
74SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 74SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
75 75
76CUSTOM_MATRIX = yes 76CUSTOM_MATRIX = yes
77
78avrdude: build
79 ls /dev/tty* > /tmp/1; \
80 echo "Reset your Pro Micro now"; \
81 while [ -z $$USB ]; do \
82 sleep 1; \
83 ls /dev/tty* > /tmp/2; \
84 USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
85 done; \
86 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
87
88.PHONY: avrdude
diff --git a/keyboards/nyquist/rules.mk b/keyboards/nyquist/rules.mk
index dfcff1d90..3f40ff2f8 100644
--- a/keyboards/nyquist/rules.mk
+++ b/keyboards/nyquist/rules.mk
@@ -73,15 +73,3 @@ USE_I2C = yes
73SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 73SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
74 74
75CUSTOM_MATRIX = yes 75CUSTOM_MATRIX = yes
76
77avrdude: build
78 ls /dev/tty* > /tmp/1; \
79 echo "Reset your Pro Micro now"; \
80 while [[ -z $$USB ]]; do \
81 sleep 1; \
82 ls /dev/tty* > /tmp/2; \
83 USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
84 done; \
85 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
86
87.PHONY: avrdude
diff --git a/keyboards/orthodox/rules.mk b/keyboards/orthodox/rules.mk
index dfcff1d90..3f40ff2f8 100644
--- a/keyboards/orthodox/rules.mk
+++ b/keyboards/orthodox/rules.mk
@@ -73,15 +73,3 @@ USE_I2C = yes
73SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 73SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
74 74
75CUSTOM_MATRIX = yes 75CUSTOM_MATRIX = yes
76
77avrdude: build
78 ls /dev/tty* > /tmp/1; \
79 echo "Reset your Pro Micro now"; \
80 while [[ -z $$USB ]]; do \
81 sleep 1; \
82 ls /dev/tty* > /tmp/2; \
83 USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
84 done; \
85 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
86
87.PHONY: avrdude
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk
index 4af34ba57..0d0eec3bf 100644
--- a/tmk_core/avr.mk
+++ b/tmk_core/avr.mk
@@ -144,6 +144,20 @@ dfu-ee: $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).eep
144 fi 144 fi
145 $(DFU_PROGRAMMER) $(MCU) reset 145 $(DFU_PROGRAMMER) $(MCU) reset
146 146
147avrdude: $(BUILD_DIR)/$(TARGET).hex
148 ls /dev/tty* > /tmp/1; \
149 echo "Detecting Pro Micro port, reset your Pro Micro now.\c"; \
150 while [ -z $$USB ]; do \
151 sleep 1; \
152 echo ".\c"; \
153 ls /dev/tty* > /tmp/2; \
154 USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
155 done; \
156 echo ""; \
157 echo "Detected Pro Micro port at $$USB"; \
158 sleep 1; \
159 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
160
147# Convert hex to bin. 161# Convert hex to bin.
148flashbin: $(BUILD_DIR)/$(TARGET).hex 162flashbin: $(BUILD_DIR)/$(TARGET).hex
149 $(OBJCOPY) -Iihex -Obinary $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin 163 $(OBJCOPY) -Iihex -Obinary $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin