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:
parent
f264b049aa
commit
8386ec9fac
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user