From ae20e075dbe30f0e2ea7e9f8324d4fbc660191a8 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Wed, 9 Apr 2025 20:55:56 +0200 Subject: [PATCH] pkg/lwip: add missing dependencies --- pkg/lwip/Makefile.dep | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkg/lwip/Makefile.dep b/pkg/lwip/Makefile.dep index 0574301ead..bb95efdb5c 100644 --- a/pkg/lwip/Makefile.dep +++ b/pkg/lwip/Makefile.dep @@ -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