2018-05-04 16:22:46 +02:00
|
|
|
# lwIP's memory management doesn't seem to work on non 32-bit platforms at the
|
|
|
|
# moment.
|
2024-01-12 17:53:46 +01:00
|
|
|
FEATURES_REQUIRED_ANY += arch_32bit|arch_64bit
|
2020-01-16 09:25:51 +01:00
|
|
|
|
|
|
|
DEFAULT_MODULE += auto_init_lwip
|
2022-07-22 14:11:19 +02:00
|
|
|
USEMODULE += event
|
2020-02-20 12:51:19 +01:00
|
|
|
|
2020-08-31 15:16:45 +02:00
|
|
|
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
|
2020-02-20 12:51:19 +01:00
|
|
|
endif
|
2020-08-03 14:31:46 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter stm32_eth,$(USEMODULE)))
|
|
|
|
ifneq (,$(filter lwip_dhcp_auto,$(USEMODULE)))
|
|
|
|
USEMODULE += stm32_eth_link_up
|
|
|
|
endif
|
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter lwip_ipv6_autoconfig lwip_ipv6_mld,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_ipv6
|
|
|
|
endif
|
|
|
|
|
2021-10-08 01:45:25 +02:00
|
|
|
ifneq (,$(filter lwip_ipv4,$(USEMODULE)))
|
|
|
|
USEMODULE += ipv4
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter lwip_ipv6,$(USEMODULE)))
|
2021-10-08 01:09:38 +02:00
|
|
|
USEMODULE += ipv6
|
2020-09-25 17:33:03 +02:00
|
|
|
USEMODULE += random
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter lwip_udplite,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_udp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter lwip_sock_%,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_sock
|
2022-03-09 16:52:57 +01:00
|
|
|
CFLAGS += -DLWIP_SO_RCVTIMEO
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter lwip_sock_ip,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_raw
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter lwip_sock_tcp,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_tcp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter lwip_sock_udp,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_udp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter lwip_sixlowpan,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_ipv6_autoconfig
|
|
|
|
USEMODULE += l2util
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter lwip_%,$(USEMODULE)))
|
|
|
|
USEPKG += lwip
|
|
|
|
USEMODULE += core_mbox
|
|
|
|
USEMODULE += lwip_api
|
|
|
|
USEMODULE += lwip_contrib
|
|
|
|
USEMODULE += lwip_core
|
|
|
|
USEMODULE += lwip_netif
|
2021-03-06 13:43:14 +01:00
|
|
|
USEMODULE += lwip_netif_init_devs
|
2021-01-29 13:28:30 +01:00
|
|
|
USEMODULE += netdev
|
2020-09-25 17:33:03 +02:00
|
|
|
ifeq (,$(filter lwip_ipv4 lwip_ipv6,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_ipv4
|
|
|
|
endif
|
|
|
|
ifeq (,$(filter lwip_tcp lwip_udp lwip_udplite,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_raw
|
|
|
|
endif
|
|
|
|
ifneq (,$(filter netdev_eth,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_ethernet
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter lwip_ppp,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_polarssl
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter lwip_contrib,$(USEMODULE)))
|
|
|
|
USEMODULE += sema
|
2021-11-04 13:20:23 +01:00
|
|
|
USEMODULE += ztimer_msec
|
2022-08-17 14:39:45 +02:00
|
|
|
ifneq (,$(filter bhp,$(USEMODULE)))
|
2022-07-22 14:11:19 +02:00
|
|
|
USEMODULE += bhp_event
|
2022-08-17 14:39:45 +02:00
|
|
|
endif
|
2020-09-25 17:33:03 +02:00
|
|
|
endif
|
|
|
|
|
2021-08-15 13:46:48 +02:00
|
|
|
ifneq (,$(filter lwip_netif,$(USEMODULE)))
|
|
|
|
USEMODULE += netif
|
|
|
|
endif
|
|
|
|
|
2020-09-25 17:33:03 +02:00
|
|
|
ifneq (,$(filter lwip_dhcp_auto,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_dhcp
|
|
|
|
endif
|
2021-08-15 13:46:48 +02:00
|
|
|
|
2024-04-26 21:16:00 +02:00
|
|
|
# if an actual netdev is used, we need lwip_netdev to integrate it
|
|
|
|
ifneq (,$(filter lwip_ethernet lwip_sixlowpan,$(USEMODULE)))
|
|
|
|
USEMODULE += lwip_netdev
|
|
|
|
endif
|
|
|
|
|
2021-08-15 13:46:48 +02:00
|
|
|
ifneq (,$(filter netif,$(USEMODULE)))
|
|
|
|
USEMODULE += fmt
|
|
|
|
endif
|