2019-09-05 17:40:22 +02:00
|
|
|
ifneq (,$(filter arduino,$(USEMODULE)))
|
2021-04-01 09:54:59 +02:00
|
|
|
FEATURES_OPTIONAL += periph_adc
|
2019-09-05 17:40:22 +02:00
|
|
|
FEATURES_OPTIONAL += periph_i2c
|
2019-08-29 13:43:21 +02:00
|
|
|
FEATURES_OPTIONAL += periph_spi
|
2021-04-01 09:54:59 +02:00
|
|
|
FEATURES_REQUIRED += arduino
|
2020-07-10 16:31:09 +02:00
|
|
|
FEATURES_REQUIRED += cpp
|
2021-04-01 09:54:59 +02:00
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_uart
|
2021-06-25 11:46:39 +02:00
|
|
|
USEMODULE += arduino_sketches
|
2020-10-27 15:31:42 +01:00
|
|
|
USEMODULE += fmt
|
2020-10-27 18:55:27 +01:00
|
|
|
USEMODULE += ztimer_usec
|
|
|
|
USEMODULE += ztimer_msec
|
2021-12-25 13:31:27 +01:00
|
|
|
ifneq (,$(filter stdio_cdc_acm,$(USEMODULE)))
|
|
|
|
USEMODULE += arduino_serial_stdio
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter arduino_pwm,$(FEATURES_USED)))
|
|
|
|
FEATURES_REQUIRED += periph_pwm
|
|
|
|
endif
|
|
|
|
|
2021-04-01 10:05:13 +02:00
|
|
|
# cannot be moved to GNRC's Makefile.dep, as module name neither starts or ends with gnrc
|
|
|
|
ifneq (,$(filter auto_init_gnrc_netif,$(USEMODULE)))
|
|
|
|
USEMODULE += gnrc_netif_init_devs
|
|
|
|
endif
|
|
|
|
|
2022-01-01 23:39:04 +01:00
|
|
|
ifneq (,$(filter auto_init_sock_dns,$(USEMODULE)))
|
|
|
|
ifneq (,$(filter ipv4,$(USEMODULE)))
|
|
|
|
USEMODULE += ipv4_addr
|
|
|
|
endif
|
|
|
|
ifneq (,$(filter ipv6,$(USEMODULE)))
|
|
|
|
USEMODULE += ipv6_addr
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-01-21 17:31:15 +01:00
|
|
|
ifneq (,$(filter congure_%,$(USEMODULE)))
|
|
|
|
USEMODULE += congure
|
|
|
|
endif
|
|
|
|
|
2021-01-27 10:39:57 +01:00
|
|
|
ifneq (,$(filter congure_abe,$(USEMODULE)))
|
|
|
|
USEMODULE += congure_reno_methods
|
|
|
|
endif
|
|
|
|
|
2021-01-21 17:32:19 +01:00
|
|
|
ifneq (,$(filter congure_quic,$(USEMODULE)))
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
endif
|
|
|
|
|
2021-02-01 20:08:51 +01:00
|
|
|
ifneq (,$(filter congure_test,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
2021-01-22 17:53:27 +01:00
|
|
|
ifneq (,$(filter congure_reno,$(USEMODULE)))
|
|
|
|
USEMODULE += congure_reno_methods
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter congure_reno_methods,$(USEMODULE)))
|
|
|
|
USEMODULE += seq
|
|
|
|
endif
|
|
|
|
|
2022-10-06 17:43:20 +02:00
|
|
|
ifneq (,$(filter crc16_fast,$(USEMODULE)))
|
|
|
|
USEMODULE += checksum
|
|
|
|
endif
|
|
|
|
|
2022-10-04 12:02:28 +02:00
|
|
|
ifneq (,$(filter crc32_fast,$(USEMODULE)))
|
|
|
|
USEMODULE += checksum
|
|
|
|
endif
|
|
|
|
|
2022-10-24 22:34:03 +02:00
|
|
|
ifneq (,$(filter debug_irq_disable,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
2018-08-28 00:55:41 +02:00
|
|
|
ifneq (,$(filter eepreg,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_eeprom
|
|
|
|
endif
|
|
|
|
|
2019-06-13 14:52:59 +02:00
|
|
|
ifneq (,$(filter fmt_table,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
2018-03-12 21:48:24 +01:00
|
|
|
ifneq (,$(filter prng_fortuna,$(USEMODULE)))
|
2021-04-14 22:18:59 +02:00
|
|
|
USEMODULE += crypto_aes_128
|
2020-03-05 12:34:03 +01:00
|
|
|
endif
|
|
|
|
|
2021-04-14 22:18:59 +02:00
|
|
|
ifneq (,$(filter crypto_%,$(USEMODULE)))
|
|
|
|
USEMODULE += crypto
|
2020-03-06 19:54:18 +01:00
|
|
|
endif
|
|
|
|
|
2021-04-14 22:18:59 +02:00
|
|
|
ifneq (,$(filter cipher_modes,$(USEMODULE)))
|
2020-03-05 12:34:03 +01:00
|
|
|
USEMODULE += crypto
|
2018-03-12 21:48:24 +01:00
|
|
|
endif
|
2019-03-23 14:20:18 +01:00
|
|
|
|
2021-04-14 22:18:59 +02:00
|
|
|
ifneq (,$(filter crypto,$(USEMODULE)))
|
|
|
|
DEFAULT_MODULE += crypto_aes_128
|
|
|
|
endif
|
|
|
|
|
2020-09-08 01:16:45 +02:00
|
|
|
ifneq (,$(filter sys_bus_%,$(USEMODULE)))
|
|
|
|
USEMODULE += sys_bus
|
|
|
|
USEMODULE += core_msg_bus
|
|
|
|
endif
|
|
|
|
|
2020-10-02 14:47:38 +02:00
|
|
|
ifneq (,$(filter ieee802154_security,$(USEMODULE)))
|
|
|
|
USEMODULE += crypto
|
2021-04-14 22:18:59 +02:00
|
|
|
USEMODULE += crypto_aes_128
|
2020-10-02 14:47:38 +02:00
|
|
|
USEMODULE += cipher_modes
|
|
|
|
endif
|
|
|
|
|
2020-06-04 14:26:48 +02:00
|
|
|
ifneq (,$(filter trace,$(USEMODULE)))
|
2021-12-02 10:30:21 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_usec
|
2020-06-04 14:26:48 +02:00
|
|
|
endif
|
|
|
|
|
2020-01-18 01:31:25 +01:00
|
|
|
ifneq (,$(filter shell_lock,$(USEMODULE)))
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter ssp,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += ssp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter base64url,$(USEMODULE)))
|
|
|
|
USEMODULE += base64
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter csma_sender,$(USEMODULE)))
|
|
|
|
USEMODULE += random
|
2022-02-23 18:02:46 +01:00
|
|
|
USEMODULE += ztimer_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter dhcpv6_%,$(USEMODULE)))
|
|
|
|
USEMODULE += dhcpv6
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter dhcpv6_client,$(USEMODULE)))
|
|
|
|
USEMODULE += event
|
2021-07-21 12:24:04 +02:00
|
|
|
USEMODULE += event_timeout
|
2021-07-21 13:17:12 +02:00
|
|
|
ifneq (,$(filter ztimer,$(USEMODULE)))
|
|
|
|
USEMODULE += event_timeout_ztimer
|
|
|
|
USEMODULE += ztimer_msec ztimer_sec
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += random
|
2021-06-24 15:36:40 +02:00
|
|
|
ifneq (,$(filter sock_dns,$(USEMODULE)))
|
|
|
|
USEMODULE += dhcpv6_client_dns
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
2021-07-02 17:47:01 +02:00
|
|
|
ifneq (,$(filter dhcpv6_relay,$(USEMODULE)))
|
2022-02-10 12:21:36 +01:00
|
|
|
DEFAULT_MODULE += auto_init_dhcpv6_relay
|
2021-07-02 17:47:01 +02:00
|
|
|
USEMODULE += event
|
|
|
|
USEMODULE += sock_async_event
|
|
|
|
USEMODULE += sock_udp
|
|
|
|
endif
|
|
|
|
|
2021-07-21 14:57:44 +02:00
|
|
|
ifneq (,$(filter dns_%,$(USEMODULE)))
|
|
|
|
USEMODULE += dns
|
|
|
|
endif
|
|
|
|
|
2021-04-01 10:05:13 +02:00
|
|
|
ifneq (,$(filter fuzzing,$(USEMODULE)))
|
|
|
|
USEMODULE += netdev_test
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += gnrc_netif
|
2021-04-01 10:05:13 +02:00
|
|
|
USEMODULE += gnrc_pktbuf_malloc
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
2021-04-01 10:05:13 +02:00
|
|
|
# include GNRC dependencies
|
|
|
|
ifneq (,$(filter gnrc% %gnrc,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/net/gnrc/Makefile.dep
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter sntp,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_udp
|
|
|
|
USEMODULE += xtimer
|
2022-03-01 08:27:02 +01:00
|
|
|
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
|
|
# requires 64bit ftimestamps
|
|
|
|
USEMODULE += ztimer64_xtimer_compat
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
2022-01-07 14:07:14 +01:00
|
|
|
ifneq (,$(filter sock_%,$(USEMODULE)))
|
|
|
|
USEMODULE += iolist
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter netdev_ieee802154,$(USEMODULE)))
|
|
|
|
USEMODULE += ieee802154
|
|
|
|
USEMODULE += random
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter netdev_ieee802154_submac,$(USEMODULE)))
|
2021-02-02 10:58:16 +01:00
|
|
|
USEMODULE += netdev_ieee802154
|
2022-08-09 14:58:36 +02:00
|
|
|
USEMODULE += netdev_legacy_api
|
2021-02-02 10:58:16 +01:00
|
|
|
USEMODULE += ieee802154
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += ieee802154_submac
|
2022-12-14 16:41:19 +01:00
|
|
|
USEMODULE += ztimer_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter uhcpc,$(USEMODULE)))
|
|
|
|
USEMODULE += posix_inet
|
2022-02-23 16:55:51 +01:00
|
|
|
USEMODULE += ztimer_msec
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter netdev_tap,$(USEMODULE)))
|
|
|
|
USEMODULE += netif
|
|
|
|
USEMODULE += netdev_eth
|
|
|
|
USEMODULE += iolist
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter trickle,$(USEMODULE)))
|
|
|
|
USEMODULE += random
|
2021-04-13 14:19:42 +02:00
|
|
|
ifeq (,$(filter ztimer_msec,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
2022-03-01 16:55:48 +01:00
|
|
|
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
endif
|
2021-04-13 14:19:42 +02:00
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter eui_provider,$(USEMODULE)))
|
|
|
|
USEMODULE += luid
|
|
|
|
endif
|
|
|
|
|
2021-04-01 10:05:13 +02:00
|
|
|
ifneq (,$(filter ieee802154 nrfmin esp_now cc110x,$(USEMODULE)))
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter lwip%, $(USEMODULE)))
|
|
|
|
USEMODULE += lwip_sixlowpan
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter sixlowpan,$(USEMODULE)))
|
|
|
|
USEMODULE += ipv6_hdr
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter ipv6_hdr,$(USEMODULE)))
|
|
|
|
USEMODULE += inet_csum
|
|
|
|
USEMODULE += ipv6_addr
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter ieee802154_submac,$(USEMODULE)))
|
2022-12-14 16:41:19 +01:00
|
|
|
USEMODULE += ztimer_usec
|
2021-09-08 17:29:44 +02:00
|
|
|
USEMODULE += random
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
2020-11-14 16:34:49 +01:00
|
|
|
ifneq (,$(filter l2util,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter od,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter od_string,$(USEMODULE)))
|
|
|
|
USEMODULE += od
|
|
|
|
endif
|
|
|
|
|
2021-07-10 15:05:03 +02:00
|
|
|
ifneq (,$(filter netutils,$(USEMODULE)))
|
|
|
|
USEMODULE += ipv6_addr
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter newlib_gnu_source,$(USEMODULE)))
|
2021-01-26 14:55:40 +01:00
|
|
|
FEATURES_REQUIRED += newlib
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
2021-01-26 14:55:40 +01:00
|
|
|
FEATURES_REQUIRED += newlib
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter newlib,$(USEMODULE)))
|
|
|
|
# allow custom newlib syscalls implementations by adding
|
|
|
|
# newlib_syscalls_XXX to USEMODULE
|
|
|
|
ifeq (,$(filter newlib_syscalls_%,$(USEMODULE)))
|
|
|
|
USEMODULE += newlib_syscalls_default
|
|
|
|
endif
|
2022-01-24 10:47:21 +01:00
|
|
|
ifneq (,$(filter newlib_syscalls_default,$(USEMODULE)))
|
|
|
|
USEMODULE += div
|
2022-03-02 10:00:00 +01:00
|
|
|
ifneq (,$(filter libc_gettimeofday,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
|
|
# requires 64bit timestamps
|
|
|
|
USEMODULE += ztimer64_xtimer_compat
|
|
|
|
endif
|
2022-03-01 08:27:02 +01:00
|
|
|
endif
|
2022-01-24 10:47:21 +01:00
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter posix_select,$(USEMODULE)))
|
|
|
|
ifneq (,$(filter posix_sockets,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_async
|
|
|
|
endif
|
|
|
|
USEMODULE += core_thread_flags
|
|
|
|
USEMODULE += posix_headers
|
2022-03-08 09:18:06 +01:00
|
|
|
USEMODULE += ztimer64_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter picolibc,$(USEMODULE)))
|
|
|
|
# allow custom picolibc syscalls implementations by adding
|
|
|
|
# picolibc_syscalls_XXX to USEMODULE
|
|
|
|
ifeq (,$(filter picolibc_syscalls_%,$(USEMODULE)))
|
|
|
|
USEMODULE += picolibc_syscalls_default
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter posix_sockets,$(USEMODULE)))
|
|
|
|
USEMODULE += bitfield
|
|
|
|
USEMODULE += random
|
|
|
|
USEMODULE += vfs
|
|
|
|
USEMODULE += posix_headers
|
|
|
|
endif
|
|
|
|
|
2022-07-21 20:26:03 +02:00
|
|
|
ifneq (,$(filter md5sum ,$(USEMODULE)))
|
|
|
|
USEMODULE += shell_cmd_md5sum
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter sha1sum,$(USEMODULE)))
|
|
|
|
USEMODULE += shell_cmd_sha1sum
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter sha256sum,$(USEMODULE)))
|
|
|
|
USEMODULE += shell_cmd_sha256sum
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter random_cmd,$(USEMODULE)))
|
|
|
|
USEMODULE += shell_cmd_random
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter shell%,$(USEMODULE)))
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += stdin
|
2022-07-21 20:26:03 +02:00
|
|
|
include $(RIOTBASE)/sys/shell/Makefile.dep
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Include all stdio_% dependencies after all USEMODULE += stdio_%
|
|
|
|
include $(RIOTBASE)/makefiles/stdio.inc.mk
|
|
|
|
|
|
|
|
ifneq (,$(filter isrpipe,$(USEMODULE)))
|
|
|
|
USEMODULE += tsrb
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter isrpipe_read_timeout,$(USEMODULE)))
|
|
|
|
USEMODULE += isrpipe
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2022-04-30 18:17:28 +02:00
|
|
|
ifneq (,$(filter md5sum sha1sum sha256sum,$(USEMODULE)))
|
2022-04-30 18:03:04 +02:00
|
|
|
USEMODULE += vfs_util
|
|
|
|
USEMODULE += hashes
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter posix_semaphore,$(USEMODULE)))
|
2022-03-08 09:15:48 +01:00
|
|
|
USEMODULE += sema_deprecated
|
|
|
|
USEMODULE += ztimer64_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += posix_headers
|
|
|
|
endif
|
|
|
|
|
2020-10-26 11:54:42 +01:00
|
|
|
ifneq (,$(filter posix_sleep,$(USEMODULE)))
|
2020-10-26 22:43:47 +01:00
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
USEMODULE += ztimer_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += posix_headers
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter posix_inet,$(USEMODULE)))
|
|
|
|
USEMODULE += posix_headers
|
|
|
|
endif
|
|
|
|
|
2021-01-13 17:33:21 +01:00
|
|
|
ifneq (,$(filter sema_inv,$(USEMODULE)))
|
|
|
|
USEMODULE += atomic_utils
|
|
|
|
endif
|
|
|
|
|
2022-03-01 10:12:34 +01:00
|
|
|
ifneq (,$(filter sema,$(USEMODULE)))
|
|
|
|
USEMODULE += ztimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter sema_deprecated,$(USEMODULE)))
|
|
|
|
USEMODULE += sema
|
|
|
|
USEMODULE += ztimer64
|
|
|
|
USEMODULE += ztimer64_usec
|
|
|
|
endif
|
|
|
|
|
2021-08-10 17:37:22 +02:00
|
|
|
ifneq (,$(filter telnet,$(USEMODULE)))
|
|
|
|
USEMODULE += pipe
|
|
|
|
USEMODULE += sock_tcp
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter luid,$(USEMODULE)))
|
|
|
|
FEATURES_OPTIONAL += periph_cpuid
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter fib,$(USEMODULE)))
|
|
|
|
USEMODULE += universal_address
|
|
|
|
USEMODULE += xtimer
|
2022-03-01 08:27:02 +01:00
|
|
|
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
|
|
USEMODULE += ztimer64_xtimer_compat
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += posix_headers
|
|
|
|
endif
|
|
|
|
|
|
|
|
# if any log_* is used, also use LOG pseudomodule
|
|
|
|
ifneq (,$(filter log_%,$(USEMODULE)))
|
|
|
|
USEMODULE += log
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter cpp11-compat,$(USEMODULE)))
|
2022-01-06 09:21:54 +01:00
|
|
|
USEMODULE += cpp_new_delete
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += xtimer
|
|
|
|
USEMODULE += timex
|
|
|
|
FEATURES_REQUIRED += cpp
|
|
|
|
FEATURES_REQUIRED += libstdcpp
|
2022-03-01 08:27:02 +01:00
|
|
|
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
|
|
# requires 64bit for syscalls
|
|
|
|
USEMODULE += ztimer64_xtimer_compat
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter netstats_%, $(USEMODULE)))
|
|
|
|
USEMODULE += netstats
|
|
|
|
endif
|
|
|
|
|
2020-07-03 15:05:52 +02:00
|
|
|
ifneq (,$(filter netstats_neighbor_%, $(USEMODULE)))
|
|
|
|
USEMODULE += netstats_neighbor
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter pthread,$(USEMODULE)))
|
2022-03-08 09:18:06 +01:00
|
|
|
USEMODULE += ztimer64_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += timex
|
2022-03-01 08:27:02 +01:00
|
|
|
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
|
|
# requires 64bit ftimestamps
|
|
|
|
USEMODULE += ztimer64_xtimer_compat
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter schedstatistics,$(USEMODULE)))
|
2021-11-16 15:50:37 +01:00
|
|
|
USEMODULE += ztimer_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += sched_cb
|
|
|
|
endif
|
|
|
|
|
2021-04-15 14:57:49 +02:00
|
|
|
ifneq (,$(filter sched_round_robin,$(USEMODULE)))
|
|
|
|
# this depends on either ztimer_usec or ztimer_msec if neither is used
|
|
|
|
# prior to this msec is preferred
|
|
|
|
ifeq (,$(filter ztimer_usec,$(USEMODULE))$(filter ztimer_msec,$(USEMODULE)))
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
endif
|
|
|
|
USEMODULE += sched_runq_callback
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter saul_reg,$(USEMODULE)))
|
|
|
|
USEMODULE += saul
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter saul_default,$(USEMODULE)))
|
|
|
|
DEFAULT_MODULE += auto_init_saul
|
2021-01-23 11:14:19 +01:00
|
|
|
DEFAULT_MODULE += saul_init_devs
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += saul
|
|
|
|
USEMODULE += saul_reg
|
|
|
|
endif
|
|
|
|
|
2021-04-23 11:32:36 +02:00
|
|
|
ifneq (,$(filter senml%,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/senml/Makefile.dep
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter phydat,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
2021-01-27 14:23:31 +01:00
|
|
|
ifneq (,$(filter pm_layered,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_pm
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter evtimer_mbox,$(USEMODULE)))
|
|
|
|
USEMODULE += evtimer
|
|
|
|
USEMODULE += core_mbox
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter can,$(USEMODULE)))
|
|
|
|
USEMODULE += can_raw
|
|
|
|
ifneq (,$(filter can_mbox,$(USEMODULE)))
|
|
|
|
USEMODULE += core_mbox
|
|
|
|
endif
|
|
|
|
USEMODULE += memarray
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter can_isotp,$(USEMODULE)))
|
2021-12-09 12:27:54 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += gnrc_pktbuf
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter conn_can,$(USEMODULE)))
|
|
|
|
USEMODULE += can
|
|
|
|
USEMODULE += can_mbox
|
2021-12-09 12:27:54 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
2020-06-19 17:04:00 +02:00
|
|
|
ifneq (,$(filter entropy_source_%,$(USEMODULE)))
|
|
|
|
USEMODULE += entropy_source
|
|
|
|
ifneq (,$(filter entropy_source_adc_noise,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_adc
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter puf_sram,$(USEMODULE)))
|
|
|
|
USEMODULE += hashes
|
|
|
|
USEMODULE += random
|
|
|
|
FEATURES_REQUIRED += puf_sram
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter random,$(USEMODULE)))
|
|
|
|
DEFAULT_MODULE += auto_init_random
|
|
|
|
USEMODULE += prng
|
|
|
|
|
|
|
|
ifneq (,$(filter prng_fortuna,$(USEMODULE)))
|
|
|
|
USEMODULE += fortuna
|
|
|
|
USEMODULE += hashes
|
|
|
|
USEMODULE += crypto
|
2021-06-29 12:15:10 +02:00
|
|
|
ifneq (,$(filter fortuna_reseed,$(USEMODULE)))
|
|
|
|
USEMODULE += atomic_utils
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter prng_tinymt32,$(USEMODULE)))
|
|
|
|
USEMODULE += tinymt32
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter prng_sha%prng,$(USEMODULE)))
|
|
|
|
USEMODULE += prng_shaxprng
|
|
|
|
USEMODULE += hashes
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter prng_hwrng,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_hwrng
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (,$(filter puf_sram,$(USEMODULE)))
|
|
|
|
FEATURES_OPTIONAL += periph_hwrng
|
|
|
|
endif
|
|
|
|
|
|
|
|
USEMODULE += luid
|
|
|
|
endif
|
|
|
|
|
2019-09-13 12:33:28 +02:00
|
|
|
ifneq (,$(filter hashes,$(USEMODULE)))
|
|
|
|
USEMODULE += crypto
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter asymcute,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_udp
|
|
|
|
USEMODULE += sock_util
|
2020-12-16 12:32:26 +01:00
|
|
|
USEMODULE += sock_async_event
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += random
|
|
|
|
USEMODULE += event_timeout
|
|
|
|
USEMODULE += event_callback
|
|
|
|
endif
|
|
|
|
|
2022-09-15 17:48:39 +02:00
|
|
|
ifneq (,$(filter event_periodic_callback,$(USEMODULE)))
|
|
|
|
USEMODULE += event_callback
|
|
|
|
USEMODULE += event_periodic
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter emcute,$(USEMODULE)))
|
|
|
|
USEMODULE += core_thread_flags
|
|
|
|
USEMODULE += sock_udp
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter constfs,$(USEMODULE)))
|
|
|
|
USEMODULE += vfs
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter devfs,$(USEMODULE)))
|
|
|
|
USEMODULE += vfs
|
|
|
|
endif
|
|
|
|
|
2022-02-11 16:41:11 +01:00
|
|
|
ifneq (,$(filter vfs_default,$(USEMODULE)))
|
|
|
|
USEMODULE += vfs
|
|
|
|
DEFAULT_MODULE += vfs_auto_mount
|
|
|
|
endif
|
|
|
|
|
2021-12-10 17:43:11 +01:00
|
|
|
ifneq (,$(filter vfs_util,$(USEMODULE)))
|
|
|
|
USEMODULE += vfs
|
|
|
|
endif
|
2022-02-11 16:41:11 +01:00
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter vfs,$(USEMODULE)))
|
|
|
|
USEMODULE += posix_headers
|
|
|
|
ifeq (native, $(BOARD))
|
|
|
|
USEMODULE += native_vfs
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter sock_async_event,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_async
|
|
|
|
USEMODULE += event
|
|
|
|
endif
|
|
|
|
|
2020-08-21 12:14:23 +02:00
|
|
|
ifneq (,$(filter sock_async,$(USEMODULE)))
|
|
|
|
ifneq (,$(filter openwsn%,$(USEMODULE)))
|
|
|
|
USEMODULE += openwsn_sock_async
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter sock_dns,$(USEMODULE)))
|
2021-07-21 14:57:44 +02:00
|
|
|
USEMODULE += dns_msg
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += sock_udp
|
|
|
|
USEMODULE += sock_util
|
|
|
|
USEMODULE += posix_headers
|
|
|
|
endif
|
|
|
|
|
2022-07-31 17:39:04 +02:00
|
|
|
ifneq (,$(filter sock_dns_mock,$(USEMODULE)))
|
|
|
|
USEMODULE += dns
|
|
|
|
endif
|
|
|
|
|
2021-09-16 12:08:57 +02:00
|
|
|
ifneq (,$(filter sock_dodtls,$(USEMODULE)))
|
|
|
|
USEMODULE += dns_msg
|
|
|
|
USEMODULE += sock_dtls
|
|
|
|
USEMODULE += sock_udp
|
|
|
|
USEMODULE += sock_util
|
|
|
|
USEMODULE += posix_headers
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
endif
|
|
|
|
|
2022-07-18 11:47:57 +02:00
|
|
|
ifneq (,$(filter dns_cache,$(USEMODULE)))
|
2022-02-19 14:20:40 +01:00
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
USEMODULE += checksum
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter sock_util,$(USEMODULE)))
|
|
|
|
USEMODULE += posix_inet
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter event_%,$(USEMODULE)))
|
|
|
|
USEMODULE += event
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter event_thread_%,$(USEMODULE)))
|
|
|
|
USEMODULE += event_thread
|
|
|
|
endif
|
|
|
|
|
2021-05-05 10:12:14 +02:00
|
|
|
ifneq (,$(filter event_timeout_ztimer,$(USEMODULE)))
|
2021-10-06 18:18:32 +02:00
|
|
|
USEMODULE += ztimer
|
2021-06-03 17:53:44 +02:00
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter event_timeout,$(USEMODULE)))
|
2022-02-23 09:36:49 +01:00
|
|
|
USEMODULE += event_timeout_ztimer
|
|
|
|
USEMODULE += ztimer_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter event,$(USEMODULE)))
|
|
|
|
USEMODULE += core_thread_flags
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter l2filter_%,$(USEMODULE)))
|
|
|
|
USEMODULE += l2filter
|
|
|
|
endif
|
|
|
|
|
2020-10-24 00:43:24 +02:00
|
|
|
ifneq (,$(filter gcoap_fileserver,$(USEMODULE)))
|
|
|
|
USEMODULE += gcoap
|
|
|
|
USEMODULE += checksum
|
|
|
|
USEMODULE += vfs
|
|
|
|
endif
|
|
|
|
|
2022-08-01 13:51:52 +02:00
|
|
|
ifneq (,$(filter gcoap_fileserver_delete,$(USEMODULE)))
|
|
|
|
USEMODULE += gcoap_fileserver
|
|
|
|
USEMODULE += vfs_util
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter gcoap_fileserver_put,$(USEMODULE)))
|
|
|
|
USEMODULE += gcoap_fileserver
|
|
|
|
endif
|
|
|
|
|
2020-03-26 12:02:26 +01:00
|
|
|
ifneq (,$(filter gcoap_forward_proxy,$(USEMODULE)))
|
|
|
|
USEMODULE += gcoap
|
|
|
|
USEMODULE += uri_parser
|
|
|
|
endif
|
|
|
|
|
2021-01-28 10:21:37 +01:00
|
|
|
ifneq (,$(filter gcoap_dtls,$(USEMODULE)))
|
|
|
|
USEMODULE += gcoap
|
|
|
|
USEMODULE += dsm
|
|
|
|
USEMODULE += sock_async_event
|
|
|
|
USEMODULE += sock_dtls
|
2021-11-17 17:12:21 +01:00
|
|
|
USEMODULE += ztimer_msec
|
2021-11-05 12:58:46 +01:00
|
|
|
USEMODULE += ztimer_usec
|
2021-01-28 10:21:37 +01:00
|
|
|
USEMODULE += event_thread
|
2021-11-17 17:12:21 +01:00
|
|
|
USEMODULE += event_timeout_ztimer
|
2021-01-28 10:21:37 +01:00
|
|
|
endif
|
|
|
|
|
2022-02-21 09:13:46 +01:00
|
|
|
ifneq (,$(filter dsm,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_dtls
|
|
|
|
USEMODULE += xtimer
|
2022-03-01 08:27:02 +01:00
|
|
|
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
|
|
# requires 64bit timestamps when using xtimer
|
|
|
|
USEMODULE += ztimer64_xtimer_compat
|
|
|
|
endif
|
2022-02-21 09:13:46 +01:00
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter gcoap,$(USEMODULE)))
|
|
|
|
USEMODULE += nanocoap
|
|
|
|
USEMODULE += sock_async_event
|
2022-04-27 17:59:30 +02:00
|
|
|
USEMODULE += sock_aux_local
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += sock_udp
|
|
|
|
USEMODULE += sock_util
|
2021-11-17 17:12:21 +01:00
|
|
|
USEMODULE += ztimer_msec
|
2021-11-05 12:58:46 +01:00
|
|
|
USEMODULE += ztimer_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += event_callback
|
2021-11-17 17:12:21 +01:00
|
|
|
USEMODULE += event_timeout_ztimer
|
2022-04-08 14:03:57 +02:00
|
|
|
USEMODULE += random
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
2021-07-21 16:10:37 +02:00
|
|
|
ifneq (,$(filter gcoap_dns,$(USEMODULE)))
|
|
|
|
USEMODULE += dns_msg
|
|
|
|
USEMODULE += gcoap
|
|
|
|
USEMODULE += ipv4_addr
|
|
|
|
USEMODULE += ipv6_addr
|
|
|
|
USEMODULE += uri_parser
|
|
|
|
USEMODULE += sock_util
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter luid,$(USEMODULE)))
|
|
|
|
FEATURES_OPTIONAL += periph_cpuid
|
|
|
|
endif
|
|
|
|
|
2022-07-26 11:56:36 +02:00
|
|
|
ifneq (,$(filter nanocoap_dtls,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_dtls
|
|
|
|
USEPKG += tinydtls
|
|
|
|
endif
|
|
|
|
|
2020-10-26 17:41:47 +01:00
|
|
|
ifneq (,$(filter nanocoap_sock,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_udp
|
2022-01-06 13:08:59 +01:00
|
|
|
USEMODULE += sock_util
|
2022-04-21 15:53:46 +02:00
|
|
|
USEMODULE += ztimer_msec
|
2020-10-26 17:41:47 +01:00
|
|
|
endif
|
|
|
|
|
2020-04-17 13:43:52 +02:00
|
|
|
ifneq (,$(filter nanocoap_cache,$(USEMODULE)))
|
|
|
|
USEMODULE += ztimer_sec
|
|
|
|
USEMODULE += hashes
|
|
|
|
endif
|
|
|
|
|
2022-04-24 23:47:01 +02:00
|
|
|
ifneq (,$(filter nanocoap_link_format,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
2022-04-12 22:34:42 +02:00
|
|
|
ifneq (,$(filter nanocoap_vfs,$(USEMODULE)))
|
|
|
|
USEMODULE += nanocoap_sock
|
|
|
|
USEMODULE += vfs
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter nanocoap_%,$(USEMODULE)))
|
|
|
|
USEMODULE += nanocoap
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter benchmark,$(USEMODULE)))
|
2021-11-03 13:04:54 +01:00
|
|
|
USEMODULE += ztimer_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter skald_%,$(USEMODULE)))
|
|
|
|
USEMODULE += skald
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter skald,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += radio_nrfble
|
2021-01-19 13:00:53 +01:00
|
|
|
FEATURES_OPTIONAL += periph_rtt
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += nrfble
|
|
|
|
USEMODULE += random
|
2021-01-19 13:00:53 +01:00
|
|
|
USEMODULE += ztimer_msec
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter bluetil_addr,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter cord_common,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
USEMODULE += luid
|
|
|
|
USEMODULE += gcoap
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter cord_lc cord_ep,$(USEMODULE)))
|
|
|
|
USEMODULE += core_thread_flags
|
|
|
|
USEMODULE += cord_common
|
2022-03-01 08:27:02 +01:00
|
|
|
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
|
|
# requires 64bit timestamps when using xtimer
|
|
|
|
USEMODULE += ztimer64_xtimer_compat
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter cord_epsim,$(USEMODULE)))
|
|
|
|
USEMODULE += cord_common
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter cord_ep_standalone,$(USEMODULE)))
|
|
|
|
USEMODULE += cord_ep
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter cord_lc,$(USEMODULE)))
|
|
|
|
USEMODULE += clif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter usbus,$(USEMODULE)))
|
|
|
|
DEFAULT_MODULE += auto_init_usbus
|
|
|
|
USEMODULE += core_thread_flags
|
|
|
|
USEMODULE += event
|
2020-12-16 17:24:40 +01:00
|
|
|
USEMODULE += luid
|
|
|
|
USEMODULE += fmt
|
2020-09-25 17:33:03 +02:00
|
|
|
ifeq (,$(filter usbdev_mock,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_usbdev
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter usbus_cdc_acm,$(USEMODULE)))
|
|
|
|
USEMODULE += tsrb
|
|
|
|
USEMODULE += usbus
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter usbus_cdc_ecm,$(USEMODULE)))
|
|
|
|
USEMODULE += iolist
|
|
|
|
USEMODULE += fmt
|
|
|
|
USEMODULE += usbus
|
|
|
|
USEMODULE += netdev_eth
|
|
|
|
USEMODULE += luid
|
|
|
|
endif
|
|
|
|
|
2020-06-01 18:01:32 +02:00
|
|
|
ifneq (,$(filter usbus_hid,$(USEMODULE)))
|
|
|
|
USEMODULE += isrpipe_read_timeout
|
|
|
|
USEMODULE += usbus
|
|
|
|
endif
|
|
|
|
|
2020-12-15 17:11:31 +01:00
|
|
|
ifneq (,$(filter usbus_dfu,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += riotboot
|
|
|
|
USEMODULE += usbus
|
|
|
|
USEMODULE += riotboot_slot
|
|
|
|
endif
|
|
|
|
|
2021-08-03 10:17:22 +02:00
|
|
|
ifneq (,$(filter ut_process,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter uuid,$(USEMODULE)))
|
|
|
|
USEMODULE += hashes
|
|
|
|
USEMODULE += random
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter riotboot_flashwrite, $(USEMODULE)))
|
|
|
|
USEMODULE += riotboot_slot
|
|
|
|
FEATURES_REQUIRED += periph_flashpage
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter riotboot_slot, $(USEMODULE)))
|
|
|
|
USEMODULE += riotboot_hdr
|
|
|
|
endif
|
|
|
|
|
2020-11-20 17:29:08 +01:00
|
|
|
ifneq (,$(filter riotboot_serial, $(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_flashpage
|
|
|
|
FEATURES_REQUIRED += periph_uart
|
2020-11-22 19:38:21 +01:00
|
|
|
USEMODULE += riotboot_reset
|
2020-11-20 17:29:08 +01:00
|
|
|
USEMODULE += checksum
|
|
|
|
endif
|
|
|
|
|
2020-11-22 19:38:21 +01:00
|
|
|
ifneq (,$(filter riotboot_reset, $(USEMODULE)))
|
|
|
|
USEMODULE += riotboot
|
|
|
|
USEMODULE += usb_board_reset
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter riotboot_hdr, $(USEMODULE)))
|
|
|
|
USEMODULE += checksum
|
|
|
|
USEMODULE += riotboot
|
|
|
|
endif
|
|
|
|
|
2020-12-15 17:14:18 +01:00
|
|
|
ifneq (,$(filter riotboot_usb_dfu, $(USEMODULE)))
|
|
|
|
USEMODULE += usbus_dfu
|
|
|
|
USEMODULE += riotboot_flashwrite
|
2021-10-25 22:24:44 +02:00
|
|
|
USEMODULE += ztimer_sec
|
2020-12-15 17:14:18 +01:00
|
|
|
FEATURES_REQUIRED += no_idle_thread
|
2021-01-27 15:29:19 +01:00
|
|
|
FEATURES_REQUIRED += periph_pm
|
2020-12-15 17:14:18 +01:00
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter irq_handler,$(USEMODULE)))
|
|
|
|
USEMODULE += event
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter sock_dtls, $(USEMODULE)))
|
|
|
|
USEMODULE += credman
|
|
|
|
USEMODULE += sock_udp
|
|
|
|
endif
|
|
|
|
|
2021-03-29 16:04:45 +02:00
|
|
|
ifneq (,$(filter credman_load, $(USEMODULE)))
|
|
|
|
USEPKG += tiny-asn1
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter suit,$(USEMODULE)))
|
|
|
|
USEPKG += nanocbor
|
|
|
|
USEPKG += libcose
|
|
|
|
USEMODULE += uuid
|
|
|
|
|
2020-08-26 16:21:21 +02:00
|
|
|
ifeq (,$(filter libcose_crypt_%,$(USEMODULE)))
|
|
|
|
USEMODULE += libcose_crypt_c25519
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter suit_transport_%, $(USEMODULE)))
|
|
|
|
USEMODULE += suit_transport
|
2022-05-17 12:00:05 +02:00
|
|
|
USEMODULE += suit_transport_worker
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter suit_transport_coap, $(USEMODULE)))
|
2021-11-11 13:39:24 +01:00
|
|
|
USEMODULE += nanocoap_sock
|
2022-02-23 17:41:51 +01:00
|
|
|
USEMODULE += ztimer_msec
|
2021-11-11 13:39:24 +01:00
|
|
|
USEMODULE += sock_util
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
2022-05-03 00:27:29 +02:00
|
|
|
ifneq (,$(filter suit_transport_vfs, $(USEMODULE)))
|
|
|
|
USEMODULE += vfs_util
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter suit_storage_%, $(USEMODULE)))
|
|
|
|
USEMODULE += suit_storage
|
|
|
|
endif
|
|
|
|
|
2021-02-12 16:48:39 +01:00
|
|
|
ifneq (,$(filter suit_storage_flashwrite, $(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += riotboot
|
|
|
|
USEMODULE += riotboot_slot
|
|
|
|
USEMODULE += riotboot_flashwrite
|
|
|
|
USEMODULE += riotboot_flashwrite_verify_sha256
|
|
|
|
endif
|
|
|
|
|
2022-04-04 11:31:22 +02:00
|
|
|
ifneq (,$(filter suit_storage_vfs,$(USEMODULE)))
|
|
|
|
USEMODULE += vfs
|
|
|
|
USEMODULE += mtd
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter suit_%,$(USEMODULE)))
|
|
|
|
USEMODULE += suit
|
|
|
|
endif
|
|
|
|
|
2022-09-09 11:28:58 +02:00
|
|
|
ifneq (,$(filter tiny_strerror_as_strerror,$(USEMODULE)))
|
|
|
|
USEMODULE += tiny_strerror
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
# include ztimer dependencies
|
2021-12-07 11:04:17 +01:00
|
|
|
ifneq (,$(filter ztimer ztimer_% %ztimer,$(USEMODULE)))
|
2020-09-25 17:33:03 +02:00
|
|
|
include $(RIOTBASE)/sys/ztimer/Makefile.dep
|
|
|
|
endif
|
|
|
|
|
2021-12-07 11:04:17 +01:00
|
|
|
# include ztimer64 dependencies
|
|
|
|
ifneq (,$(filter ztimer64%,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/ztimer64/Makefile.dep
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter evtimer,$(USEMODULE)))
|
2021-01-19 11:05:23 +01:00
|
|
|
ifneq (,$(filter evtimer_on_ztimer,$(USEMODULE)))
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
else
|
|
|
|
USEMODULE += xtimer
|
2022-03-01 16:41:30 +01:00
|
|
|
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
|
|
USEMODULE += evtimer_on_ztimer
|
|
|
|
endif
|
2021-01-19 11:05:23 +01:00
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# handle xtimer's deps. Needs to be done *after* ztimer
|
|
|
|
ifneq (,$(filter xtimer,$(USEMODULE)))
|
2022-03-01 11:59:29 +01:00
|
|
|
include $(RIOTBASE)/sys/xtimer/Makefile.dep
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter devfs_hwrng,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_hwrng
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter devfs_random,$(USEMODULE)))
|
|
|
|
USEMODULE += random
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter ecc_%,$(USEMODULE)))
|
|
|
|
USEMODULE += ecc
|
|
|
|
endif
|
|
|
|
|
2022-08-10 11:08:26 +02:00
|
|
|
ifneq (,$(filter bhp_%,$(USEMODULE)))
|
|
|
|
USEMODULE += bhp
|
|
|
|
endif
|
|
|
|
|
2020-09-15 14:43:09 +02:00
|
|
|
ifneq (,$(filter dbgpin,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += dbgpin
|
|
|
|
endif
|
|
|
|
|
2021-02-19 00:17:40 +01:00
|
|
|
ifneq (,$(filter fido2_ctap_%,$(USEMODULE)))
|
|
|
|
USEMODULE += fido2_ctap_transport
|
|
|
|
USEMODULE += fido2_ctap
|
|
|
|
ifneq (,$(filter fido2_ctap_transport_hid,$(USEMODULE)))
|
2022-03-04 16:57:20 +01:00
|
|
|
USEMODULE += ztimer64_msec
|
2021-02-19 00:17:40 +01:00
|
|
|
USEMODULE += usbus_hid
|
|
|
|
DISABLE_MODULE += auto_init_usbus
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter fido2_ctap,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_flashpage
|
2022-04-11 13:03:41 +02:00
|
|
|
FEATURES_REQUIRED += periph_flashpage_in_address_space
|
2021-02-19 00:17:40 +01:00
|
|
|
FEATURES_REQUIRED += periph_gpio_irq
|
|
|
|
|
|
|
|
USEPKG += tiny-asn1
|
|
|
|
USEPKG += tinycbor
|
|
|
|
USEPKG += micro-ecc
|
|
|
|
|
|
|
|
USEMODULE += mtd_flashpage
|
|
|
|
USEMODULE += mtd_write_page
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
USEMODULE += event
|
2022-03-04 16:57:20 +01:00
|
|
|
USEMODULE += event_timeout_ztimer
|
2021-02-19 00:17:40 +01:00
|
|
|
USEMODULE += cipher_modes
|
|
|
|
USEMODULE += crypto_aes_256
|
|
|
|
USEMODULE += hashes
|
|
|
|
USEMODULE += fido2
|
|
|
|
endif
|
|
|
|
|
2021-04-03 17:33:14 +02:00
|
|
|
ifneq (,$(filter rust_riotmodules,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/rust_riotmodules/Makefile.dep
|
|
|
|
endif
|
|
|
|
|
2022-07-06 00:41:13 +02:00
|
|
|
ifneq (,$(filter auto_init%,$(USEMODULE)))
|
|
|
|
USEMODULE += preprocessor_successor
|
|
|
|
endif
|
|
|
|
|
2022-12-05 15:21:22 +01:00
|
|
|
ifneq (,$(filter uri_parser,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|
|
|
|
|
2019-03-23 14:20:18 +01:00
|
|
|
include $(RIOTBASE)/sys/test_utils/Makefile.dep
|