diff options
34 files changed, 144 insertions, 155 deletions
diff --git a/keyboards/40percentclub/ut47/post_rules.mk b/keyboards/40percentclub/ut47/post_rules.mk new file mode 100644 index 000000000..7051ee413 --- /dev/null +++ b/keyboards/40percentclub/ut47/post_rules.mk | |||
@@ -0,0 +1,4 @@ | |||
1 | ifeq ($(strip $(LED_ENABLE)), yes) | ||
2 | OPT_DEFS += -DLED_ENABLE | ||
3 | SRC += led.c | ||
4 | endif | ||
diff --git a/keyboards/40percentclub/ut47/rules.mk b/keyboards/40percentclub/ut47/rules.mk index 4f0d0bdb2..9c0e3a206 100644 --- a/keyboards/40percentclub/ut47/rules.mk +++ b/keyboards/40percentclub/ut47/rules.mk | |||
@@ -24,8 +24,3 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
24 | # custom matrix setup | 24 | # custom matrix setup |
25 | CUSTOM_MATRIX = yes | 25 | CUSTOM_MATRIX = yes |
26 | SRC += matrix.c protocol/serial_uart.c | 26 | SRC += matrix.c protocol/serial_uart.c |
27 | |||
28 | ifeq ($(strip $(LED_ENABLE)), yes) | ||
29 | OPT_DEFS += -DLED_ENABLE | ||
30 | SRC += led.c | ||
31 | endif | ||
diff --git a/keyboards/converter/palm_usb/post_rules.mk b/keyboards/converter/palm_usb/post_rules.mk new file mode 100644 index 000000000..9c1107670 --- /dev/null +++ b/keyboards/converter/palm_usb/post_rules.mk | |||
@@ -0,0 +1,7 @@ | |||
1 | ifdef HARDWARE_SERIAL | ||
2 | # Untested with palm_usb | ||
3 | SRC += protocol/serial_uart.c | ||
4 | OPT_DEFS += -DHARDWARE_SERIAL | ||
5 | else | ||
6 | SRC += protocol/serial_soft.c | ||
7 | endif | ||
diff --git a/keyboards/converter/palm_usb/rules.mk b/keyboards/converter/palm_usb/rules.mk index ff1ddc8f4..dc8cf1740 100644 --- a/keyboards/converter/palm_usb/rules.mk +++ b/keyboards/converter/palm_usb/rules.mk | |||
@@ -25,12 +25,5 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||
25 | CUSTOM_MATRIX = yes | 25 | CUSTOM_MATRIX = yes |
26 | 26 | ||
27 | SRC += matrix.c | 27 | SRC += matrix.c |
28 | ifdef HARDWARE_SERIAL | ||
29 | # Untested with palm_usb | ||
30 | SRC += protocol/serial_uart.c | ||
31 | OPT_DEFS += -DHARDWARE_SERIAL | ||
32 | else | ||
33 | SRC += protocol/serial_soft.c | ||
34 | endif | ||
35 | 28 | ||
36 | DEFAULT_FOLDER = converter/palm_usb/stowaway | 29 | DEFAULT_FOLDER = converter/palm_usb/stowaway |
diff --git a/keyboards/converter/sun_usb/post_rules.mk b/keyboards/converter/sun_usb/post_rules.mk new file mode 100644 index 000000000..2ea1f0a5b --- /dev/null +++ b/keyboards/converter/sun_usb/post_rules.mk | |||
@@ -0,0 +1,6 @@ | |||
1 | ifdef HARDWARE_SERIAL | ||
2 | SRC += protocol/serial_uart.c | ||
3 | OPT_DEFS += -DHARDWARE_SERIAL | ||
4 | else | ||
5 | SRC += protocol/serial_soft.c | ||
6 | endif | ||
diff --git a/keyboards/converter/sun_usb/rules.mk b/keyboards/converter/sun_usb/rules.mk index e863d2574..14dd57e1b 100644 --- a/keyboards/converter/sun_usb/rules.mk +++ b/keyboards/converter/sun_usb/rules.mk | |||
@@ -25,11 +25,5 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||
25 | CUSTOM_MATRIX = yes | 25 | CUSTOM_MATRIX = yes |
26 | 26 | ||
27 | SRC += matrix.c led.c | 27 | SRC += matrix.c led.c |
28 | ifdef HARDWARE_SERIAL | ||
29 | SRC += protocol/serial_uart.c | ||
30 | OPT_DEFS += -DHARDWARE_SERIAL | ||
31 | else | ||
32 | SRC += protocol/serial_soft.c | ||
33 | endif | ||
34 | 28 | ||
35 | DEFAULT_FOLDER = converter/sun_usb/type5 | 29 | DEFAULT_FOLDER = converter/sun_usb/type5 |
diff --git a/keyboards/dm9records/ergoinu/post_rules.mk b/keyboards/dm9records/ergoinu/post_rules.mk new file mode 100644 index 000000000..02aa48104 --- /dev/null +++ b/keyboards/dm9records/ergoinu/post_rules.mk | |||
@@ -0,0 +1,9 @@ | |||
1 | ifneq ($(strip $(ERGOINU)),) | ||
2 | ifeq ($(findstring promicroled, $(ERGOINU)), promicroled) | ||
3 | DISABLE_PROMICRO_LEDs = no | ||
4 | endif | ||
5 | endif | ||
6 | |||
7 | ifeq ($(strip $(DISABLE_PROMICRO_LEDs)), yes) | ||
8 | OPT_DEFS += -DDISABLE_PROMICRO_LEDs | ||
9 | endif | ||
diff --git a/keyboards/dm9records/ergoinu/rules.mk b/keyboards/dm9records/ergoinu/rules.mk index e3362ea31..4d98df442 100644 --- a/keyboards/dm9records/ergoinu/rules.mk +++ b/keyboards/dm9records/ergoinu/rules.mk | |||
@@ -29,13 +29,3 @@ SRC += matrix.c serial.c split_util.c | |||
29 | 29 | ||
30 | # ergoinu configs | 30 | # ergoinu configs |
31 | DISABLE_PROMICRO_LEDs = yes | 31 | DISABLE_PROMICRO_LEDs = yes |
32 | |||
33 | ifneq ($(strip $(ERGOINU)),) | ||
34 | ifeq ($(findstring promicroled, $(ERGOINU)), promicroled) | ||
35 | DISABLE_PROMICRO_LEDs = no | ||
36 | endif | ||
37 | endif | ||
38 | |||
39 | ifeq ($(strip $(DISABLE_PROMICRO_LEDs)), yes) | ||
40 | OPT_DEFS += -DDISABLE_PROMICRO_LEDs | ||
41 | endif | ||
diff --git a/keyboards/ergotaco/post_rules.mk b/keyboards/ergotaco/post_rules.mk new file mode 100644 index 000000000..0db3171b3 --- /dev/null +++ b/keyboards/ergotaco/post_rules.mk | |||
@@ -0,0 +1,8 @@ | |||
1 | |||
2 | # A bunch of stuff that you shouldn't touch unless you | ||
3 | # know what you're doing. | ||
4 | # | ||
5 | # No touchy, capiche? | ||
6 | ifeq ($(strip $(DEBUG_MATRIX)), yes) | ||
7 | OPT_DEFS += -DDEBUG_MATRIX | ||
8 | endif | ||
diff --git a/keyboards/ergotaco/rules.mk b/keyboards/ergotaco/rules.mk index 9fe0992ff..db236477b 100644 --- a/keyboards/ergotaco/rules.mk +++ b/keyboards/ergotaco/rules.mk | |||
@@ -14,6 +14,3 @@ COMMAND_ENABLE = yes | |||
14 | # | 14 | # |
15 | # No touchy, capiche? | 15 | # No touchy, capiche? |
16 | SRC += matrix.c i2c_master.c | 16 | SRC += matrix.c i2c_master.c |
17 | ifeq ($(strip $(DEBUG_MATRIX)), yes) | ||
18 | OPT_DEFS += -DDEBUG_MATRIX | ||
19 | endif | ||
diff --git a/keyboards/hhkb/ansi/post_rules.mk b/keyboards/hhkb/ansi/post_rules.mk new file mode 100644 index 000000000..bc6ad5cd4 --- /dev/null +++ b/keyboards/hhkb/ansi/post_rules.mk | |||
@@ -0,0 +1,18 @@ | |||
1 | ifeq ($(strip $(HHKB_RN42_ENABLE)), yes) | ||
2 | |||
3 | OPT_DEFS += -DHHKB_RN42_ENABLE | ||
4 | |||
5 | # Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT | ||
6 | # HHKB Alt controller. | ||
7 | RN42_DIR = ../rn42 | ||
8 | |||
9 | SRC += serial_uart.c \ | ||
10 | ../rn42/suart.S \ | ||
11 | ../rn42/rn42.c \ | ||
12 | ../rn42/rn42_task.c \ | ||
13 | ../rn42/battery.c \ | ||
14 | ../rn42/main.c | ||
15 | |||
16 | VPATH += $(RN42_DIR) | ||
17 | |||
18 | endif | ||
diff --git a/keyboards/hhkb/ansi/rules.mk b/keyboards/hhkb/ansi/rules.mk index b0f17c93a..56898e260 100644 --- a/keyboards/hhkb/ansi/rules.mk +++ b/keyboards/hhkb/ansi/rules.mk | |||
@@ -33,26 +33,6 @@ MIDI_ENABLE = no # MIDI support | |||
33 | # project specific files | 33 | # project specific files |
34 | SRC = matrix.c | 34 | SRC = matrix.c |
35 | 35 | ||
36 | ifeq ($(strip $(HHKB_RN42_ENABLE)), yes) | ||
37 | |||
38 | OPT_DEFS += -DHHKB_RN42_ENABLE | ||
39 | |||
40 | # Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT | ||
41 | # HHKB Alt controller. | ||
42 | RN42_DIR = ../rn42 | ||
43 | |||
44 | SRC += serial_uart.c \ | ||
45 | ../rn42/suart.S \ | ||
46 | ../rn42/rn42.c \ | ||
47 | ../rn42/rn42_task.c \ | ||
48 | ../rn42/battery.c \ | ||
49 | ../rn42/main.c | ||
50 | |||
51 | VPATH += $(RN42_DIR) | ||
52 | |||
53 | endif | ||
54 | |||
55 | |||
56 | # debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION | 36 | # debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION |
57 | # debug-on: all | 37 | # debug-on: all |
58 | 38 | ||
diff --git a/keyboards/hhkb/jp/post_rules.mk b/keyboards/hhkb/jp/post_rules.mk new file mode 100644 index 000000000..bc6ad5cd4 --- /dev/null +++ b/keyboards/hhkb/jp/post_rules.mk | |||
@@ -0,0 +1,18 @@ | |||
1 | ifeq ($(strip $(HHKB_RN42_ENABLE)), yes) | ||
2 | |||
3 | OPT_DEFS += -DHHKB_RN42_ENABLE | ||
4 | |||
5 | # Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT | ||
6 | # HHKB Alt controller. | ||
7 | RN42_DIR = ../rn42 | ||
8 | |||
9 | SRC += serial_uart.c \ | ||
10 | ../rn42/suart.S \ | ||
11 | ../rn42/rn42.c \ | ||
12 | ../rn42/rn42_task.c \ | ||
13 | ../rn42/battery.c \ | ||
14 | ../rn42/main.c | ||
15 | |||
16 | VPATH += $(RN42_DIR) | ||
17 | |||
18 | endif | ||
diff --git a/keyboards/hhkb/jp/rules.mk b/keyboards/hhkb/jp/rules.mk index 50e2c2c41..9b5b0b48b 100644 --- a/keyboards/hhkb/jp/rules.mk +++ b/keyboards/hhkb/jp/rules.mk | |||
@@ -33,26 +33,6 @@ MIDI_ENABLE = no # MIDI support | |||
33 | # project specific files | 33 | # project specific files |
34 | SRC = matrix.c | 34 | SRC = matrix.c |
35 | 35 | ||
36 | ifeq ($(strip $(HHKB_RN42_ENABLE)), yes) | ||
37 | |||
38 | OPT_DEFS += -DHHKB_RN42_ENABLE | ||
39 | |||
40 | # Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT | ||
41 | # HHKB Alt controller. | ||
42 | RN42_DIR = ../rn42 | ||
43 | |||
44 | SRC += serial_uart.c \ | ||
45 | ../rn42/suart.S \ | ||
46 | ../rn42/rn42.c \ | ||
47 | ../rn42/rn42_task.c \ | ||
48 | ../rn42/battery.c \ | ||
49 | ../rn42/main.c | ||
50 | |||
51 | VPATH += $(RN42_DIR) | ||
52 | |||
53 | endif | ||
54 | |||
55 | |||
56 | # debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION | 36 | # debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION |
57 | # debug-on: all | 37 | # debug-on: all |
58 | 38 | ||
diff --git a/keyboards/lfkeyboards/lfk78/post_rules.mk b/keyboards/lfkeyboards/lfk78/post_rules.mk new file mode 100644 index 000000000..03f975b9d --- /dev/null +++ b/keyboards/lfkeyboards/lfk78/post_rules.mk | |||
@@ -0,0 +1,14 @@ | |||
1 | # Extra source files for IS3731 lighting | ||
2 | SRC += TWIlib.c issi.c lighting.c | ||
3 | |||
4 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
5 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
6 | endif | ||
7 | |||
8 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
9 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
10 | endif | ||
11 | |||
12 | ifeq ($(strip $(CAPSLOCK_LED)), yes) | ||
13 | TMK_COMMON_DEFS += -DCAPSLOCK_LED | ||
14 | endif | ||
diff --git a/keyboards/lfkeyboards/lfk78/rules.mk b/keyboards/lfkeyboards/lfk78/rules.mk index 81f532615..972e09af5 100644 --- a/keyboards/lfkeyboards/lfk78/rules.mk +++ b/keyboards/lfkeyboards/lfk78/rules.mk | |||
@@ -24,19 +24,4 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install thi | |||
24 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms | 24 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms |
25 | CAPSLOCK_LED = no # Toggle back light LED of Caps Lock | 25 | CAPSLOCK_LED = no # Toggle back light LED of Caps Lock |
26 | 26 | ||
27 | # Extra source files for IS3731 lighting | ||
28 | SRC = TWIlib.c issi.c lighting.c | ||
29 | |||
30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
31 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
32 | endif | ||
33 | |||
34 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
35 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
36 | endif | ||
37 | |||
38 | ifeq ($(strip $(CAPSLOCK_LED)), yes) | ||
39 | TMK_COMMON_DEFS += -DCAPSLOCK_LED | ||
40 | endif | ||
41 | |||
42 | DEFAULT_FOLDER = lfkeyboards/lfk78/revj | 27 | DEFAULT_FOLDER = lfkeyboards/lfk78/revj |
diff --git a/keyboards/lfkeyboards/lfk87/post_rules.mk b/keyboards/lfkeyboards/lfk87/post_rules.mk new file mode 100644 index 000000000..563462dd9 --- /dev/null +++ b/keyboards/lfkeyboards/lfk87/post_rules.mk | |||
@@ -0,0 +1,13 @@ | |||
1 | ifeq ($(LFK_REV), A) | ||
2 | MCU = at90usb1286 | ||
3 | else | ||
4 | MCU = at90usb646 | ||
5 | endif | ||
6 | |||
7 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
8 | OPT_DEFS += -DISSI_ENABLE | ||
9 | endif | ||
10 | |||
11 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
12 | OPT_DEFS += -DWATCHDOG_ENABLE | ||
13 | endif | ||
diff --git a/keyboards/lfkeyboards/lfk87/rules.mk b/keyboards/lfkeyboards/lfk87/rules.mk index 7f5621b03..bc988f15a 100644 --- a/keyboards/lfkeyboards/lfk87/rules.mk +++ b/keyboards/lfkeyboards/lfk87/rules.mk | |||
@@ -6,11 +6,6 @@ | |||
6 | # | 6 | # |
7 | LFK_REV = C | 7 | LFK_REV = C |
8 | 8 | ||
9 | ifeq ($(LFK_REV), A) | ||
10 | MCU = at90usb1286 | ||
11 | else | ||
12 | MCU = at90usb646 | ||
13 | endif | ||
14 | BOOTLOADER = atmel-dfu | 9 | BOOTLOADER = atmel-dfu |
15 | OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV) | 10 | OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV) |
16 | 11 | ||
@@ -42,13 +37,3 @@ TAP_DANCE_ENABLE = no | |||
42 | 37 | ||
43 | ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled | 38 | ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled |
44 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms | 39 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms |
45 | |||
46 | |||
47 | |||
48 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
49 | OPT_DEFS += -DISSI_ENABLE | ||
50 | endif | ||
51 | |||
52 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
53 | OPT_DEFS += -DWATCHDOG_ENABLE | ||
54 | endif | ||
diff --git a/keyboards/lfkeyboards/lfkpad/post_rules.mk b/keyboards/lfkeyboards/lfkpad/post_rules.mk new file mode 100644 index 000000000..ad997587b --- /dev/null +++ b/keyboards/lfkeyboards/lfkpad/post_rules.mk | |||
@@ -0,0 +1,7 @@ | |||
1 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
2 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
3 | endif | ||
4 | |||
5 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
6 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
7 | endif | ||
diff --git a/keyboards/lfkeyboards/lfkpad/rules.mk b/keyboards/lfkeyboards/lfkpad/rules.mk index 942f11368..392a0bdb9 100644 --- a/keyboards/lfkeyboards/lfkpad/rules.mk +++ b/keyboards/lfkeyboards/lfkpad/rules.mk | |||
@@ -29,12 +29,4 @@ WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan() isn't run every | |||
29 | 29 | ||
30 | SRC = TWIlib.c issi.c lighting.c | 30 | SRC = TWIlib.c issi.c lighting.c |
31 | 31 | ||
32 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
33 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
34 | endif | ||
35 | |||
36 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
37 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
38 | endif | ||
39 | |||
40 | LAYOUTS = numpad_6x4 | 32 | LAYOUTS = numpad_6x4 |
diff --git a/keyboards/lfkeyboards/mini1800/post_rules.mk b/keyboards/lfkeyboards/mini1800/post_rules.mk new file mode 100644 index 000000000..f04e10e4a --- /dev/null +++ b/keyboards/lfkeyboards/mini1800/post_rules.mk | |||
@@ -0,0 +1,9 @@ | |||
1 | ifeq ($(LFK_REV), A) | ||
2 | MCU = at90usb1286 | ||
3 | else | ||
4 | MCU = at90usb646 | ||
5 | endif | ||
6 | |||
7 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
8 | # TMK_COMMON_DEFS += -DISSI_ENABLE | ||
9 | endif | ||
diff --git a/keyboards/lfkeyboards/mini1800/rules.mk b/keyboards/lfkeyboards/mini1800/rules.mk index a9c29c4b9..c9a9b0105 100644 --- a/keyboards/lfkeyboards/mini1800/rules.mk +++ b/keyboards/lfkeyboards/mini1800/rules.mk | |||
@@ -7,21 +7,12 @@ | |||
7 | # Set to A or C | 7 | # Set to A or C |
8 | LFK_REV = C | 8 | LFK_REV = C |
9 | 9 | ||
10 | ifeq ($(LFK_REV), A) | ||
11 | MCU = at90usb1286 | ||
12 | else | ||
13 | MCU = at90usb646 | ||
14 | endif | ||
15 | BOOTLOADER = atmel-dfu | 10 | BOOTLOADER = atmel-dfu |
16 | OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV) | 11 | OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV) |
17 | 12 | ||
18 | # Extra source files for IS3731 lighting | 13 | # Extra source files for IS3731 lighting |
19 | SRC = TWIlib.c issi.c lighting.c | 14 | SRC = TWIlib.c issi.c lighting.c |
20 | 15 | ||
21 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
22 | # TMK_COMMON_DEFS += -DISSI_ENABLE | ||
23 | endif | ||
24 | |||
25 | # Build Options | 16 | # Build Options |
26 | # change yes to no to disable | 17 | # change yes to no to disable |
27 | # | 18 | # |
diff --git a/keyboards/manta60/post_rules.mk b/keyboards/manta60/post_rules.mk new file mode 100644 index 000000000..e26b52df3 --- /dev/null +++ b/keyboards/manta60/post_rules.mk | |||
@@ -0,0 +1,3 @@ | |||
1 | ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | ||
2 | OPT_DEFS += -DIOS_DEVICE_ENABLE | ||
3 | endif | ||
diff --git a/keyboards/manta60/rules.mk b/keyboards/manta60/rules.mk index db012a155..dbd3ce309 100644 --- a/keyboards/manta60/rules.mk +++ b/keyboards/manta60/rules.mk | |||
@@ -23,7 +23,3 @@ AUDIO_ENABLE = no # Audio output | |||
23 | SPLIT_KEYBOARD = yes | 23 | SPLIT_KEYBOARD = yes |
24 | 24 | ||
25 | IOS_DEVICE_ENABLE = no # connect to IOS device (iPad, iPhone) | 25 | IOS_DEVICE_ENABLE = no # connect to IOS device (iPad, iPhone) |
26 | |||
27 | ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | ||
28 | OPT_DEFS += -DIOS_DEVICE_ENABLE | ||
29 | endif | ||
diff --git a/keyboards/mschwingen/modelm/post_rules.mk b/keyboards/mschwingen/modelm/post_rules.mk new file mode 100644 index 000000000..a1c2040f4 --- /dev/null +++ b/keyboards/mschwingen/modelm/post_rules.mk | |||
@@ -0,0 +1,3 @@ | |||
1 | ifeq ($(strip $(UART_DEBUG)), yes) | ||
2 | OPT_DEFS += -DUART_DEBUG | ||
3 | endif | ||
diff --git a/keyboards/mschwingen/modelm/rules.mk b/keyboards/mschwingen/modelm/rules.mk index ef70f5449..d8bcf9b4a 100644 --- a/keyboards/mschwingen/modelm/rules.mk +++ b/keyboards/mschwingen/modelm/rules.mk | |||
@@ -36,8 +36,4 @@ OPT_DEFS += -DSLEEP_LED_ENABLE # we need our own sleep callbacks to turn of WS28 | |||
36 | 36 | ||
37 | LTO_ENABLE = yes | 37 | LTO_ENABLE = yes |
38 | 38 | ||
39 | ifeq ($(strip $(UART_DEBUG)), yes) | ||
40 | OPT_DEFS += -DUART_DEBUG | ||
41 | endif | ||
42 | |||
43 | DEFAULT_FOLDER = mschwingen/modelm/led_wired | 39 | DEFAULT_FOLDER = mschwingen/modelm/led_wired |
diff --git a/keyboards/newgame40/post_rules.mk b/keyboards/newgame40/post_rules.mk new file mode 100644 index 000000000..68229fe12 --- /dev/null +++ b/keyboards/newgame40/post_rules.mk | |||
@@ -0,0 +1,3 @@ | |||
1 | ifeq ($(strip $(IOS_DEVICE_ENABLE )), yes) | ||
2 | OPT_DEFS += -DIOS_DEVICE_ENABLE | ||
3 | endif | ||
diff --git a/keyboards/newgame40/rules.mk b/keyboards/newgame40/rules.mk index 87d565cff..4b580c7d2 100644 --- a/keyboards/newgame40/rules.mk +++ b/keyboards/newgame40/rules.mk | |||
@@ -21,10 +21,6 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | |||
21 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | 21 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. |
22 | IOS_DEVICE_ENABLE = no # connect to IOS Device | 22 | IOS_DEVICE_ENABLE = no # connect to IOS Device |
23 | 23 | ||
24 | ifeq ($(strip $(IOS_DEVICE_ENABLE )), yes) | ||
25 | OPT_DEFS += -DIOS_DEVICE_ENABLE | ||
26 | endif | ||
27 | |||
28 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 24 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
29 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 25 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
30 | 26 | ||
diff --git a/keyboards/numatreus/post_rules.mk b/keyboards/numatreus/post_rules.mk new file mode 100644 index 000000000..1f49875d0 --- /dev/null +++ b/keyboards/numatreus/post_rules.mk | |||
@@ -0,0 +1,3 @@ | |||
1 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | ||
2 | OPT_DEFS += -DLED_ANIMATIONS | ||
3 | endif | ||
diff --git a/keyboards/numatreus/rules.mk b/keyboards/numatreus/rules.mk index 1dd016ab0..f9d549896 100644 --- a/keyboards/numatreus/rules.mk +++ b/keyboards/numatreus/rules.mk | |||
@@ -19,9 +19,5 @@ UNICODE_ENABLE = yes # Unicode | |||
19 | RGBLIGHT_ENABLE = no | 19 | RGBLIGHT_ENABLE = no |
20 | LED_ANIMATIONS = no | 20 | LED_ANIMATIONS = no |
21 | 21 | ||
22 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | ||
23 | OPT_DEFS += -DLED_ANIMATIONS | ||
24 | endif | ||
25 | |||
26 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
27 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
diff --git a/keyboards/rgbkb/zen/post_rules.mk b/keyboards/rgbkb/zen/post_rules.mk new file mode 100644 index 000000000..3ddb449ef --- /dev/null +++ b/keyboards/rgbkb/zen/post_rules.mk | |||
@@ -0,0 +1,14 @@ | |||
1 | ifeq ($(strip $(CTPC)), yes) | ||
2 | CONVERT_TO_PROTON_C=yes | ||
3 | endif | ||
4 | |||
5 | ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes) | ||
6 | SPLIT_KEYBOARD = no # currently unsupported on ARM | ||
7 | RGBLIGHT_ENABLE = no # currently unsupported on ARM | ||
8 | |||
9 | EXTRAFLAGS += -DUSE_PROTON_C | ||
10 | else | ||
11 | # Currently moved to Pro Micro only section because of lack of Proton-C support | ||
12 | SPLIT_KEYBOARD = yes | ||
13 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | ||
14 | endif | ||
diff --git a/keyboards/rgbkb/zen/rev2/post_rules.mk b/keyboards/rgbkb/zen/rev2/post_rules.mk new file mode 100644 index 000000000..2a4397e98 --- /dev/null +++ b/keyboards/rgbkb/zen/rev2/post_rules.mk | |||
@@ -0,0 +1,5 @@ | |||
1 | # Setup so that OLED can be turned on/off easily | ||
2 | ifeq ($(strip $(OLED_ENABLE)), yes) | ||
3 | # Custom local font file | ||
4 | OPT_DEFS += -DOLED_FONT_H=\"common/glcdfont.c\" | ||
5 | endif | ||
diff --git a/keyboards/rgbkb/zen/rev2/rules.mk b/keyboards/rgbkb/zen/rev2/rules.mk index 9bb8b8cd0..6dd9d2e27 100644 --- a/keyboards/rgbkb/zen/rev2/rules.mk +++ b/keyboards/rgbkb/zen/rev2/rules.mk | |||
@@ -1,9 +1,3 @@ | |||
1 | ENCODER_ENABLE = yes | 1 | ENCODER_ENABLE = yes |
2 | 2 | ||
3 | OLED_ENABLE = no | 3 | OLED_ENABLE = no |
4 | |||
5 | # Setup so that OLED can be turned on/off easily | ||
6 | ifeq ($(strip $(OLED_ENABLE)), yes) | ||
7 | # Custom local font file | ||
8 | OPT_DEFS += -DOLED_FONT_H=\"common/glcdfont.c\" | ||
9 | endif | ||
diff --git a/keyboards/rgbkb/zen/rules.mk b/keyboards/rgbkb/zen/rules.mk index c18c84be5..0bf7eae65 100644 --- a/keyboards/rgbkb/zen/rules.mk +++ b/keyboards/rgbkb/zen/rules.mk | |||
@@ -4,21 +4,6 @@ MCU = atmega32u4 | |||
4 | # Bootloader selection | 4 | # Bootloader selection |
5 | BOOTLOADER = caterina | 5 | BOOTLOADER = caterina |
6 | 6 | ||
7 | ifeq ($(strip $(CTPC)), yes) | ||
8 | CONVERT_TO_PROTON_C=yes | ||
9 | endif | ||
10 | |||
11 | ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes) | ||
12 | SPLIT_KEYBOARD = no # currently unsupported on ARM | ||
13 | RGBLIGHT_ENABLE = no # currently unsupported on ARM | ||
14 | |||
15 | EXTRAFLAGS += -DUSE_PROTON_C | ||
16 | else | ||
17 | # Currently moved to Pro Micro only section because of lack of Proton-C support | ||
18 | SPLIT_KEYBOARD = yes | ||
19 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | ||
20 | endif | ||
21 | |||
22 | # Build Options | 7 | # Build Options |
23 | # change to "no" to disable the options, or define them in the Makefile in | 8 | # change to "no" to disable the options, or define them in the Makefile in |
24 | # the appropriate keymap folder that will get included automatically | 9 | # the appropriate keymap folder that will get included automatically |