1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/mynewt-core/contrib/Makefile
Dylan Laduranty ed655ab29b pkg/mynewt-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:11 +02:00

13 lines
263 B
Makefile

MODULE = mynewt-core
# exclude submodule sources from *.c wildcard source selection
SRC := $(filter-out nrf5x_isr.c cputime.c,$(wildcard *.c))
ifneq (,$(filter nrf5%,$(CPU)))
SRC += nrf5x_isr.c
else
SRC += cputime.c
endif
include $(RIOTBASE)/Makefile.base