2018-05-24 11:36:20 +02:00
|
|
|
# RIOT specific dependencies
|
|
|
|
USEMODULE += posix_semaphore
|
|
|
|
USEMODULE += event_callback
|
|
|
|
USEMODULE += xtimer
|
|
|
|
|
2019-06-12 12:17:08 +02:00
|
|
|
# Requires nimble feature
|
|
|
|
FEATURES_REQUIRED += ble_nimble
|
|
|
|
|
2018-05-24 11:36:20 +02:00
|
|
|
# glue code
|
|
|
|
USEMODULE += nimble_riot_contrib
|
|
|
|
|
2019-02-22 13:55:16 +01:00
|
|
|
# RIOT port
|
2018-05-24 11:36:20 +02:00
|
|
|
USEMODULE += nimble_porting_nimble
|
|
|
|
USEMODULE += nimble_npl_riot
|
|
|
|
|
2019-02-22 13:55:16 +01:00
|
|
|
# if nothing else is specified, we build the host and controller
|
|
|
|
ifeq (,$(filter nimble_host nimble_controller,$(USEMODULE)))
|
|
|
|
USEMODULE += nimble_host
|
|
|
|
USEMODULE += nimble_controller
|
|
|
|
endif
|
|
|
|
|
|
|
|
# include host dependencies
|
|
|
|
ifneq (,$(filter nimble_host,$(USEMODULE)))
|
|
|
|
USEMODULE += nimble_host_util
|
|
|
|
USEMODULE += nimble_tinycrypt
|
|
|
|
USEMODULE += nimble_host_store_ram
|
|
|
|
endif
|
|
|
|
|
|
|
|
# nimble controller dependencies
|
|
|
|
ifneq (,$(filter nimble_controller,$(USEMODULE)))
|
|
|
|
USEMODULE += nimble_transport_ram
|
2019-04-27 21:24:54 +02:00
|
|
|
ifneq (,$(filter nrf5%,$(CPU_FAM)))
|
|
|
|
USEMODULE += nimble_drivers_nrf5x
|
2019-02-22 13:55:16 +01:00
|
|
|
endif
|
2018-05-24 11:36:20 +02:00
|
|
|
endif
|
2019-03-26 09:50:08 +01:00
|
|
|
|
2019-05-17 11:15:49 +02:00
|
|
|
# RIOT specific submodule dependencies
|
2019-03-26 09:50:08 +01:00
|
|
|
ifneq (,$(filter nimble_addr,$(USEMODULE)))
|
|
|
|
USEMODULE += bluetil_addr
|
|
|
|
endif
|
2019-03-26 11:39:29 +01:00
|
|
|
|
2020-02-24 11:38:17 +01:00
|
|
|
ifneq (,$(filter nimble_autoadv,$(USEMODULE)))
|
|
|
|
USEMODULE += bluetil_ad
|
|
|
|
endif
|
|
|
|
|
2019-08-29 15:56:24 +02:00
|
|
|
ifneq (,$(filter nimble_autoconn_%,$(USEMODULE)))
|
|
|
|
USEMODULE += nimble_autoconn
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter nimble_autoconn,$(USEMODULE)))
|
|
|
|
USEMODULE += nimble_netif
|
|
|
|
USEMODULE += nimble_scanner
|
|
|
|
USEMODULE += bluetil_ad
|
|
|
|
endif
|
|
|
|
|
2019-03-26 11:39:29 +01:00
|
|
|
ifneq (,$(filter nimble_scanlist,$(USEMODULE)))
|
|
|
|
USEMODULE += nimble_addr
|
|
|
|
USEMODULE += bluetil_ad
|
|
|
|
endif
|
2019-05-17 11:15:49 +02:00
|
|
|
|
2020-03-02 17:40:26 +01:00
|
|
|
ifneq (,$(filter nimble_statconn,$(USEMODULE)))
|
|
|
|
USEMODULE += nimble_netif
|
|
|
|
USEMODULE += nimble_addr
|
|
|
|
endif
|
|
|
|
|
2019-05-17 11:15:49 +02:00
|
|
|
ifneq (,$(filter nimble_netif,$(USEMODULE)))
|
2019-11-13 13:06:13 +01:00
|
|
|
FEATURES_REQUIRED += ble_nimble_netif
|
2019-05-17 11:15:49 +02:00
|
|
|
USEMODULE += l2util
|
|
|
|
USEMODULE += bluetil_addr
|
|
|
|
ifneq (,$(filter gnrc_ipv6_%,$(USEMODULE)))
|
|
|
|
USEMODULE += nimble_svc_ipss
|
|
|
|
endif
|
|
|
|
ifneq (,$(filter gnrc_ipv6_router_default,$(USEMODULE)))
|
|
|
|
USEMODULE += gnrc_ipv6_nib_6lr
|
|
|
|
USEMODULE += gnrc_sixlowpan
|
|
|
|
USEMODULE += gnrc_sixlowpan_iphc
|
|
|
|
endif
|
|
|
|
ifneq (,$(filter gnrc_ipv6_default,$(USEMODULE)))
|
|
|
|
USEMODULE += gnrc_ipv6_nib_6ln
|
|
|
|
USEMODULE += gnrc_sixlowpan
|
|
|
|
USEMODULE += gnrc_sixlowpan_iphc
|
|
|
|
endif
|
|
|
|
endif
|