1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

pkg/lwip: add missing dependencies

This commit is contained in:
krzysztof-cabaj 2025-04-09 20:55:56 +02:00
parent 0a511dd858
commit ae20e075db

View File

@ -34,6 +34,7 @@ endif
ifneq (,$(filter lwip_ipv6,$(USEMODULE)))
USEMODULE += ipv6
USEMODULE += ipv6_addr
USEMODULE += random
endif
@ -108,6 +109,18 @@ ifneq (,$(filter lwip_ethernet lwip_sixlowpan,$(USEMODULE)))
USEMODULE += lwip_netdev
endif
# Addition of missing modules for boards that do not have physical network
# module - a dirty hack when lwip_dhcp is used for IPv4 (use of lwip_ipv4 module)
# on such boards (lack of netdev_new_api module)
ifneq (,$(filter lwip_dhcp,$(USEMODULE)))
ifneq (,$(filter lwip_ipv4,$(USEMODULE)))
ifeq (,$(filter netdev_new_api,$(USEMODULE)))
USEMODULE += netdev_eth
USEMODULE += netdev_new_api
endif
endif
endif
ifneq (,$(filter netif,$(USEMODULE)))
USEMODULE += fmt
endif