Commit 30eadf75 authored by Torsten Rasmussen's avatar Torsten Rasmussen Committed by Christopher Friedt
Browse files

drivers: create BT_DRIVERS Kconfig entry



Fixes: #38403

Changing Bluetooth drivers from being a menu into a menuconfig.
This aligns the Bluetooth driver configuration with other driver
configurations as well as provides a setting which identifies if
Bluetooth drivers has been enable.

This further helps to avoid empty Zephyr libraries for bluetooth
samples.

Signed-off-by: default avatarTorsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
parent 1a429263
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
+6 −2
Original line number Diff line number Diff line
@@ -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