diff options
author | Drashna Jaelre <drashna@live.com> | 2019-12-13 03:36:37 -0800 |
---|---|---|
committer | Joel Challis <git@zvecr.com> | 2019-12-13 11:36:37 +0000 |
commit | 2d1c985ff44ecfe54fe82021e0326b3c7b07db9f (patch) | |
tree | 28c3ec099a67b5139b11e6d8333bf144669d957d /tmk_core/protocol.mk | |
parent | e4818cf7323bb8f437db625903ebe471deaab335 (diff) | |
download | qmk_firmware-2d1c985ff44ecfe54fe82021e0326b3c7b07db9f.tar.gz qmk_firmware-2d1c985ff44ecfe54fe82021e0326b3c7b07db9f.zip |
core: Fix build config in protocol.mk (#7620)
Backports commits from tmk_keyboard
Diffstat (limited to 'tmk_core/protocol.mk')
-rw-r--r-- | tmk_core/protocol.mk | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/tmk_core/protocol.mk b/tmk_core/protocol.mk index 78b9deb29..0c41642b9 100644 --- a/tmk_core/protocol.mk +++ b/tmk_core/protocol.mk | |||
@@ -1,58 +1,57 @@ | |||
1 | PROTOCOL_DIR = protocol | 1 | PROTOCOL_DIR = protocol |
2 | 2 | ||
3 | 3 | ifeq ($(strip $(PS2_MOUSE_ENABLE)), yes) | |
4 | ifdef PS2_MOUSE_ENABLE | ||
5 | SRC += $(PROTOCOL_DIR)/ps2_mouse.c | 4 | SRC += $(PROTOCOL_DIR)/ps2_mouse.c |
6 | OPT_DEFS += -DPS2_MOUSE_ENABLE | 5 | OPT_DEFS += -DPS2_MOUSE_ENABLE |
7 | OPT_DEFS += -DMOUSE_ENABLE | 6 | OPT_DEFS += -DMOUSE_ENABLE |
8 | endif | 7 | endif |
9 | 8 | ||
10 | ifdef PS2_USE_BUSYWAIT | 9 | ifeq ($(strip $(PS2_USE_BUSYWAIT)), yes) |
11 | SRC += protocol/ps2_busywait.c | 10 | SRC += protocol/ps2_busywait.c |
12 | SRC += protocol/ps2_io_avr.c | 11 | SRC += protocol/ps2_io_avr.c |
13 | OPT_DEFS += -DPS2_USE_BUSYWAIT | 12 | OPT_DEFS += -DPS2_USE_BUSYWAIT |
14 | endif | 13 | endif |
15 | 14 | ||
16 | ifdef PS2_USE_INT | 15 | ifeq ($(strip $(PS2_USE_INT)), yes) |
17 | SRC += protocol/ps2_interrupt.c | 16 | SRC += protocol/ps2_interrupt.c |
18 | SRC += protocol/ps2_io_avr.c | 17 | SRC += protocol/ps2_io_avr.c |
19 | OPT_DEFS += -DPS2_USE_INT | 18 | OPT_DEFS += -DPS2_USE_INT |
20 | endif | 19 | endif |
21 | 20 | ||
22 | ifdef PS2_USE_USART | 21 | ifeq ($(strip $(PS2_USE_USART)), yes) |
23 | SRC += protocol/ps2_usart.c | 22 | SRC += protocol/ps2_usart.c |
24 | SRC += protocol/ps2_io_avr.c | 23 | SRC += protocol/ps2_io_avr.c |
25 | OPT_DEFS += -DPS2_USE_USART | 24 | OPT_DEFS += -DPS2_USE_USART |
26 | endif | 25 | endif |
27 | 26 | ||
28 | 27 | ||
29 | ifdef SERIAL_MOUSE_MICROSOFT_ENABLE | 28 | ifeq ($(strip $(SERIAL_MOUSE_MICROSOFT_ENABLE)), yes) |
30 | SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c | 29 | SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c |
31 | OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \ | 30 | OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \ |
32 | -DMOUSE_ENABLE | 31 | -DMOUSE_ENABLE |
33 | endif | 32 | endif |
34 | 33 | ||
35 | ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE | 34 | ifeq ($(strip $(SERIAL_MOUSE_MOUSESYSTEMS_ENABLE)), yes) |
36 | SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c | 35 | SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c |
37 | OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \ | 36 | OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \ |
38 | -DMOUSE_ENABLE | 37 | -DMOUSE_ENABLE |
39 | endif | 38 | endif |
40 | 39 | ||
41 | ifdef SERIAL_MOUSE_USE_SOFT | 40 | ifeq ($(strip $(SERIAL_MOUSE_USE_SOFT)), yes) |
42 | SRC += $(PROTOCOL_DIR)/serial_soft.c | 41 | SRC += $(PROTOCOL_DIR)/serial_soft.c |
43 | endif | 42 | endif |
44 | 43 | ||
45 | ifdef SERIAL_MOUSE_USE_UART | 44 | ifeq ($(strip $(SERIAL_MOUSE_USE_UART)), yes) |
46 | SRC += $(PROTOCOL_DIR)/serial_uart.c | 45 | SRC += $(PROTOCOL_DIR)/serial_uart.c |
47 | endif | 46 | endif |
48 | 47 | ||
49 | ifdef ADB_MOUSE_ENABLE | 48 | ifeq ($(strip $(ADB_MOUSE_ENABLE)), yes) |
50 | OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE | 49 | OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE |
51 | endif | 50 | endif |
52 | 51 | ||
53 | ifdef XT_ENABLE | 52 | ifeq ($(strip $(XT_ENABLE)), yes) |
54 | SRC += $(PROTOCOL_DIR)/xt_interrupt.c | 53 | SRC += $(PROTOCOL_DIR)/xt_interrupt.c |
55 | OPT_DEFS += -DXT_ENABLE | 54 | OPT_DEFS += -DXT_ENABLE |
56 | endif | 55 | endif |
57 | 56 | ||
58 | # Search Path | 57 | # Search Path |