Skip to content

Commit

Permalink
drivers: create BT_DRIVERS Kconfig entry
Browse files Browse the repository at this point in the history
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: Torsten Rasmussen <[email protected]>
  • Loading branch information
tejlmand authored and carlescufi committed Sep 28, 2021
1 parent acad371 commit 6ebe0b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 6 additions & 2 deletions drivers/bluetooth/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,4 +24,4 @@ if BT_CUSTOM
# Insert here any custom (non-HCI) offload drives
endif

endmenu
endif # BT_DRIVERS

0 comments on commit 6ebe0b8

Please sign in to comment.