mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +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
|
||||||
USEMODULE += gnrc_netif_hdr
|
USEMODULE += gnrc_netif_hdr
|
||||||
USEMODULE += gnrc_pktbuf
|
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)))
|
ifneq (,$(filter sock_udp, $(USEMODULE)))
|
||||||
USEMODULE += gnrc_sock_udp
|
USEMODULE += gnrc_sock_udp
|
||||||
endif
|
endif
|
||||||
|
@ -4,6 +4,15 @@ FEATURES_REQUIRED += arch_32bit
|
|||||||
|
|
||||||
DEFAULT_MODULE += auto_init_lwip
|
DEFAULT_MODULE += auto_init_lwip
|
||||||
|
|
||||||
ifneq (,$(filter lwip_sock_async,$(USEMODULE)))
|
ifneq (,$(filter sock_async,$(USEMODULE)))
|
||||||
USEMODULE += sock_async
|
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
|
endif
|
||||||
|
@ -8,3 +8,7 @@ USEMODULE += tinydtls_ecc
|
|||||||
|
|
||||||
# TinyDTLS only has support for 32-bit architectures ATM
|
# TinyDTLS only has support for 32-bit architectures ATM
|
||||||
FEATURES_REQUIRED += arch_32bit
|
FEATURES_REQUIRED += arch_32bit
|
||||||
|
|
||||||
|
ifneq (,$(filter sock_dtls,$(USEMODULE)))
|
||||||
|
USEMODULE += tinydtls_sock_dtls
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user