mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
0819660303
Conditionally implement gettimeofday() if module is included, this avoids including ztimer64 even when not needed
25 lines
533 B
Makefile
25 lines
533 B
Makefile
USEMODULE += tinydtls
|
|
|
|
USEMODULE += memarray
|
|
USEMODULE += hashes
|
|
USEMODULE += random
|
|
USEMODULE += tinydtls_aes
|
|
USEMODULE += tinydtls_ecc
|
|
USEMODULE += ztimer64_msec
|
|
|
|
# TinyDTLS only has support for 32-bit architectures ATM
|
|
FEATURES_REQUIRED += arch_32bit
|
|
|
|
ifneq (,$(filter sock_dtls,$(USEMODULE)))
|
|
USEMODULE += tinydtls_sock_dtls
|
|
USEMODULE += ztimer_usec
|
|
endif
|
|
|
|
ifneq (,$(filter newlib_syscalls_default,$(USEMODULE)))
|
|
USEMODULE += libc_gettimeofday
|
|
endif
|
|
|
|
ifneq (,$(filter native,$(CPU)))
|
|
USEMODULE += libc_gettimeofday
|
|
endif
|