1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sock: make sock implementation dependency of sock API + stack

This is the logical continuation of [#12931] for _all_ `sock`
implementations.

[#12931]: https://github.com/RIOT-OS/RIOT/pull/12931
This commit is contained in:
Martine S. Lenders 2020-08-31 15:16:45 +02:00
parent f264b049aa
commit 8386ec9fac
No known key found for this signature in database
GPG Key ID: CCD317364F63286F
3 changed files with 21 additions and 2 deletions

View File

@ -645,6 +645,12 @@ ifneq (,$(filter gnrc,$(USEMODULE)))
USEMODULE += gnrc_netif
USEMODULE += gnrc_netif_hdr
USEMODULE += gnrc_pktbuf
ifneq (,$(filter sock_async, $(USEMODULE)))
USEMODULE += gnrc_sock_async
endif
ifneq (,$(filter sock_ip, $(USEMODULE)))
USEMODULE += gnrc_sock_ip
endif
ifneq (,$(filter sock_udp, $(USEMODULE)))
USEMODULE += gnrc_sock_udp
endif

View File

@ -4,6 +4,15 @@ FEATURES_REQUIRED += arch_32bit
DEFAULT_MODULE += auto_init_lwip
ifneq (,$(filter lwip_sock_async,$(USEMODULE)))
USEMODULE += sock_async
ifneq (,$(filter sock_async,$(USEMODULE)))
USEMODULE += lwip_sock_async
endif
ifneq (,$(filter sock_ip,$(USEMODULE)))
USEMODULE += lwip_sock_ip
endif
ifneq (,$(filter sock_tcp,$(USEMODULE)))
USEMODULE += lwip_sock_tcp
endif
ifneq (,$(filter sock_udp,$(USEMODULE)))
USEMODULE += lwip_sock_udp
endif

View File

@ -8,3 +8,7 @@ USEMODULE += tinydtls_ecc
# TinyDTLS only has support for 32-bit architectures ATM
FEATURES_REQUIRED += arch_32bit
ifneq (,$(filter sock_dtls,$(USEMODULE)))
USEMODULE += tinydtls_sock_dtls
endif