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-06-24 15:01:10 +02:00
|
|
|
ifneq (,$(filter auto_init_wdt_thread,$(USEMODULE)))
|
|
|
|
USEMODULE += periph_wdt_auto_start
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
|
|
|
|
# we can only have either auto_init_wdt_event or auto_init_wdt_thread
|
|
|
|
ifneq (,$(filter auto_init_wdt_event,$(USEMODULE)))
|
|
|
|
$(error auto_init_wdt_event and auto_init_wdt_thread are mutually exclusive)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter auto_init_wdt_event,$(USEMODULE)))
|
|
|
|
USEMODULE += event_periodic_callback
|
|
|
|
USEMODULE += event_thread
|
|
|
|
USEMODULE += periph_wdt_auto_start
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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-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 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 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_string,$(USEMODULE)))
|
|
|
|
USEMODULE += od
|
|
|
|
endif
|
|
|
|
|
2023-04-21 09:45:32 +02:00
|
|
|
ifneq (,$(filter od,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
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
|
|
|
|
|
2023-04-21 09:45:45 +02:00
|
|
|
ifneq (,$(filter shell_commands,$(USEMODULE)))
|
|
|
|
# shell_commands has been renamed to shell_cmds_default, but let's keep this
|
|
|
|
# for backward compatibility
|
|
|
|
USEMODULE += shell_cmds_default
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter shell_cmd%,$(USEMODULE)))
|
|
|
|
# each and every command is a submodule of shell_cmds
|
|
|
|
USEMODULE += shell_cmds
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter shell_cmds,$(USEMODULE)))
|
|
|
|
USEMODULE += shell
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
# Include all stdio_% dependencies after all USEMODULE += stdio_%
|
|
|
|
include $(RIOTBASE)/makefiles/stdio.inc.mk
|
|
|
|
|
|
|
|
ifneq (,$(filter isrpipe_read_timeout,$(USEMODULE)))
|
|
|
|
USEMODULE += isrpipe
|
2023-05-22 13:27:44 +02:00
|
|
|
USEMODULE += ztimer_usec
|
2020-09-25 17:33:03 +02:00
|
|
|
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
|
|
|
|
|
2022-03-01 10:12:34 +01:00
|
|
|
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 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 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 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
|
|
|
|
|
2023-04-21 09:56:28 +02:00
|
|
|
ifneq (,$(filter senml_%,$(USEMODULE)))
|
|
|
|
USEMODULE += senml
|
2021-04-23 11:32:36 +02:00
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter evtimer_mbox,$(USEMODULE)))
|
|
|
|
USEMODULE += evtimer
|
|
|
|
USEMODULE += core_mbox
|
|
|
|
endif
|
|
|
|
|
2023-04-21 10:02:46 +02:00
|
|
|
ifneq (,$(filter can_%,$(USEMODULE)))
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter conn_can,$(USEMODULE)))
|
|
|
|
USEMODULE += can
|
|
|
|
endif
|
|
|
|
|
2020-06-19 17:04:00 +02:00
|
|
|
ifneq (,$(filter entropy_source_%,$(USEMODULE)))
|
|
|
|
USEMODULE += entropy_source
|
|
|
|
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
|
2020-09-25 17:33:03 +02:00
|
|
|
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 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
|
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
|
|
|
|
|
2022-07-26 11:56:36 +02:00
|
|
|
ifneq (,$(filter nanocoap_dtls,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_dtls
|
|
|
|
USEPKG += tinydtls
|
|
|
|
endif
|
|
|
|
|
2023-03-10 01:09:21 +01:00
|
|
|
ifneq (,$(filter nanocoap_server_auto_init,$(USEMODULE)))
|
|
|
|
USEMODULE += nanocoap_server
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter nanocoap_server,$(USEMODULE)))
|
|
|
|
USEMODULE += nanocoap_resources
|
|
|
|
USEMODULE += nanocoap_sock
|
|
|
|
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 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
|
2023-03-14 18:13:09 +01:00
|
|
|
USEMODULE += ztimer_msec
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter cord_lc,$(USEMODULE)))
|
|
|
|
USEMODULE += clif
|
|
|
|
endif
|
|
|
|
|
2023-04-21 12:46:38 +02:00
|
|
|
ifneq (,$(filter usbus%,$(USEMODULE)))
|
2022-11-25 21:15:51 +01:00
|
|
|
USEMODULE += usbus
|
2023-04-21 12:46:38 +02:00
|
|
|
# usbus is not directly in a subdirectory of sys, so we have to include the
|
|
|
|
# Makefile.dep manually
|
|
|
|
include $(RIOTBASE)/sys/usb/usbus/Makefile.dep
|
2022-11-25 21:15:51 +01:00
|
|
|
endif
|
|
|
|
|
2023-04-21 10:17:35 +02:00
|
|
|
ifneq (,$(filter riotboot_%, $(USEMODULE)))
|
2020-11-22 19:38:21 +01:00
|
|
|
USEMODULE += riotboot
|
2022-11-24 14:57:58 +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)))
|
|
|
|
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
|
|
|
# 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
|
|
|
|
|
2023-04-21 10:22:22 +02:00
|
|
|
ifneq (,$(filter fido2_ctap%,$(USEMODULE)))
|
2021-02-19 00:17:40 +01:00
|
|
|
USEMODULE += fido2
|
|
|
|
endif
|
|
|
|
|
2023-08-29 18:43:32 +02:00
|
|
|
ifneq (,$(filter psa_crypto,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/psa_crypto/Makefile.dep
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter psa_riot_cipher_aes_%,$(USEMODULE)))
|
|
|
|
USEMODULE += psa_riot_cipher_aes_common
|
|
|
|
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
|
|
|
|
|
2023-04-29 14:10:59 +02:00
|
|
|
ifneq (,$(filter wifi_scan_list,$(USEMODULE)))
|
|
|
|
USEMODULE += l2scan_list
|
|
|
|
endif
|
|
|
|
|
2019-03-23 14:20:18 +01:00
|
|
|
include $(RIOTBASE)/sys/test_utils/Makefile.dep
|