From 4414d2f308722cf4154e73735cae1cd6ec96de5b Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 28 Jan 2016 06:34:52 -0500 Subject: [PATCH] Do not set BT config options if NBLE is not enabled !BLUETOOTH is almost always when not using BLE, so depend on NBLE being configured as well to set various options. Change-Id: Idc61cee277fe0f09086a9f2ed6eb419aee5fd69c Signed-off-by: Anas Nashif --- drivers/nble/Kconfig | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/drivers/nble/Kconfig b/drivers/nble/Kconfig index 3e0dd668583..429f7d7f23b 100644 --- a/drivers/nble/Kconfig +++ b/drivers/nble/Kconfig @@ -16,7 +16,24 @@ # limitations under the License. # -if !BLUETOOTH +config NBLE + bool "Support for custom Nordic Semiconductor BLE protocol" + default n + select BLUETOOTH_PERIPHERAL + select BLUETOOTH_CENTRAL + select BLUETOOTH_GATT_CLIENT + select BLUETOOTH_SMP + select BLUETOOTH_DEBUG + select UART_INTERRUPT_DRIVEN + select NANO_TIMEOUTS + select NET_BUF + help + Enables support for using Nordic Semiconductor nRF51 Bluetooth + LE chips with a custom firmware. The API for this is a subset of + the normal Bluetooth API (include/bluetooth/*.h). This driver can + only be enabled if CONFIG_BLUETOOTH has not been enabled. + +if !BLUETOOTH && NBLE config BLUETOOTH_PERIPHERAL bool default n @@ -64,20 +81,4 @@ config NBLE_UART_IRQ_PRI This option specifies the IRQ priority of UART device to be used for Nordic BLE. -config NBLE - bool "Support for custom Nordic Semiconductor BLE protocol" - default n - select BLUETOOTH_PERIPHERAL - select BLUETOOTH_CENTRAL - select BLUETOOTH_GATT_CLIENT - select BLUETOOTH_SMP - select BLUETOOTH_DEBUG - select UART_INTERRUPT_DRIVEN - select NANO_TIMEOUTS - select NET_BUF - help - Enables support for using Nordic Semiconductor nRF51 Bluetooth - LE chips with a custom firmware. The API for this is a subset of - the normal Bluetooth API (include/bluetooth/*.h). This driver can - only be enabled if CONFIG_BLUETOOTH has not been enabled. endif