diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt index f5423ac32f04..f6ee4d621f8b 100644 --- a/drivers/CMakeLists.txt +++ b/drivers/CMakeLists.txt @@ -49,7 +49,7 @@ add_subdirectory_ifdef(CONFIG_PM_CPU_OPS pm_cpu_ops) add_subdirectory_ifdef(CONFIG_FLASH_HAS_DRIVER_ENABLED flash) add_subdirectory_ifdef(CONFIG_SERIAL_HAS_DRIVER serial) -add_subdirectory_ifdef(CONFIG_BT bluetooth) +add_subdirectory_ifdef(CONFIG_BT_DRIVERS bluetooth) add_subdirectory_ifdef(CONFIG_NETWORKING net) add_subdirectory_ifdef(CONFIG_NET_L2_ETHERNET ethernet) add_subdirectory_ifdef(CONFIG_ENTROPY_HAS_DRIVER entropy) diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig index edb50e29572a..b68f20ec2588 100644 --- a/drivers/bluetooth/Kconfig +++ b/drivers/bluetooth/Kconfig @@ -9,9 +9,13 @@ # Controller support is an HCI driver in itself, so these HCI driver # options are only applicable if controller support hasn't been enabled. -menu "Bluetooth Drivers" +menuconfig BT_DRIVERS + bool "Bluetooth Drivers" + default y depends on BT && !BT_CTLR +if BT_DRIVERS + if BT_HCI source "drivers/bluetooth/hci/Kconfig" endif @@ -20,4 +24,4 @@ if BT_CUSTOM # Insert here any custom (non-HCI) offload drives endif -endmenu +endif # BT_DRIVERS