kopia lustrzana https://github.com/espressif/esp-idf
component/bt: allow to use alternative Bluetooth stack by disabling Bluedroid
Merges #408 https://github.com/espressif/esp-idf/pull/440pull/264/merge
rodzic
eba6789e6c
commit
3e7b786af5
|
@ -1,7 +1,14 @@
|
|||
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
|
||||
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"
|
||||
|
|
|
@ -3,7 +3,26 @@
|
|||
#
|
||||
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/btcore/include \
|
||||
bluedroid/device/include \
|
||||
|
@ -29,17 +48,8 @@ COMPONENT_ADD_INCLUDEDIRS := bluedroid/bta/include \
|
|||
bluedroid/stack/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 \
|
||||
|
@ -69,8 +79,5 @@ COMPONENT_SRCDIRS := bluedroid/bta/dm \
|
|||
bluedroid/stack \
|
||||
bluedroid/api \
|
||||
bluedroid \
|
||||
.
|
||||
|
||||
COMPONENT_SUBMODULES += lib
|
||||
|
||||
endif
|
||||
|
|
Ładowanie…
Reference in New Issue