Bluetooth: Kconfig: Change topmost option
Refactors existing menu by putting as topmost selectable option general bluetooth subsystem support instead so far Low Energy (LE). Implication of the change is introduction of new BLUETOOTH_LE config flag. The flag needs to be propagated to all existing bluetooth related apps to make them buildable. Change-Id: I608c1baad038e0ee4cccf44a3e597e16ae1f7f54 Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
This commit is contained in:
parent
7e3301fc62
commit
cb29e6135d
15 changed files with 25 additions and 2 deletions
|
@ -17,14 +17,21 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
menuconfig BLUETOOTH
|
menuconfig BLUETOOTH
|
||||||
bool "Bluetooth LE support"
|
bool "Bluetooth support"
|
||||||
default n
|
default n
|
||||||
select NANO_TIMEOUTS
|
select NANO_TIMEOUTS
|
||||||
select NET_BUF
|
select NET_BUF
|
||||||
help
|
help
|
||||||
This option enables Bluetooth Low Energy support.
|
This option enables Bluetooth support.
|
||||||
|
|
||||||
if BLUETOOTH
|
if BLUETOOTH
|
||||||
|
config BLUETOOTH_LE
|
||||||
|
bool "Bluetooth Low Energy (LE) support"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
This option enables Bluetooth Low Energy (LE)"
|
||||||
|
|
||||||
|
if BLUETOOTH_LE
|
||||||
config BLUETOOTH_HCI_CMD_COUNT
|
config BLUETOOTH_HCI_CMD_COUNT
|
||||||
int "Number of HCI command buffers"
|
int "Number of HCI command buffers"
|
||||||
default 2
|
default 2
|
||||||
|
@ -224,4 +231,6 @@ config BLUETOOTH_DEBUG_GATT
|
||||||
|
|
||||||
endif # BLUETOOTH_DEBUG
|
endif # BLUETOOTH_DEBUG
|
||||||
|
|
||||||
|
endif # BLUETOOTH_LE
|
||||||
|
|
||||||
endif # BLUETOOTH
|
endif # BLUETOOTH
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=y
|
CONFIG_BLUETOOTH_UART=y
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=y
|
CONFIG_BLUETOOTH_UART=y
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=y
|
CONFIG_BLUETOOTH_UART=y
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
CONFIG_BLUETOOTH_CENTRAL=y
|
CONFIG_BLUETOOTH_CENTRAL=y
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=y
|
CONFIG_BLUETOOTH_UART=y
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=y
|
CONFIG_BLUETOOTH_UART=y
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
CONFIG_BLUETOOTH_SMP=y
|
CONFIG_BLUETOOTH_SMP=y
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=y
|
CONFIG_BLUETOOTH_UART=y
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
CONFIG_BLUETOOTH_SMP=y
|
CONFIG_BLUETOOTH_SMP=y
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
CONFIG_EXPERIMENTAL=y
|
CONFIG_EXPERIMENTAL=y
|
||||||
CONFIG_MINIMAL_LIBC_EXTENDED=y
|
CONFIG_MINIMAL_LIBC_EXTENDED=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=y
|
CONFIG_BLUETOOTH_UART=y
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
CONFIG_CONSOLE_HANDLER=y
|
CONFIG_CONSOLE_HANDLER=y
|
||||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_EXPERIMENTAL=y
|
||||||
CONFIG_MINIMAL_LIBC_EXTENDED=y
|
CONFIG_MINIMAL_LIBC_EXTENDED=y
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=y
|
CONFIG_BLUETOOTH_UART=y
|
||||||
CONFIG_CONSOLE_HANDLER=y
|
CONFIG_CONSOLE_HANDLER=y
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_UART_SIMPLE=y
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_CONSOLE_HANDLER=y
|
CONFIG_CONSOLE_HANDLER=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=y
|
CONFIG_BLUETOOTH_UART=y
|
||||||
CONFIG_BLUETOOTH_CENTRAL=y
|
CONFIG_BLUETOOTH_CENTRAL=y
|
||||||
CONFIG_BLUETOOTH_PERIPHERAL=y
|
CONFIG_BLUETOOTH_PERIPHERAL=y
|
||||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_UART_SIMPLE=y
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_CONSOLE_HANDLER=y
|
CONFIG_CONSOLE_HANDLER=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=y
|
CONFIG_BLUETOOTH_UART=y
|
||||||
CONFIG_BLUETOOTH_CENTRAL=y
|
CONFIG_BLUETOOTH_CENTRAL=y
|
||||||
CONFIG_BLUETOOTH_PERIPHERAL=y
|
CONFIG_BLUETOOTH_PERIPHERAL=y
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# This option is NOT to be used in production code.
|
# This option is NOT to be used in production code.
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=n
|
CONFIG_BLUETOOTH_UART=n
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
CONFIG_UART_INTERRUPT_DRIVEN=n
|
CONFIG_UART_INTERRUPT_DRIVEN=n
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# This option is NOT to be used in production code.
|
# This option is NOT to be used in production code.
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=n
|
CONFIG_BLUETOOTH_UART=n
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
CONFIG_UART_INTERRUPT_DRIVEN=n
|
CONFIG_UART_INTERRUPT_DRIVEN=n
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# This option is NOT to be used in production code.
|
# This option is NOT to be used in production code.
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=n
|
CONFIG_BLUETOOTH_UART=n
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
CONFIG_UART_INTERRUPT_DRIVEN=n
|
CONFIG_UART_INTERRUPT_DRIVEN=n
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# This option is NOT to be used in production code.
|
# This option is NOT to be used in production code.
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_BLUETOOTH=y
|
CONFIG_BLUETOOTH=y
|
||||||
|
CONFIG_BLUETOOTH_LE=y
|
||||||
CONFIG_BLUETOOTH_UART=n
|
CONFIG_BLUETOOTH_UART=n
|
||||||
CONFIG_BLUETOOTH_DEBUG=y
|
CONFIG_BLUETOOTH_DEBUG=y
|
||||||
CONFIG_UART_INTERRUPT_DRIVEN=n
|
CONFIG_UART_INTERRUPT_DRIVEN=n
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue