2019-10-04 15:48:46 +02:00
|
|
|
ifeq ($(OS),Linux)
|
|
|
|
ifneq (,$(filter periph_gpio,$(USEMODULE)))
|
2020-07-21 23:40:40 +02:00
|
|
|
ifeq (,$(filter periph_gpio_mock,$(USEMODULE)))
|
|
|
|
USEMODULE += periph_gpio_linux
|
|
|
|
endif
|
2019-10-04 15:48:46 +02:00
|
|
|
endif
|
|
|
|
ifneq (,$(filter periph_spi,$(USEMODULE)))
|
|
|
|
USEMODULE += periph_spidev_linux
|
|
|
|
endif
|
2020-07-21 23:40:40 +02:00
|
|
|
else
|
|
|
|
ifneq (,$(filter periph_gpio,$(USEMODULE)))
|
|
|
|
USEMODULE += periph_gpio_mock
|
|
|
|
endif
|
2019-04-06 06:24:22 +02:00
|
|
|
endif
|
2019-10-04 15:48:46 +02:00
|
|
|
|
2019-12-18 11:56:23 +01:00
|
|
|
ifeq (,$(filter stdio_%,$(USEMODULE)))
|
|
|
|
USEMODULE += stdio_native
|
|
|
|
endif
|
2020-09-09 16:59:18 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter periph_rtc,$(USEMODULE)))
|
2021-11-03 12:43:50 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_msec
|
2020-08-14 17:43:16 +02:00
|
|
|
endif
|
2020-05-20 18:22:45 +02:00
|
|
|
|
2020-12-04 14:34:08 +01:00
|
|
|
ifneq (,$(filter eui_provider,$(USEMODULE)))
|
|
|
|
USEMODULE += native_cli_eui_provider
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter native_cli_eui_provider,$(USEMODULE)))
|
|
|
|
USEMODULE += l2util
|
|
|
|
endif
|
|
|
|
|
2021-09-29 00:09:15 +02:00
|
|
|
ifneq (,$(filter socket_zep,$(USEMODULE)))
|
|
|
|
USEMODULE += iolist
|
|
|
|
USEMODULE += checksum
|
|
|
|
USEMODULE += random
|
|
|
|
USEMODULE += ieee802154
|
|
|
|
ifneq (,$(filter netdev,$(USEMODULE)))
|
|
|
|
USEMODULE += netdev_ieee802154_submac
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2024-04-26 21:34:32 +02:00
|
|
|
ifneq (,$(filter netdev_tap,$(USEMODULE)))
|
2024-11-20 23:37:30 +01:00
|
|
|
USEMODULE += netdev_new_api
|
2024-04-26 21:34:32 +02:00
|
|
|
endif
|
|
|
|
|
2022-03-02 10:00:00 +01:00
|
|
|
ifneq (,$(filter libc_gettimeofday,$(USEMODULE)))
|
2023-03-06 12:03:26 +01:00
|
|
|
USEMODULE += ztimer64_usec
|
2022-03-01 08:27:02 +01:00
|
|
|
endif
|
|
|
|
|
2020-05-20 18:22:45 +02:00
|
|
|
USEMODULE += periph
|
|
|
|
|
|
|
|
# UART is needed by startup.c
|
|
|
|
USEMODULE += periph_uart
|