From 6be2534465f96c09f665bcba42f6511545bc0494 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Tue, 11 Nov 2025 11:07:49 +0100 Subject: [PATCH] pkg/lwip: fix dependencies when LWIP IPv4 and LWIP_DHCP is used --- pkg/lwip/Makefile.dep | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkg/lwip/Makefile.dep b/pkg/lwip/Makefile.dep index bb95efdb5c..58de142eae 100644 --- a/pkg/lwip/Makefile.dep +++ b/pkg/lwip/Makefile.dep @@ -111,13 +111,17 @@ 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) +# on such boards (lack of netdev_eth module) +# +# This is dirty-hack" to solve compilation problem +# TODO: +# Find the root cause of the problem. PR #17174 and PR #17162 could be a good +# starting point. ifneq (,$(filter lwip_dhcp,$(USEMODULE))) ifneq (,$(filter lwip_ipv4,$(USEMODULE))) - ifeq (,$(filter netdev_new_api,$(USEMODULE))) + ifeq (,$(filter netdev_eth,$(USEMODULE))) USEMODULE += netdev_eth - USEMODULE += netdev_new_api - endif + endif endif endif