pkg/lwip: fix dependencies when LWIP IPv4 is used#21342
pkg/lwip: fix dependencies when LWIP IPv4 is used#21342benpicco merged 2 commits intoRIOT-OS:masterfrom
Conversation
|
@mguetschow thanks for |
4124fb6 to
6917a73
Compare
3687efb to
ba73128
Compare
52dd450 to
5054988
Compare
|
I checked and with this PR all examples which allows LWIP IPv4 ( Can we move this PR little forward? |
|
@mguetschow, @crasbe, @benpicco, @miri64, @maribu ... sorry for broadcast ... ... but, can we move this PR little forward? |
|
I haven't used LWIP yet, so my review can't really assess the reason or logic behind the changes. |
7b64bb7 to
c287309
Compare
|
I didn't check this with details, but after rebasing to most recent version I have some new errors and this PR name is suspicious ;)
PR #21467 fix this issue! |
03ab9c9 to
156334a
Compare
156334a to
ae20e07
Compare
benpicco
left a comment
There was a problem hiding this comment.
Thank you for the patch!
|
Dear All! Thanks for support during this PR and your valuable comments. |
| 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 |
There was a problem hiding this comment.
@krzysztof-cabaj could you explain the reasoning behind this logic regarding netdev_new_api again? I've tried to add a second network module (slipdev) to gcoap_dtls and then get the compile errors again - presumably because slipdev already pulls in netdev_new_api, but not netdev_eth:
diff --git a/examples/networking/coap/gcoap_dtls/Makefile b/examples/networking/coap/gcoap_dtls/Makefile
index 092e1c6a1d..59ea4827eb 100644
--- a/examples/networking/coap/gcoap_dtls/Makefile
+++ b/examples/networking/coap/gcoap_dtls/Makefile
@@ -54,6 +54,9 @@ USEMODULE += shell_cmds_default
USEMODULE += ps
USEMODULE += uri_parser
+USEMODULE += slipdev_stdio
+USEMODULE += slipdev_l2addr
+
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:There was a problem hiding this comment.
I have to look for details, but when I remember, there is a problem with compiluation of LWIP for IPv4 and this solution fix this problem without changing/adding patches for LWIP. I looked at this issue (adding slip) around the weekend.
There was a problem hiding this comment.
Hmmm ... I try to reproduce your error.
I add to the gcoap_dtls example mentioned modules slipdev_stdio and slipdev_l2addr.
Next I try to compile this example for native and 'nucleo-f439zi` (contains Ethernet interface) - and everything compile without errors. Could you provide more details when you observer errors ... which BOARD you use?
There was a problem hiding this comment.
Ah sorry, forgot to mention that: This happens for LWIP_IPV4=1 make -C examples/networking/coap/gcoap_dtls BOARD=nrf52840dk
Contribution description
While working on PR #21333, when I by mistake enable LWIP IPv4, Murdock detected some compilation errors
associated with dependencies (see #21333 (comment), older versions of this automatic reply).
Similar error was observed and fixed for esp board in PR #21316.
This PR fixes this problem and code with
LWIP_IPV4=1passes all Murdock tests.Testing procedure
Enable LWIP IPv4 in
Makefileby settingLWIP_IPV4 ?= 1.All Murdock compilation tests should pass.
Unfortunately, in current master some compilation tests fails.
What is interesting in my environment everything compile without problems (for example, for boards with cpu
qn908x,samd5xornrf52), so for further work and tests PR labelCI: ready for buildis needed.Issues/PRs references
PR #21316
PR #21333