RIOT/cpu/native/Makefile.dep
Karl Fessel 9a89b84c2c Makefile.dep: sort dependencies
move most dependencies from <RIOTBASE>/Makefile.dep to the Makefile.dep where
dependant module resides
2020-10-05 18:27:58 +02:00

32 lines
660 B
Makefile

ifeq ($(OS),Linux)
ifneq (,$(filter periph_gpio,$(USEMODULE)))
ifeq (,$(filter periph_gpio_mock,$(USEMODULE)))
USEMODULE += periph_gpio_linux
endif
endif
ifneq (,$(filter periph_spi,$(USEMODULE)))
USEMODULE += periph_spidev_linux
endif
else
ifneq (,$(filter periph_gpio,$(USEMODULE)))
USEMODULE += periph_gpio_mock
endif
endif
ifeq (,$(filter stdio_%,$(USEMODULE)))
USEMODULE += stdio_native
endif
ifneq (,$(filter periph_rtc,$(USEMODULE)))
USEMODULE += xtimer
endif
ifneq (,$(filter can_linux,$(USEMODULE)))
LINKFLAGS += -lsocketcan
endif
USEMODULE += periph
# UART is needed by startup.c
USEMODULE += periph_uart