Bluetooth: controller: Introduce BLUETOOTH_LL_SW

In preparation for future hardware implementations of the BLE
Link Layer, this patch introduces the BLUETOOTH_LL_SW
configuration option to specify that the default software
LL is to be built.

Change-Id: I8b9d5b5e0d2926d18f9e8c8f042a74326895bf95
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2017-03-14 10:48:59 +01:00 committed by Johan Hedberg
commit 841c5432cc
3 changed files with 29 additions and 16 deletions

View file

@ -39,7 +39,7 @@ config BLUETOOTH_CONTROLLER
bool "Bluetooth Controller"
select BLUETOOTH_RECV_IS_RX_THREAD
help
Enables support for SoC native controller implementation.
Enables support for SoC native controller implementations.
source "subsys/bluetooth/host/Kconfig"

View file

@ -2,6 +2,19 @@ if BLUETOOTH_CONTROLLER
comment "BLE Controller configuration"
choice
prompt "Bluetooth Link Layer Selection"
default BLUETOOTH_LL_SW
help
Select the Bluetooth Link Layer to compile.
config BLUETOOTH_LL_SW
bool "Use the software-based BLE Link Layer"
help
Use Zephyr's software BLE Link Layer implementation.
endchoice
config BLUETOOTH_CONTROLLER_RX_BUFFERS
prompt "Number of Rx buffers"
int

View file

@ -1,17 +1,17 @@
ccflags-$(CONFIG_BLUETOOTH_CONTROLLER) += -I$(srctree)/subsys/bluetooth/controller/util
ccflags-$(CONFIG_BLUETOOTH_CONTROLLER) += -I$(srctree)/subsys/bluetooth/controller/hal
ccflags-$(CONFIG_BLUETOOTH_CONTROLLER) += -I$(srctree)/subsys/bluetooth/controller/ticker
ccflags-$(CONFIG_BLUETOOTH_CONTROLLER) += -I$(srctree)/subsys/bluetooth/controller/ll
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += util/mem.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += util/memq.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += util/mayfly.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += util/util.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hal/nrf5/cntr.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hal/nrf5/rand.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hal/nrf5/ecb.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hal/nrf5/radio.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += ticker/ticker.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += ll/ctrl.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += ll/ll.o
ccflags-$(CONFIG_BLUETOOTH_LL_SW) += -I$(srctree)/subsys/bluetooth/controller/util
ccflags-$(CONFIG_BLUETOOTH_LL_SW) += -I$(srctree)/subsys/bluetooth/controller/hal
ccflags-$(CONFIG_BLUETOOTH_LL_SW) += -I$(srctree)/subsys/bluetooth/controller/ticker
ccflags-$(CONFIG_BLUETOOTH_LL_SW) += -I$(srctree)/subsys/bluetooth/controller/ll
obj-$(CONFIG_BLUETOOTH_LL_SW) += util/mem.o
obj-$(CONFIG_BLUETOOTH_LL_SW) += util/memq.o
obj-$(CONFIG_BLUETOOTH_LL_SW) += util/mayfly.o
obj-$(CONFIG_BLUETOOTH_LL_SW) += util/util.o
obj-$(CONFIG_BLUETOOTH_LL_SW) += hal/nrf5/cntr.o
obj-$(CONFIG_BLUETOOTH_LL_SW) += hal/nrf5/rand.o
obj-$(CONFIG_BLUETOOTH_LL_SW) += hal/nrf5/ecb.o
obj-$(CONFIG_BLUETOOTH_LL_SW) += hal/nrf5/radio.o
obj-$(CONFIG_BLUETOOTH_LL_SW) += ticker/ticker.o
obj-$(CONFIG_BLUETOOTH_LL_SW) += ll/ctrl.o
obj-$(CONFIG_BLUETOOTH_LL_SW) += ll/ll.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hci/hci_driver.o
obj-$(CONFIG_BLUETOOTH_CONTROLLER) += hci/hci.o