diff options
| author | Ryan <fauxpark@gmail.com> | 2021-09-13 01:22:03 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-12 08:22:03 -0700 |
| commit | bcf4551f74a5e96249ccc91d7f5db4f378dca756 (patch) | |
| tree | 75607b08b50629d3132d12ca48934b33da2849c3 /tmk_core | |
| parent | 0fa217a5b7cdd035105387fd31c506fda4cfb945 (diff) | |
| download | qmk_firmware-bcf4551f74a5e96249ccc91d7f5db4f378dca756.tar.gz qmk_firmware-bcf4551f74a5e96249ccc91d7f5db4f378dca756.zip | |
Move Bluetooth config to common_features.mk (#14404)
* Move Bluetooth config to common_features.mk
* Update common_features.mk
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common.mk | 19 | ||||
| -rw-r--r-- | tmk_core/protocol/lufa.mk | 27 |
2 files changed, 0 insertions, 46 deletions
diff --git a/tmk_core/common.mk b/tmk_core/common.mk index 7f7420059..e5eced56f 100644 --- a/tmk_core/common.mk +++ b/tmk_core/common.mk | |||
| @@ -55,8 +55,6 @@ ifeq ($(strip $(NKRO_ENABLE)), yes) | |||
| 55 | $(info NKRO is not currently supported on V-USB, and has been disabled.) | 55 | $(info NKRO is not currently supported on V-USB, and has been disabled.) |
| 56 | else ifeq ($(strip $(BLUETOOTH_ENABLE)), yes) | 56 | else ifeq ($(strip $(BLUETOOTH_ENABLE)), yes) |
| 57 | $(info NKRO is not currently supported with Bluetooth, and has been disabled.) | 57 | $(info NKRO is not currently supported with Bluetooth, and has been disabled.) |
| 58 | else ifneq ($(BLUETOOTH),) | ||
| 59 | $(info NKRO is not currently supported with Bluetooth, and has been disabled.) | ||
| 60 | else | 58 | else |
| 61 | TMK_COMMON_DEFS += -DNKRO_ENABLE | 59 | TMK_COMMON_DEFS += -DNKRO_ENABLE |
| 62 | SHARED_EP_ENABLE = yes | 60 | SHARED_EP_ENABLE = yes |
| @@ -77,23 +75,6 @@ ifeq ($(strip $(NO_SUSPEND_POWER_DOWN)), yes) | |||
| 77 | TMK_COMMON_DEFS += -DNO_SUSPEND_POWER_DOWN | 75 | TMK_COMMON_DEFS += -DNO_SUSPEND_POWER_DOWN |
| 78 | endif | 76 | endif |
| 79 | 77 | ||
| 80 | ifeq ($(strip $(BLUETOOTH_ENABLE)), yes) | ||
| 81 | TMK_COMMON_DEFS += -DBLUETOOTH_ENABLE | ||
| 82 | TMK_COMMON_DEFS += -DNO_USB_STARTUP_CHECK | ||
| 83 | endif | ||
| 84 | |||
| 85 | ifeq ($(strip $(BLUETOOTH)), AdafruitBLE) | ||
| 86 | TMK_COMMON_DEFS += -DBLUETOOTH_ENABLE | ||
| 87 | TMK_COMMON_DEFS += -DMODULE_ADAFRUIT_BLE | ||
| 88 | TMK_COMMON_DEFS += -DNO_USB_STARTUP_CHECK | ||
| 89 | endif | ||
| 90 | |||
| 91 | ifeq ($(strip $(BLUETOOTH)), RN42) | ||
| 92 | TMK_COMMON_DEFS += -DBLUETOOTH_ENABLE | ||
| 93 | TMK_COMMON_DEFS += -DMODULE_RN42 | ||
| 94 | TMK_COMMON_DEFS += -DNO_USB_STARTUP_CHECK | ||
| 95 | endif | ||
| 96 | |||
| 97 | ifeq ($(strip $(SWAP_HANDS_ENABLE)), yes) | 78 | ifeq ($(strip $(SWAP_HANDS_ENABLE)), yes) |
| 98 | TMK_COMMON_DEFS += -DSWAP_HANDS_ENABLE | 79 | TMK_COMMON_DEFS += -DSWAP_HANDS_ENABLE |
| 99 | endif | 80 | endif |
diff --git a/tmk_core/protocol/lufa.mk b/tmk_core/protocol/lufa.mk index c8935dacb..00fec478a 100644 --- a/tmk_core/protocol/lufa.mk +++ b/tmk_core/protocol/lufa.mk | |||
| @@ -3,7 +3,6 @@ LUFA_DIR = protocol/lufa | |||
| 3 | # Path to the LUFA library | 3 | # Path to the LUFA library |
| 4 | LUFA_PATH = $(LIB_PATH)/lufa | 4 | LUFA_PATH = $(LIB_PATH)/lufa |
| 5 | 5 | ||
| 6 | |||
| 7 | # Create the LUFA source path variables by including the LUFA makefile | 6 | # Create the LUFA source path variables by including the LUFA makefile |
| 8 | ifneq (, $(wildcard $(LUFA_PATH)/LUFA/Build/lufa_sources.mk)) | 7 | ifneq (, $(wildcard $(LUFA_PATH)/LUFA/Build/lufa_sources.mk)) |
| 9 | # New build system from 20120730 | 8 | # New build system from 20120730 |
| @@ -22,23 +21,6 @@ ifeq ($(strip $(MIDI_ENABLE)), yes) | |||
| 22 | include $(TMK_PATH)/protocol/midi.mk | 21 | include $(TMK_PATH)/protocol/midi.mk |
| 23 | endif | 22 | endif |
| 24 | 23 | ||
| 25 | ifeq ($(strip $(BLUETOOTH_ENABLE)), yes) | ||
| 26 | LUFA_SRC += outputselect.c \ | ||
| 27 | $(TMK_DIR)/protocol/serial_uart.c | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(BLUETOOTH)), AdafruitBLE) | ||
| 31 | LUFA_SRC += spi_master.c \ | ||
| 32 | analog.c \ | ||
| 33 | outputselect.c \ | ||
| 34 | $(LUFA_DIR)/adafruit_ble.cpp | ||
| 35 | endif | ||
| 36 | |||
| 37 | ifeq ($(strip $(BLUETOOTH)), RN42) | ||
| 38 | LUFA_SRC += outputselect.c \ | ||
| 39 | $(TMK_DIR)/protocol/serial_uart.c | ||
| 40 | endif | ||
| 41 | |||
| 42 | ifeq ($(strip $(VIRTSER_ENABLE)), yes) | 24 | ifeq ($(strip $(VIRTSER_ENABLE)), yes) |
| 43 | LUFA_SRC += $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/CDCClassDevice.c | 25 | LUFA_SRC += $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/CDCClassDevice.c |
| 44 | endif | 26 | endif |
| @@ -50,19 +32,10 @@ SRC += $(LUFA_DIR)/usb_util.c | |||
| 50 | VPATH += $(TMK_PATH)/$(LUFA_DIR) | 32 | VPATH += $(TMK_PATH)/$(LUFA_DIR) |
| 51 | VPATH += $(LUFA_PATH) | 33 | VPATH += $(LUFA_PATH) |
| 52 | 34 | ||
| 53 | # Option modules | ||
| 54 | #ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE) | ||
| 55 | #endif | ||
| 56 | |||
| 57 | #ifdef EXTRAKEY_ENABLE | ||
| 58 | #endif | ||
| 59 | |||
| 60 | # LUFA library compile-time options and predefined tokens | 35 | # LUFA library compile-time options and predefined tokens |
| 61 | LUFA_OPTS = -DUSB_DEVICE_ONLY | 36 | LUFA_OPTS = -DUSB_DEVICE_ONLY |
| 62 | LUFA_OPTS += -DUSE_FLASH_DESCRIPTORS | 37 | LUFA_OPTS += -DUSE_FLASH_DESCRIPTORS |
| 63 | LUFA_OPTS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" | 38 | LUFA_OPTS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" |
| 64 | #LUFA_OPTS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 65 | LUFA_OPTS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 | ||
| 66 | LUFA_OPTS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 | 39 | LUFA_OPTS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 |
| 67 | LUFA_OPTS += -DFIXED_NUM_CONFIGURATIONS=1 | 40 | LUFA_OPTS += -DFIXED_NUM_CONFIGURATIONS=1 |
| 68 | 41 | ||
