1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/uwb-core/Makefile.dep
Dylan Laduranty 633ddee360 pkg/uwb-core: don't pull unwanted dependencies for nRF9160
As nRF9160 doesn't have a bluetooth radio, we should not pull the same dependencies as nRF52, thus ensure these dependencies are only added for nrf5x families
2021-09-07 09:27:39 +02:00

39 lines
977 B
Makefile

USEMODULE += uwb-core_dpl
USEMODULE += uwb-core_contrib
DEFAULT_MODULE += auto_init_uwb-core
USEMODULE += fmt
FEATURES_REQUIRED += periph_gpio_irq
FEATURES_REQUIRED += periph_spi
ifneq (,$(filter uwb-core_twr_%,$(USEMODULE)))
USEMODULE += uwb-core_rng
endif
ifneq (,$(filter uwb-core_rng,$(USEMODULE)))
USEMODULE += uwb-core_rng_math
USEMODULE += uwb-core_dsp
USEMODULE += uwb-core_uwb_json
endif
ifneq (,$(filter uwb-core_uwbcfg,$(USEMODULE)))
USEMODULE += uwb-core_config
endif
ifneq (,$(filter uwb-core_dpl,$(USEMODULE)))
USEPKG += mynewt-core
USEMODULE += mynewt-core_os
ifneq (,$(filter nrf5%,$(CPU)))
USEMODULE += mynewt-core_nrf5x_hal
endif
endif
# Some stdlib functions used by the pkg are not in avr-gcc
FEATURES_BLACKLIST += arch_avr8
# uwb-core has specific compilation sources when compiling kernel
# libraries these introduce additional compilation issues that have not
# been addressed in this port
FEATURES_BLACKLIST += arch_native