1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/nimble/nimble.porting.mk
Gunar Schorcht 0bef4c0c30 pkg/nimble: conditional compilation of nRF5x code
The package uses the nRFx SDK package `nrfx`. In addition, the `mynewt-nimble` repository contains some files (`porting/nimble/src/hal_timer.c` and `porting/npl/riot/src/nrf5x_isr.c`) that are compilable only for nRF MCUs. To allow the compilation for other platforms, the use of the `nrfx` package and the compilation of these files are now dependent on the use of any nRF5x MCU.
2022-08-24 09:03:38 +02:00

10 lines
281 B
Makefile

ifneq (,$(filter mynewt-core,$(USEMODULE)))
SRC = nimble_port.c
else ifeq (,$(filter nrf51 nrf52 nrf53,$(CPU_FAM)))
# hal_timer.c does only compile for nRF5x MCUs
IGNORE := hal_timer.c
SRC := $(filter-out $(IGNORE),$(wildcard *.c))
endif
include $(RIOTBASE)/Makefile.base