mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
component/bt: allow to use alternative Bluetooth stack by disabling Bluedroid
Merges #408 https://github.com/espressif/esp-idf/pull/440
This commit is contained in:
committed by
Angus Gratton
parent
eba6789e6c
commit
3e7b786af5
@@ -1,7 +1,14 @@
|
|||||||
menuconfig BT_ENABLED
|
menuconfig BT_ENABLED
|
||||||
bool "Bluetooth"
|
bool "Bluetooth"
|
||||||
help
|
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
|
||||||
|
bool "Bluedroid Bluetooth stack enabled"
|
||||||
|
depends on BT_ENABLED
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
This enables the default Bluedroid Bluetooth stack
|
||||||
|
|
||||||
config BTC_TASK_STACK_SIZE
|
config BTC_TASK_STACK_SIZE
|
||||||
int "Bluetooth event (callback to application) task stack size"
|
int "Bluetooth event (callback to application) task stack size"
|
||||||
|
@@ -3,7 +3,26 @@
|
|||||||
#
|
#
|
||||||
ifdef CONFIG_BT_ENABLED
|
ifdef CONFIG_BT_ENABLED
|
||||||
|
|
||||||
COMPONENT_ADD_INCLUDEDIRS := bluedroid/bta/include \
|
COMPONENT_SRCDIRS := .
|
||||||
|
|
||||||
|
COMPONENT_ADD_INCLUDEDIRS := 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_SUBMODULES += lib
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifdef CONFIG_BLUEDROID_ENABLED
|
||||||
|
|
||||||
|
COMPONENT_ADD_INCLUDEDIRS += bluedroid/bta/include \
|
||||||
bluedroid/bta/sys/include \
|
bluedroid/bta/sys/include \
|
||||||
bluedroid/btcore/include \
|
bluedroid/btcore/include \
|
||||||
bluedroid/device/include \
|
bluedroid/device/include \
|
||||||
@@ -29,17 +48,8 @@ COMPONENT_ADD_INCLUDEDIRS := bluedroid/bta/include \
|
|||||||
bluedroid/stack/include \
|
bluedroid/stack/include \
|
||||||
bluedroid/api/include \
|
bluedroid/api/include \
|
||||||
bluedroid/include \
|
bluedroid/include \
|
||||||
include
|
|
||||||
|
|
||||||
LIBS := btdm_app
|
COMPONENT_SRCDIRS += bluedroid/bta/dm \
|
||||||
|
|
||||||
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 \
|
|
||||||
bluedroid/bta/gatt \
|
bluedroid/bta/gatt \
|
||||||
bluedroid/bta/hh \
|
bluedroid/bta/hh \
|
||||||
bluedroid/bta/sdp \
|
bluedroid/bta/sdp \
|
||||||
@@ -69,8 +79,5 @@ COMPONENT_SRCDIRS := bluedroid/bta/dm \
|
|||||||
bluedroid/stack \
|
bluedroid/stack \
|
||||||
bluedroid/api \
|
bluedroid/api \
|
||||||
bluedroid \
|
bluedroid \
|
||||||
.
|
|
||||||
|
|
||||||
COMPONENT_SUBMODULES += lib
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user