From c4176c6526c9b5d8c08611c8bdb354388ef9f66e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Wed, 9 Aug 2017 13:54:22 +0200 Subject: [PATCH] Kconfig: Hide the "Bluetooth Drivers" menu entry when BT_CONTROLLER MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- drivers/bluetooth/Kconfig | 6 ++++-- drivers/bluetooth/hci/Kconfig | 6 ------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig index 7200784deba..39cdcf08004 100644 --- a/drivers/bluetooth/Kconfig +++ b/drivers/bluetooth/Kconfig @@ -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 diff --git a/drivers/bluetooth/hci/Kconfig b/drivers/bluetooth/hci/Kconfig index 480c9b45575..bc9c5e944dd 100644 --- a/drivers/bluetooth/hci/Kconfig +++ b/drivers/bluetooth/hci/Kconfig @@ -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"