Kconfig: Hide the "Bluetooth Drivers" menu entry when BT_CONTROLLER

It used to be that there was a fairly empty "Bluetooth Drivers" menu
entry in the drivers menu. This entry was present even though there
was no drivers/bluetooth code being compiled in.

With this patch "Bluetooth Drivers" will no longer be present when
BT_CONTROLLER is enabled.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2017-08-09 13:54:22 +02:00 committed by Johan Hedberg
commit c4176c6526
2 changed files with 4 additions and 8 deletions

View file

@ -10,7 +10,9 @@
# Bluetooth options
#
if BT
# Controller support is an HCI driver in itself, so these HCI driver
# options are only applicable if controller support hasn't been enabled.
if BT && ! BT_CONTROLLER
menu "Bluetooth Drivers"
@ -31,4 +33,4 @@ config BT_NRF51_PM
endmenu
endif # BT
endif # BT && ! BT_CONTROLLER

View file

@ -8,10 +8,6 @@
comment "Bluetooth HCI Driver Options"
# Controller support is an HCI driver in itself, so these HCI driver
# options are only applicable if controller support hasn't been enabled.
if !BT_CONTROLLER
config BT_UART
bool
@ -56,8 +52,6 @@ config BT_NO_DRIVER
endchoice
endif # !BT_CONTROLLER
if !HAS_DTS
config BT_UART_ON_DEV_NAME
string "Device Name of UART Device for Bluetooth"