2016-09-22 04:40:31 -04:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
2017-01-10 00:04:04 -05:00
|
|
|
ifdef CONFIG_BT_ENABLED
|
2016-09-22 04:40:31 -04:00
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
COMPONENT_SRCDIRS := controller
|
2017-03-07 12:20:33 -05:00
|
|
|
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS := include
|
|
|
|
|
|
|
|
LIBS := btdm_app
|
|
|
|
|
2021-04-21 19:41:46 -04:00
|
|
|
COMPONENT_ADD_LDFLAGS := -lbt -L $(COMPONENT_PATH)/controller/lib_esp32/esp32 \
|
2021-09-01 09:55:50 -04:00
|
|
|
-u ld_include_hli_vectors_bt \
|
2017-03-07 12:20:33 -05:00
|
|
|
$(addprefix -l,$(LIBS))
|
|
|
|
|
|
|
|
# re-link program if BT binary libs change
|
2021-04-21 19:41:46 -04:00
|
|
|
COMPONENT_ADD_LINKER_DEPS := $(patsubst %,$(COMPONENT_PATH)/controller/lib_esp32/esp32/lib%.a,$(LIBS))
|
2017-03-07 12:20:33 -05:00
|
|
|
|
2021-04-21 19:41:46 -04:00
|
|
|
COMPONENT_SUBMODULES += controller/lib_esp32
|
2021-02-09 05:44:29 -05:00
|
|
|
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|
2017-03-07 12:20:33 -05:00
|
|
|
|
2020-07-09 08:58:13 -04:00
|
|
|
|
2018-08-28 06:18:59 -04:00
|
|
|
# TODO: annotate fallthroughs in Bluedroid code with comments
|
|
|
|
CFLAGS += -Wno-implicit-fallthrough
|
|
|
|
|
2020-07-09 08:58:13 -04:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS += include/esp32/include
|
|
|
|
COMPONENT_SRCDIRS += controller/esp32
|
|
|
|
|
2021-03-31 00:51:48 -04:00
|
|
|
COMPONENT_PRIV_INCLUDEDIRS += common/btc/include \
|
|
|
|
common/include
|
|
|
|
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS += common/api/include/api \
|
|
|
|
common/btc/profile/esp/blufi/include \
|
|
|
|
common/btc/profile/esp/include \
|
|
|
|
common/osi/include
|
|
|
|
COMPONENT_SRCDIRS += common/api \
|
|
|
|
common/btc/core \
|
|
|
|
common/osi \
|
|
|
|
common/btc/profile/esp/blufi
|
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
ifdef CONFIG_BT_BLUEDROID_ENABLED
|
|
|
|
|
|
|
|
COMPONENT_PRIV_INCLUDEDIRS += host/bluedroid/bta/include \
|
|
|
|
host/bluedroid/bta/ar/include \
|
|
|
|
host/bluedroid/bta/av/include \
|
2019-10-09 05:24:30 -04:00
|
|
|
host/bluedroid/bta/hf_ag/include \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/bta/hf_client/include \
|
|
|
|
host/bluedroid/bta/dm/include \
|
|
|
|
host/bluedroid/bta/gatt/include \
|
2021-09-07 03:29:22 -04:00
|
|
|
host/bluedroid/bta/hd/include \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/bta/hh/include \
|
|
|
|
host/bluedroid/bta/jv/include \
|
|
|
|
host/bluedroid/bta/sdp/include \
|
|
|
|
host/bluedroid/bta/sys/include \
|
|
|
|
host/bluedroid/device/include \
|
|
|
|
host/bluedroid/gki/include \
|
|
|
|
host/bluedroid/hci/include \
|
|
|
|
host/bluedroid/utils/include \
|
|
|
|
host/bluedroid/external/sbc/decoder/include \
|
|
|
|
host/bluedroid/external/sbc/encoder/include \
|
|
|
|
host/bluedroid/external/sbc/plc/include \
|
|
|
|
host/bluedroid/btc/profile/esp/include \
|
|
|
|
host/bluedroid/btc/profile/std/gatt/include \
|
|
|
|
host/bluedroid/btc/profile/std/gap/include \
|
|
|
|
host/bluedroid/btc/profile/std/a2dp/include \
|
2020-04-29 05:24:01 -04:00
|
|
|
host/bluedroid/btc/profile/std/hid/include \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/btc/profile/std/include \
|
|
|
|
host/bluedroid/btc/include \
|
|
|
|
host/bluedroid/btif/include \
|
|
|
|
host/bluedroid/stack/btm/include \
|
|
|
|
host/bluedroid/stack/btu/include \
|
|
|
|
host/bluedroid/stack/gap/include \
|
|
|
|
host/bluedroid/stack/gatt/include \
|
|
|
|
host/bluedroid/stack/hcic/include \
|
2021-09-07 03:29:22 -04:00
|
|
|
host/bluedroid/stack/hid/include \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/stack/l2cap/include \
|
|
|
|
host/bluedroid/stack/sdp/include \
|
|
|
|
host/bluedroid/stack/smp/include \
|
|
|
|
host/bluedroid/stack/avct/include \
|
|
|
|
host/bluedroid/stack/avrc/include \
|
|
|
|
host/bluedroid/stack/avdt/include \
|
|
|
|
host/bluedroid/stack/a2dp/include \
|
|
|
|
host/bluedroid/stack/rfcomm/include \
|
|
|
|
host/bluedroid/stack/include \
|
|
|
|
host/bluedroid/utils/include \
|
2020-07-09 08:58:13 -04:00
|
|
|
host/bluedroid/common/include \
|
2019-06-30 04:39:00 -04:00
|
|
|
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS += host/bluedroid/api/include/api \
|
|
|
|
|
|
|
|
COMPONENT_SRCDIRS += host/bluedroid/bta/dm \
|
|
|
|
host/bluedroid/bta/gatt \
|
2021-09-07 03:29:22 -04:00
|
|
|
host/bluedroid/bta/hd \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/bta/hh \
|
|
|
|
host/bluedroid/bta/sdp \
|
|
|
|
host/bluedroid/bta/av \
|
|
|
|
host/bluedroid/bta/ar \
|
|
|
|
host/bluedroid/bta/sys \
|
|
|
|
host/bluedroid/bta/jv \
|
2019-10-09 05:24:30 -04:00
|
|
|
host/bluedroid/bta/hf_ag \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/bta/hf_client \
|
|
|
|
host/bluedroid/bta \
|
|
|
|
host/bluedroid/btif \
|
|
|
|
host/bluedroid/device \
|
|
|
|
host/bluedroid/gki \
|
|
|
|
host/bluedroid/hci \
|
|
|
|
host/bluedroid/main \
|
|
|
|
host/bluedroid/external/sbc/decoder/srce \
|
|
|
|
host/bluedroid/external/sbc/encoder/srce \
|
|
|
|
host/bluedroid/external/sbc/plc \
|
|
|
|
host/bluedroid/btc/core \
|
|
|
|
host/bluedroid/btc/profile/std/gap \
|
|
|
|
host/bluedroid/btc/profile/std/gatt \
|
|
|
|
host/bluedroid/btc/profile/std/a2dp \
|
|
|
|
host/bluedroid/btc/profile/std/avrc \
|
|
|
|
host/bluedroid/btc/profile/std/spp \
|
2019-10-09 05:24:30 -04:00
|
|
|
host/bluedroid/btc/profile/std/hf_ag \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/btc/profile/std/hf_client \
|
2020-04-29 05:24:01 -04:00
|
|
|
host/bluedroid/btc/profile/std/hid \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/btc/profile \
|
|
|
|
host/bluedroid/stack/btm \
|
|
|
|
host/bluedroid/stack/btu \
|
|
|
|
host/bluedroid/stack/gap \
|
|
|
|
host/bluedroid/stack/gatt \
|
|
|
|
host/bluedroid/stack/hcic \
|
2021-09-07 03:29:22 -04:00
|
|
|
host/bluedroid/stack/hid \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/stack/include \
|
|
|
|
host/bluedroid/stack/l2cap \
|
|
|
|
host/bluedroid/stack/sdp \
|
|
|
|
host/bluedroid/stack/smp \
|
|
|
|
host/bluedroid/stack/avct \
|
|
|
|
host/bluedroid/stack/avrc \
|
|
|
|
host/bluedroid/stack/avdt \
|
|
|
|
host/bluedroid/stack/a2dp \
|
|
|
|
host/bluedroid/stack/rfcomm \
|
|
|
|
host/bluedroid/stack \
|
|
|
|
host/bluedroid/utils \
|
|
|
|
host/bluedroid/api \
|
|
|
|
host/bluedroid
|
|
|
|
|
|
|
|
|
|
|
|
host/bluedroid/bta/sdp/bta_sdp_act.o: CFLAGS += -Wno-unused-const-variable
|
|
|
|
host/bluedroid/btc/core/btc_config.o: CFLAGS += -Wno-unused-const-variable
|
|
|
|
host/bluedroid/stack/btm/btm_sec.o: CFLAGS += -Wno-unused-const-variable
|
|
|
|
host/bluedroid/stack/smp/smp_keys.o: CFLAGS += -Wno-unused-const-variable
|
2017-03-07 12:20:33 -05:00
|
|
|
|
2021-03-31 00:51:48 -04:00
|
|
|
COMPONENT_SRCDIRS += common/btc/profile/esp/blufi/bluedroid_host
|
2017-03-07 12:20:33 -05:00
|
|
|
|
2019-10-21 08:18:21 -04:00
|
|
|
ifdef CONFIG_BLE_MESH
|
|
|
|
|
|
|
|
COMPONENT_SRCDIRS += esp_ble_mesh/mesh_core/bluedroid_host
|
|
|
|
|
|
|
|
endif
|
2019-06-30 04:39:00 -04:00
|
|
|
endif
|
2019-01-07 02:16:47 -05:00
|
|
|
|
|
|
|
ifdef CONFIG_BLE_MESH
|
2019-10-21 10:53:25 -04:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS += esp_ble_mesh/mesh_common/include \
|
2020-06-08 05:23:17 -04:00
|
|
|
esp_ble_mesh/mesh_common/tinycrypt/include \
|
2019-10-21 10:53:25 -04:00
|
|
|
esp_ble_mesh/mesh_core \
|
2019-10-21 08:18:21 -04:00
|
|
|
esp_ble_mesh/mesh_core/include \
|
2019-10-21 10:53:25 -04:00
|
|
|
esp_ble_mesh/mesh_core/storage \
|
2019-10-21 08:18:21 -04:00
|
|
|
esp_ble_mesh/btc/include \
|
|
|
|
esp_ble_mesh/mesh_models/common/include \
|
|
|
|
esp_ble_mesh/mesh_models/client/include \
|
2019-10-12 02:41:21 -04:00
|
|
|
esp_ble_mesh/mesh_models/server/include \
|
2019-10-21 08:18:21 -04:00
|
|
|
esp_ble_mesh/api/core/include \
|
|
|
|
esp_ble_mesh/api/models/include \
|
|
|
|
esp_ble_mesh/api
|
|
|
|
|
2019-10-21 10:53:25 -04:00
|
|
|
COMPONENT_SRCDIRS += esp_ble_mesh/mesh_common \
|
2020-06-23 21:43:33 -04:00
|
|
|
esp_ble_mesh/mesh_common/tinycrypt/src \
|
2019-10-21 10:53:25 -04:00
|
|
|
esp_ble_mesh/mesh_core \
|
|
|
|
esp_ble_mesh/mesh_core/storage \
|
2019-10-12 02:41:21 -04:00
|
|
|
esp_ble_mesh/btc \
|
2020-10-08 21:27:49 -04:00
|
|
|
esp_ble_mesh/mesh_models/common \
|
2019-10-12 02:41:21 -04:00
|
|
|
esp_ble_mesh/mesh_models/client \
|
|
|
|
esp_ble_mesh/mesh_models/server \
|
|
|
|
esp_ble_mesh/api/core \
|
2019-10-21 08:18:21 -04:00
|
|
|
esp_ble_mesh/api/models
|
2019-01-07 02:16:47 -05:00
|
|
|
endif
|
2018-04-08 00:10:50 -04:00
|
|
|
|
2018-08-28 05:31:48 -04:00
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
ifdef CONFIG_BT_NIMBLE_ENABLED
|
2019-09-30 02:15:43 -04:00
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS += host/nimble/nimble/nimble/include \
|
|
|
|
host/nimble/nimble/nimble/host/include \
|
|
|
|
host/nimble/nimble/porting/nimble/include \
|
|
|
|
host/nimble/nimble/porting/npl/freertos/include \
|
|
|
|
host/nimble/nimble/nimble/host/services/ans/include \
|
|
|
|
host/nimble/nimble/nimble/host/services/bas/include \
|
2020-08-03 14:19:41 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/dis/include \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/gap/include \
|
|
|
|
host/nimble/nimble/nimble/host/services/gatt/include \
|
|
|
|
host/nimble/nimble/nimble/host/services/ias/include \
|
2019-10-29 00:52:05 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/ipss/include \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/lls/include \
|
|
|
|
host/nimble/nimble/nimble/host/services/tps/include \
|
|
|
|
host/nimble/nimble/nimble/host/util/include \
|
|
|
|
host/nimble/nimble/nimble/host/store/ram/include \
|
|
|
|
host/nimble/nimble/nimble/host/store/config/include \
|
|
|
|
host/nimble/esp-hci/include \
|
|
|
|
host/nimble/port/include
|
|
|
|
|
2019-09-30 02:15:43 -04:00
|
|
|
ifndef CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS += host/nimble/nimble/ext/tinycrypt/include
|
|
|
|
endif
|
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
COMPONENT_SRCDIRS += host/nimble/nimble/nimble/host/src \
|
|
|
|
host/nimble/nimble/porting/nimble/src \
|
|
|
|
host/nimble/nimble/porting/npl/freertos/src \
|
|
|
|
host/nimble/nimble/nimble/host/services/ans/src \
|
|
|
|
host/nimble/nimble/nimble/host/services/bas/src \
|
2020-08-03 14:19:41 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/dis/src \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/gap/src \
|
|
|
|
host/nimble/nimble/nimble/host/services/gatt/src \
|
|
|
|
host/nimble/nimble/nimble/host/services/ias/src \
|
2019-10-29 00:52:05 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/ipss/src \
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/lls/src \
|
|
|
|
host/nimble/nimble/nimble/host/services/tps/src \
|
|
|
|
host/nimble/nimble/nimble/host/util/src \
|
|
|
|
host/nimble/nimble/nimble/host/store/ram/src \
|
|
|
|
host/nimble/nimble/nimble/host/store/config/src \
|
2020-01-22 11:55:51 -05:00
|
|
|
host/nimble/esp-hci/src \
|
|
|
|
host/nimble/port/src
|
2019-06-30 04:39:00 -04:00
|
|
|
|
2019-09-30 02:15:43 -04:00
|
|
|
ifndef CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS
|
|
|
|
COMPONENT_SRCDIRS += host/nimble/nimble/ext/tinycrypt/src
|
|
|
|
endif
|
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
COMPONENT_OBJEXCLUDE += host/nimble/nimble/nimble/host/store/config/src/ble_store_config_conf.o
|
|
|
|
|
2019-10-21 08:18:21 -04:00
|
|
|
ifdef CONFIG_BLE_MESH
|
|
|
|
|
2021-03-31 00:51:48 -04:00
|
|
|
COMPONENT_SRCDIRS += esp_ble_mesh/mesh_core/nimble_host
|
2019-10-21 08:18:21 -04:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
ifdef CONFIG_BT_NIMBLE_MESH
|
|
|
|
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS += host/nimble/nimble/nimble/host/mesh/include
|
|
|
|
COMPONENT_SRCDIRS += host/nimble/nimble/nimble/host/mesh/src
|
2019-01-07 02:16:47 -05:00
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
endif
|
2021-03-31 00:51:48 -04:00
|
|
|
COMPONENT_SRCDIRS += common/btc/profile/esp/blufi/nimble_host
|
2018-08-29 23:24:34 -04:00
|
|
|
endif
|
2018-08-28 05:31:48 -04:00
|
|
|
|
2017-01-10 00:04:04 -05:00
|
|
|
endif
|