-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
extmod/lwip-include: Factor common lwIP config into lwipopts_common.h. #16647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extmod/lwip-include: Factor common lwIP config into lwipopts_common.h. #16647
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #16647 +/- ##
=======================================
Coverage 98.58% 98.58%
=======================================
Files 167 167
Lines 21590 21590
=======================================
Hits 21285 21285
Misses 305 305 ☔ View full report in Codecov by Sentry. |
Code size report:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay for standardisation! Change LGTM.
This lwIP configuration file has options that are common to all ports, and the ports are updated to use this file. This change is a no-op, the lwIP configuration remains the same for the four ports using this common file. This reduces code duplication, keeps the ports in sync, and makes it easier to update the configuration for all ports at once. Signed-off-by: Damien George <damien@micropython.org>
1071061
to
abb13b1
Compare
Is |
Probably not needed anymore. That was there originally as a full lwIP configuration for ports if they wanted to use it, but none ever did, the ports all needed their own custom configuration (there are also |
Summary
This lwIP configuration file has options that are common to all ports, and the ports are updated to use this file. This change is a no-op, the lwIP configuration remains the same for the four ports using this common file.
This reduces code duplication, keeps the ports in sync, and makes it easier to update the configuration for all ports at once.
Testing
For each port built a board with lwIP enabled:
RPI_PICO_W
,PYBD_SF6
,TEENSY41
,ARDUINO_PORTENTA_C33
. Built both before and after the commit in this PR. Then compared the binary firmware. The only things that changed in the binary were (1) the git commit hash in the version string; (2) the ordering of some of the pins in themachine.Pin.board
dict (for some reason the order of these are not deterministic). So I could conclude that the lwIP config changes are a no-op.Edit: also built an stm32 board with PPP enabled and it builds.