summaryrefslogtreecommitdiffstats
path: root/builddefs
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-05-20 22:12:59 +1000
committerGitHub <noreply@github.com>2023-05-20 22:12:59 +1000
commitab8c5013c856bfa23289d7892be1c2bee808b542 (patch)
tree79af0e03a476908bd5f74b9528f8c9ee43f24188 /builddefs
parent7b31c18d464356bde219c5b3fff346f3e7a89d1a (diff)
BIOI G60/Morgan65: use custom Bluetooth driver (#20897)
Diffstat (limited to 'builddefs')
-rw-r--r--builddefs/common_features.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk
index 61dffb2713..e904d6beb9 100644
--- a/builddefs/common_features.mk
+++ b/builddefs/common_features.mk
@@ -906,10 +906,11 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
OPT_DEFS += -DBLUETOOTH_ENABLE
NO_USB_STARTUP_CHECK := yes
COMMON_VPATH += $(DRIVER_PATH)/bluetooth
- SRC += outputselect.c bluetooth.c
+ SRC += outputselect.c
ifeq ($(strip $(BLUETOOTH_DRIVER)), BluefruitLE)
OPT_DEFS += -DBLUETOOTH_BLUEFRUIT_LE -DHAL_USE_SPI=TRUE
+ SRC += $(DRIVER_PATH)/bluetooth/bluetooth.c
SRC += $(DRIVER_PATH)/bluetooth/bluefruit_le.cpp
QUANTUM_LIB_SRC += analog.c
QUANTUM_LIB_SRC += spi_master.c
@@ -917,6 +918,7 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
ifeq ($(strip $(BLUETOOTH_DRIVER)), RN42)
OPT_DEFS += -DBLUETOOTH_RN42 -DHAL_USE_SERIAL=TRUE
+ SRC += $(DRIVER_PATH)/bluetooth/bluetooth.c
SRC += $(DRIVER_PATH)/bluetooth/rn42.c
QUANTUM_LIB_SRC += uart.c
endif