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 <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2016-01-28 06:34:52 -05:00
commit 4414d2f308

View file

@ -16,7 +16,24 @@
# limitations under the License. # 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 config BLUETOOTH_PERIPHERAL
bool bool
default n default n
@ -64,20 +81,4 @@ config NBLE_UART_IRQ_PRI
This option specifies the IRQ priority of UART device to be used This option specifies the IRQ priority of UART device to be used
for Nordic BLE. 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 endif