From ef2aecefdab23faac8af4120d68b1c4e73e6fd4e Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Fri, 12 May 2017 12:41:23 +0200 Subject: [PATCH] Bluetooth: Move hci_uart UART Kconfig to the top-level file To allow for hci_uart builds that do not include the controller code, move the UART Kconfig option used by the sample up one level so that it is shared by all configurations using Bluetooth: Jira: ZEP-2132 Signed-off-by: Carles Cufi --- subsys/bluetooth/Kconfig | 10 +++++++++- subsys/bluetooth/controller/Kconfig | 9 --------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/subsys/bluetooth/Kconfig b/subsys/bluetooth/Kconfig index 2185d66562c..f8c7feb5f98 100644 --- a/subsys/bluetooth/Kconfig +++ b/subsys/bluetooth/Kconfig @@ -41,7 +41,6 @@ config BLUETOOTH_HCI_RAW This option allows to access Bluetooth controller from the application with the RAW HCI protocol. - config BLUETOOTH_PERIPHERAL bool "Peripheral Role support" select BLUETOOTH_CONN @@ -85,6 +84,15 @@ config BLUETOOTH_HCI_ACL_FLOW_CONTROL not run out of incoming ACL buffers. endif # BLUETOOTH_CONN +config BLUETOOTH_CONTROLLER_TO_HOST_UART_DEV_NAME + string "Device Name of UART Device to an external Bluetooth Host" + default "UART_0" + depends on BLUETOOTH_HCI_RAW + help + This option specifies the name of UART device to be used + to connect to an external Bluetooth Host when Zephyr is + acting as a Bluetooth Controller. + source "subsys/bluetooth/common/Kconfig" source "subsys/bluetooth/host/Kconfig" source "subsys/bluetooth/controller/Kconfig" diff --git a/subsys/bluetooth/controller/Kconfig b/subsys/bluetooth/controller/Kconfig index 54f8809108d..07d489e4e67 100644 --- a/subsys/bluetooth/controller/Kconfig +++ b/subsys/bluetooth/controller/Kconfig @@ -30,15 +30,6 @@ endchoice comment "BLE Controller configuration" -config BLUETOOTH_CONTROLLER_TO_HOST_UART_DEV_NAME - string "Device Name of UART Device to an external Bluetooth Host" - default "UART_0" - depends on BLUETOOTH_HCI_RAW - help - This option specifies the name of UART device to be used - to connect to an external Bluetooth Host when Zephyr is - acting as a Bluetooth Controller. - menu "Advertiser" visible if !BLUETOOTH_PERIPHERAL