menuconfig BT_ENABLED
bool "Bluetooth"
help
- Select this option to enable Bluetooth stack and show the submenu with Bluetooth configuration choices.
+ Select this option to enable Bluetooth and show the submenu with Bluetooth configuration choices.
+
-config BLUEDROID_ENABLED
++menuconfig BLUEDROID_ENABLED
+ bool "Bluedroid Bluetooth stack enabled"
+ depends on BT_ENABLED
+ default y
+ help
+ This enables the default Bluedroid Bluetooth stack
config BTC_TASK_STACK_SIZE
- int "Bluetooth event (callback to application) task stack size"
- depends on BT_ENABLED
- default 3072
- help
- This select btc task stack size
+ int "Bluetooth event (callback to application) task stack size"
- depends on BT_ENABLED
++ depends on BLUEDROID_ENABLED
+ default 3072
+ help
+ This select btc task stack size
config BLUEDROID_MEM_DEBUG
- bool "Bluedroid memory debug"
- depends on BT_ENABLED
- default n
- help
- Bluedroid memory debug
+ bool "Bluedroid memory debug"
- depends on BT_ENABLED
++ depends on BLUEDROID_ENABLED
+ default n
+ help
+ Bluedroid memory debug
+
+config CLASSIC_BT_ENABLED
+ bool "Classic Bluetooth"
- depends on BT_ENABLED
++ depends on BLUEDROID_ENABLED
+ default n
config BT_DRAM_RELEASE
- bool "Release DRAM from Classic BT controller"
- depends on BT_ENABLED
- default n
- help
- This option should only be used when BLE only.
- Open this option will release about 30K DRAM from Classic BT.
- The released DRAM will be used as system heap memory.
+ bool "Release DRAM from Classic BT controller"
- depends on BT_ENABLED && !CLASSIC_BT_ENABLED
++ depends on BT_ENABLED && (!BLUEDROID_ENABLED || (BLUEDROID_ENABLED && !CLASSIC_BT_ENABLED))
+ default n
+ help
+ This option should only be used when BLE only.
+ Enabling this option will release about 30K DRAM from Classic BT.
+ The released DRAM will be used as system heap memory.
# Memory reserved at start of DRAM for Bluetooth stack
config BT_RESERVE_DRAM
bluedroid/stack/l2cap/include \
bluedroid/stack/sdp/include \
bluedroid/stack/smp/include \
+ bluedroid/stack/avct/include \
+ bluedroid/stack/avrc/include \
+ bluedroid/stack/avdt/include \
+ bluedroid/stack/a2dp/include \
bluedroid/stack/include \
- bluedroid/api/include \
+ bluedroid/utils/include \
+ bluedroid/api/include \
bluedroid/include \
- include
-
- LIBS := btdm_app
-
- COMPONENT_ADD_LDFLAGS := -lbt -L $(COMPONENT_PATH)/lib \
- $(addprefix -l,$(LIBS))
-
- # re-link program if BT binary libs change
- COMPONENT_ADD_LINKER_DEPS := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS))
- COMPONENT_SRCDIRS := bluedroid/bta/dm \
+ COMPONENT_SRCDIRS += bluedroid/bta/dm \
bluedroid/bta/gatt \
bluedroid/bta/hh \
bluedroid/bta/sdp \
bluedroid/stack/l2cap \
bluedroid/stack/sdp \
bluedroid/stack/smp \
+ bluedroid/stack/avct \
+ bluedroid/stack/avrc \
+ bluedroid/stack/avdt \
+ bluedroid/stack/a2dp \
bluedroid/stack \
+ bluedroid/utils \
bluedroid/api \
bluedroid \
- .
-
- COMPONENT_SUBMODULES += lib
endif