1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

Merge pull request #14906 from miri64/sock/cleanup/deps

sock: cleanup dependencies
This commit is contained in:
benpicco 2020-09-09 12:01:28 +02:00 committed by GitHub
commit df913bf9bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 67 additions and 64 deletions

View File

@ -143,18 +143,12 @@ ifneq (,$(filter gnrc_sock_%,$(USEMODULE)))
endif endif
ifneq (,$(filter gnrc_sock_async,$(USEMODULE))) ifneq (,$(filter gnrc_sock_async,$(USEMODULE)))
USEMODULE += sock_async
USEMODULE += gnrc_netapi_callbacks USEMODULE += gnrc_netapi_callbacks
endif endif
ifneq (,$(filter gnrc_sock_ip,$(USEMODULE)))
USEMODULE += sock_ip
endif
ifneq (,$(filter gnrc_sock_udp,$(USEMODULE))) ifneq (,$(filter gnrc_sock_udp,$(USEMODULE)))
USEMODULE += gnrc_udp USEMODULE += gnrc_udp
USEMODULE += random # to generate random ports USEMODULE += random # to generate random ports
USEMODULE += sock_udp
endif endif
ifneq (,$(filter gnrc_sock,$(USEMODULE))) ifneq (,$(filter gnrc_sock,$(USEMODULE)))
@ -557,17 +551,14 @@ endif
ifneq (,$(filter lwip_sock_ip,$(USEMODULE))) ifneq (,$(filter lwip_sock_ip,$(USEMODULE)))
USEMODULE += lwip_raw USEMODULE += lwip_raw
USEMODULE += sock_ip
endif endif
ifneq (,$(filter lwip_sock_tcp,$(USEMODULE))) ifneq (,$(filter lwip_sock_tcp,$(USEMODULE)))
USEMODULE += lwip_tcp USEMODULE += lwip_tcp
USEMODULE += sock_tcp
endif endif
ifneq (,$(filter lwip_sock_udp,$(USEMODULE))) ifneq (,$(filter lwip_sock_udp,$(USEMODULE)))
USEMODULE += lwip_udp USEMODULE += lwip_udp
USEMODULE += sock_udp
endif endif
ifneq (,$(filter lwip_%,$(USEMODULE))) ifneq (,$(filter lwip_%,$(USEMODULE)))
@ -645,6 +636,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
@ -848,6 +845,7 @@ ifneq (,$(filter sock_async_event,$(USEMODULE)))
endif endif
ifneq (,$(filter sock_dns,$(USEMODULE))) ifneq (,$(filter sock_dns,$(USEMODULE)))
USEMODULE += sock_udp
USEMODULE += sock_util USEMODULE += sock_util
USEMODULE += posix_headers USEMODULE += posix_headers
endif endif
@ -855,7 +853,6 @@ endif
ifneq (,$(filter sock_util,$(USEMODULE))) ifneq (,$(filter sock_util,$(USEMODULE)))
USEMODULE += posix_inet USEMODULE += posix_inet
USEMODULE += fmt USEMODULE += fmt
USEMODULE += sock_udp
endif endif
ifneq (,$(filter event_%,$(USEMODULE))) ifneq (,$(filter event_%,$(USEMODULE)))
@ -901,8 +898,9 @@ endif
ifneq (,$(filter gcoap,$(USEMODULE))) ifneq (,$(filter gcoap,$(USEMODULE)))
USEMODULE += nanocoap USEMODULE += nanocoap
USEMODULE += gnrc_sock_async USEMODULE += sock_async
USEMODULE += sock_async_event USEMODULE += sock_async_event
USEMODULE += sock_udp
USEMODULE += sock_util USEMODULE += sock_util
USEMODULE += event_callback USEMODULE += event_callback
USEMODULE += event_timeout USEMODULE += event_timeout
@ -1021,7 +1019,6 @@ endif
ifneq (,$(filter tinydtls_sock_dtls, $(USEMODULE))) ifneq (,$(filter tinydtls_sock_dtls, $(USEMODULE)))
USEPKG += tinydtls USEPKG += tinydtls
USEMODULE += sock_dtls
endif endif
ifneq (,$(filter sock_dtls, $(USEMODULE))) ifneq (,$(filter sock_dtls, $(USEMODULE)))

View File

@ -12,7 +12,6 @@ RIOTBASE ?= $(CURDIR)/../..
USEMODULE += gnrc_netdev_default USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for IPv6 and UDP # Specify the mandatory networking modules for IPv6 and UDP
USEMODULE += gnrc_sock_udp
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
# Include MQTT-SN # Include MQTT-SN
USEMODULE += asymcute USEMODULE += asymcute

View File

@ -13,7 +13,7 @@ USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for IPv6 and UDP # Specify the mandatory networking modules for IPv6 and UDP
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_sock_udp USEMODULE += sock_udp
# Add also the shell, some shell commands # Add also the shell, some shell commands
USEMODULE += shell USEMODULE += shell

View File

@ -16,10 +16,13 @@ USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for IPv6 and UDP # Specify the mandatory networking modules for IPv6 and UDP
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_sock_udp
# Use tinydtls for sock_dtls # Specify DTLS implementation
USEMODULE += tinydtls_sock_dtls USEPKG += tinydtls
# Pull in sock APIs
USEMODULE += sock_dtls
USEMODULE += sock_udp
# tinydtls needs crypto secure PRNG # tinydtls needs crypto secure PRNG
USEMODULE += prng_sha1prng USEMODULE += prng_sha1prng

View File

@ -13,7 +13,7 @@ USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for IPv6 and UDP # Specify the mandatory networking modules for IPv6 and UDP
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_sock_udp USEMODULE += sock_udp
# Add also the shell, some shell commands # Add also the shell, some shell commands
USEMODULE += shell USEMODULE += shell

View File

@ -11,8 +11,7 @@ RIOTBASE ?= $(CURDIR)/../..
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present # NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
USEMODULE += gnrc_netdev_default USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for IPv6 and UDP # Specify the mandatory networking modules for IPv6
USEMODULE += gnrc_sock_udp
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
# Include MQTT-SN # Include MQTT-SN
USEMODULE += emcute USEMODULE += emcute

View File

@ -13,8 +13,7 @@ USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for IPv6 and UDP # Specify the mandatory networking modules for IPv6 and UDP
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_udp USEMODULE += sock_udp
USEMODULE += gnrc_sock_udp
# Additional networking modules that can be dropped if not needed # Additional networking modules that can be dropped if not needed
USEMODULE += gnrc_icmpv6_echo USEMODULE += gnrc_icmpv6_echo

View File

@ -41,7 +41,6 @@ ifneq (0,$(LWIP_IPV4))
USEMODULE += lwip_arp USEMODULE += lwip_arp
USEMODULE += lwip_ipv4 USEMODULE += lwip_ipv4
USEMODULE += lwip_dhcp_auto USEMODULE += lwip_dhcp_auto
USEMODULE += lwip_sock_udp
CFLAGS += -DETHARP_SUPPORT_STATIC_ENTRIES=1 CFLAGS += -DETHARP_SUPPORT_STATIC_ENTRIES=1
LWIP_IPV6 ?= 0 LWIP_IPV6 ?= 0
else else
@ -54,11 +53,13 @@ ifneq (0,$(LWIP_IPV6))
endif endif
USEMODULE += lwip_netdev USEMODULE += lwip_netdev
USEMODULE += lwip lwip_sock_ip USEMODULE += lwip
USEMODULE += lwip_tcp lwip_sock_tcp
USEMODULE += lwip_sock_async
USEMODULE += sock_async_event USEMODULE += sock_async_event
USEMODULE += sock_ip
USEMODULE += sock_udp
USEMODULE += sock_tcp
#### ####
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include

View File

@ -14,8 +14,7 @@ USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for socket communication via UDP # Specify the mandatory networking modules for socket communication via UDP
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
# Add stack-specific implementations of sock modules # Add stack-specific implementations of sock modules
USEMODULE += gnrc_sock_async USEMODULE += sock_udp
USEMODULE += gnrc_sock_udp
# Add POSIX modules # Add POSIX modules
USEMODULE += posix_select USEMODULE += posix_select
USEMODULE += posix_sockets USEMODULE += posix_sockets

View File

@ -13,8 +13,7 @@ USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for socket communication via UDP # Specify the mandatory networking modules for socket communication via UDP
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_udp USEMODULE += sock_udp
USEMODULE += gnrc_sock_udp
USEMODULE += posix_sockets USEMODULE += posix_sockets
USEMODULE += posix_time USEMODULE += posix_time
USEMODULE += posix_inet USEMODULE += posix_inet

View File

@ -25,8 +25,7 @@ endif
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for IPv6 and UDP # Specify the mandatory networking modules for IPv6 and UDP
USEMODULE += gnrc_ipv6_router_default USEMODULE += gnrc_ipv6_router_default
USEMODULE += gnrc_udp USEMODULE += sock_udp
USEMODULE += gnrc_sock_udp
# Additional networking modules that can be dropped if not needed # Additional networking modules that can be dropped if not needed
USEMODULE += gnrc_icmpv6_echo USEMODULE += gnrc_icmpv6_echo

View File

@ -15,7 +15,7 @@ USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules # Specify the mandatory networking modules
USEMODULE += gnrc_ipv6_router_default USEMODULE += gnrc_ipv6_router_default
USEMODULE += gnrc_sock_udp USEMODULE += sock_udp
# Additional networking modules that can be dropped if not needed # Additional networking modules that can be dropped if not needed
USEMODULE += gnrc_icmpv6_echo USEMODULE += gnrc_icmpv6_echo
# Add also the shell, some shell commands # Add also the shell, some shell commands

View File

@ -4,8 +4,17 @@ 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
ifneq (,$(filter stm32_eth,$(USEMODULE))) ifneq (,$(filter stm32_eth,$(USEMODULE)))

View File

@ -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

View File

@ -16,7 +16,7 @@ else
endif endif
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_sock_udp USEMODULE += sock_udp
USEMODULE += gnrc_netif_single # Only one interface used and it makes USEMODULE += gnrc_netif_single # Only one interface used and it makes
# shell commands easier # shell commands easier
USEMODULE += emcute USEMODULE += emcute

View File

@ -5,7 +5,7 @@ RIOTBASE ?= $(CURDIR)/../..
export TAP ?= tap0 export TAP ?= tap0
USEMODULE += sock_dns USEMODULE += sock_dns
USEMODULE += gnrc_sock_udp
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_ipv6_nib_dns USEMODULE += gnrc_ipv6_nib_dns
# use Ethernet as link-layer protocol # use Ethernet as link-layer protocol

View File

@ -3,10 +3,9 @@ include ../Makefile.tests_common
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
USEMODULE += gnrc_ipv6_hdr USEMODULE += gnrc_ipv6_hdr
USEMODULE += gnrc_pktdump USEMODULE += gnrc_pktdump
USEMODULE += gnrc_sock_async
USEMODULE += gnrc_sock_ip
USEMODULE += gnrc_sock_udp
USEMODULE += sock_async_event USEMODULE += sock_async_event
USEMODULE += sock_ip
USEMODULE += sock_udp
USEMODULE += od USEMODULE += od
USEMODULE += xtimer USEMODULE += xtimer

View File

@ -5,7 +5,6 @@ RIOTBASE ?= $(CURDIR)/../..
export TAP ?= tap0 export TAP ?= tap0
USEMODULE += sock_dns USEMODULE += sock_dns
USEMODULE += gnrc_sock_udp
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_ipv6_nib_dns USEMODULE += gnrc_ipv6_nib_dns
USEMODULE += gnrc_netif_single # Only one interface used and it makes USEMODULE += gnrc_netif_single # Only one interface used and it makes

View File

@ -1,6 +1,6 @@
include ../Makefile.tests_common include ../Makefile.tests_common
USEMODULE += gnrc_sock_ip USEMODULE += sock_ip
USEMODULE += gnrc_ipv6 USEMODULE += gnrc_ipv6
USEMODULE += ps USEMODULE += ps

View File

@ -3,7 +3,7 @@ include ../Makefile.tests_common
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_neterr USEMODULE += gnrc_neterr
USEMODULE += gnrc_sock_udp USEMODULE += sock_udp
USEMODULE += od USEMODULE += od
USEMODULE += xtimer USEMODULE += xtimer

View File

@ -1,7 +1,7 @@
include ../Makefile.tests_common include ../Makefile.tests_common
USEMODULE += gnrc_sock_check_reuse USEMODULE += gnrc_sock_check_reuse
USEMODULE += gnrc_sock_udp USEMODULE += sock_udp
USEMODULE += gnrc_ipv6 USEMODULE += gnrc_ipv6
USEMODULE += ps USEMODULE += ps

View File

@ -21,11 +21,13 @@ ifneq (0, $(LWIP_IPV6))
endif endif
# including lwip_ipv6_mld would currently break this test on at86rf2xx radios # including lwip_ipv6_mld would currently break this test on at86rf2xx radios
USEMODULE += lwip lwip_sock_ip lwip_netdev USEMODULE += lwip lwip_netdev
USEMODULE += lwip_udp lwip_sock_udp USEMODULE += lwip_udp
USEMODULE += lwip_tcp lwip_sock_tcp USEMODULE += lwip_tcp
USEMODULE += lwip_sock_async
USEMODULE += sock_async_event USEMODULE += sock_async_event
USEMODULE += sock_ip
USEMODULE += sock_tcp
USEMODULE += sock_udp
USEMODULE += sock_util USEMODULE += sock_util
USEMODULE += shell USEMODULE += shell
USEMODULE += shell_commands USEMODULE += shell_commands

View File

@ -20,10 +20,10 @@ endif
USEMODULE += inet_csum USEMODULE += inet_csum
USEMODULE += l2util USEMODULE += l2util
USEMODULE += lwip_netdev USEMODULE += lwip_netdev
USEMODULE += lwip_sock_ip
USEMODULE += netdev_eth USEMODULE += netdev_eth
USEMODULE += netdev_test USEMODULE += netdev_test
USEMODULE += ps USEMODULE += ps
USEMODULE += sock_ip
DISABLE_MODULE += auto_init_lwip DISABLE_MODULE += auto_init_lwip

View File

@ -19,10 +19,10 @@ endif
USEMODULE += inet_csum USEMODULE += inet_csum
USEMODULE += lwip_netdev USEMODULE += lwip_netdev
USEMODULE += lwip_sock_tcp
USEMODULE += netdev_eth USEMODULE += netdev_eth
USEMODULE += netdev_test USEMODULE += netdev_test
USEMODULE += ps USEMODULE += ps
USEMODULE += sock_tcp
DISABLE_MODULE += auto_init_lwip DISABLE_MODULE += auto_init_lwip

View File

@ -20,10 +20,10 @@ endif
USEMODULE += inet_csum USEMODULE += inet_csum
USEMODULE += l2util USEMODULE += l2util
USEMODULE += lwip_netdev USEMODULE += lwip_netdev
USEMODULE += lwip_sock_udp
USEMODULE += netdev_eth USEMODULE += netdev_eth
USEMODULE += netdev_test USEMODULE += netdev_test
USEMODULE += ps USEMODULE += ps
USEMODULE += sock_udp
DISABLE_MODULE += auto_init_lwip DISABLE_MODULE += auto_init_lwip

View File

@ -6,8 +6,7 @@ USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules # Specify the mandatory networking modules
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_udp USEMODULE += sock_udp
USEMODULE += gnrc_sock_udp
USEMODULE += nanocoap_sock USEMODULE += nanocoap_sock

View File

@ -1,7 +1,7 @@
include ../Makefile.tests_common include ../Makefile.tests_common
USEMODULE += gnrc_ipv6 USEMODULE += gnrc_ipv6
USEMODULE += gnrc_sock_udp USEMODULE += sock_udp
USEPKG += libcoap USEPKG += libcoap
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include

View File

@ -4,14 +4,12 @@ include ../Makefile.tests_common
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present # NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
USEMODULE += gnrc_netdev_default USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for IPv6 and UDP # Specify the mandatory networking modules for IPv6
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_udp
# Additional networking modules that can be dropped if not needed # Additional networking modules that can be dropped if not needed
USEMODULE += gnrc_icmpv6_echo USEMODULE += gnrc_icmpv6_echo
# USEMODULE += sock_udp
USEMODULE += gnrc_sock_udp
USEPKG += microcoap USEPKG += microcoap

View File

@ -9,14 +9,14 @@ USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for IPv6 and UDP # Specify the mandatory networking modules for IPv6 and UDP
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_sock_async
USEMODULE += gnrc_sock_udp
USEMODULE += sock_async_event USEMODULE += sock_async_event
USEMODULE += sock_dtls
USEMODULE += sock_udp
USEMODULE += event_thread_medium USEMODULE += event_thread_medium
USEMODULE += event_timeout USEMODULE += event_timeout
# Use tinydtls for sock_dtls # Use tinydtls for sock_dtls
USEMODULE += tinydtls_sock_dtls USEPKG += tinydtls
# tinydtls needs crypto secure PRNG # tinydtls needs crypto secure PRNG
USEMODULE += prng_sha1prng USEMODULE += prng_sha1prng

View File

@ -9,8 +9,7 @@ USEMODULE += auto_init_gnrc_netif
# Specify the mandatory networking modules for IPv6 and UDP # Specify the mandatory networking modules for IPv6 and UDP
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_ipv6_router_default USEMODULE += gnrc_ipv6_router_default
USEMODULE += gnrc_udp USEMODULE += sock_udp
USEMODULE += gnrc_sock_udp
# Additional networking modules that can be dropped if not needed # Additional networking modules that can be dropped if not needed
USEMODULE += gnrc_icmpv6_echo USEMODULE += gnrc_icmpv6_echo

View File

@ -1,7 +1,6 @@
include ../Makefile.tests_common include ../Makefile.tests_common
USEMODULE += sntp USEMODULE += sntp
USEMODULE += gnrc_sock_udp
USEMODULE += gnrc_ipv6_default USEMODULE += gnrc_ipv6_default
USEMODULE += auto_init_gnrc_netif USEMODULE += auto_init_gnrc_netif
USEMODULE += gnrc_netdev_default USEMODULE += gnrc_netdev_default