Skip to content

Commit 0d94b37

Browse files
Build LWIP at app compile time, no need for multi
We needed about 6 copies of the LWIP/BT library for each CPU when the lwip library was built as part of the SDK libpico. Remove LWIP from the SDK builds and replace it with the actual LWIP source (linked via `#include`) so we can adjust for IPv4/IPv^/32K/16K at runtime. Shrinks download size of a release significantly. Still need separate LWIP-BT library because the CYW43 driver is different when BT is enabled. Update and clean up the libpico CMakefile and common platform_def.txt Link to config includes, don't copy, where possible
1 parent 94272f7 commit 0d94b37

File tree

327 files changed

+1384
-1585
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

327 files changed

+1384
-1585
lines changed

boards.txt

Lines changed: 1056 additions & 1056 deletions
Large diffs are not rendered by default.

cores/rp2040/lwip/README.md

Lines changed: 14 additions & 0 deletions

cores/rp2040/lwip/src/api/api_lib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../../../../../pico-sdk/lib/lwip/src/api/api_lib.c"

cores/rp2040/lwip/src/api/api_msg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../../../../../pico-sdk/lib/lwip/src/api/api_msg.c"

cores/rp2040/lwip/src/api/err.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../../../../../pico-sdk/lib/lwip/src/api/err.c"

cores/rp2040/lwip/src/api/if_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../../../../../pico-sdk/lib/lwip/src/api/if_api.c"

cores/rp2040/lwip/src/api/netbuf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../../../../../pico-sdk/lib/lwip/src/api/netbuf.c"

cores/rp2040/lwip/src/api/netdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../../../../../pico-sdk/lib/lwip/src/api/netdb.c"

cores/rp2040/lwip/src/api/netifapi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../../../../../pico-sdk/lib/lwip/src/api/netifapi.c"

cores/rp2040/lwip/src/api/sockets.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../../../../../pico-sdk/lib/lwip/src/api/sockets.c"

0 commit comments

Comments
 (0)