Bluetooth: Add initial Kconfig split options

This allows to specify which roles are supported. Broadcaster and
Observer roles are always supported.

Image size reduction for samples apps:
beacon     43148 -> 15196
central    46892 -> 46356
peripheral 47532 -> 45940

Change-Id: If260c13d63651b9b54df5bafc2c412b01dcb1eb0
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2015-09-07 18:25:59 +02:00 committed by Anas Nashif
commit 8ff443b1c9
12 changed files with 169 additions and 29 deletions

View file

@ -39,10 +39,25 @@ menuconfig BLUETOOTH
This option enables Bluetooth Low Energy support.
if BLUETOOTH
config BLUETOOTH_CONN
bool
default n
config BLUETOOTH_PERIPHERAL
bool "Peripheral Role support"
default n
select BLUETOOTH_CONN
config BLUETOOTH_CENTRAL
bool "Central Role support"
default n
select BLUETOOTH_CONN
if BLUETOOTH_PERIPHERAL || BLUETOOTH_CENTRAL
config BLUETOOTH_MAX_CONN
int
prompt "Maximum number of simultaneous connections"
depends on BLUETOOTH
depends on BLUETOOTH_CONN
default 1
range 1 16
help
@ -52,7 +67,7 @@ config BLUETOOTH_MAX_CONN
config BLUETOOTH_MAX_PAIRED
int
prompt "Maximum number of paired devices"
depends on BLUETOOTH
depends on BLUETOOTH_CONN
default 1
range 1 32
help
@ -149,3 +164,4 @@ config BLUETOOTH_DEBUG_GATT
This option enables debug support for the Bluetooth
Generic Attribute Profile (GATT).
endif
endif