Skip to content

Commit ae20e07

Browse files
pkg/lwip: add missing dependencies
1 parent 0a511dd commit ae20e07

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pkg/lwip/Makefile.dep

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ endif
3434

3535
ifneq (,$(filter lwip_ipv6,$(USEMODULE)))
3636
USEMODULE += ipv6
37+
USEMODULE += ipv6_addr
3738
USEMODULE += random
3839
endif
3940

@@ -108,6 +109,18 @@ ifneq (,$(filter lwip_ethernet lwip_sixlowpan,$(USEMODULE)))
108109
USEMODULE += lwip_netdev
109110
endif
110111

112+
# Addition of missing modules for boards that do not have physical network
113+
# module - a dirty hack when lwip_dhcp is used for IPv4 (use of lwip_ipv4 module)
114+
# on such boards (lack of netdev_new_api module)
115+
ifneq (,$(filter lwip_dhcp,$(USEMODULE)))
116+
ifneq (,$(filter lwip_ipv4,$(USEMODULE)))
117+
ifeq (,$(filter netdev_new_api,$(USEMODULE)))
118+
USEMODULE += netdev_eth
119+
USEMODULE += netdev_new_api
120+
endif
121+
endif
122+
endif
123+
111124
ifneq (,$(filter netif,$(USEMODULE)))
112125
USEMODULE += fmt
113126
endif

0 commit comments

Comments
 (0)