Skip to content

Commit 5677529

Browse files
authored
Board-specific LWIP options for silabs boards (rs911, wf200, thread) were never used (project-chip#31929)
* Add silabs-specific lwip options to GN * Make the lwipopts conditional * Revert "Make the lwipopts conditional" This reverts commit ff91e81. * Add another dependency for lwip
1 parent 691c893 commit 5677529

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/lwip/BUILD.gn

+6
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,12 @@ if (current_os == "zephyr" || current_os == "mbed") {
225225
[ "${chip_root}/third_party/lwip/repo/lwip/src/apps/mdns/mdns.c" ]
226226
} else if (lwip_platform == "silabs") {
227227
public_deps += [ "${efr32_sdk_build_root}:efr32_sdk" ]
228+
229+
sources += [
230+
"${lwip_platform}/lwipopts-rs911x.h",
231+
"${lwip_platform}/lwipopts-thread.h",
232+
"${lwip_platform}/lwipopts-wf200.h",
233+
]
228234
} else if (lwip_platform == "standalone") {
229235
public_deps += [ "${chip_root}/src/lib/support" ]
230236
} else if (lwip_platform == "k32w0") {

third_party/silabs/silabs_lwip/BUILD.gn

+6-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ lwip_target("silabs_lwip") {
3333
"${chip_root}/src/lwip/silabs/lwippools.h",
3434
]
3535

36-
sources = [ "${chip_root}/src/lwip/freertos/sys_arch.c" ]
36+
sources = [
37+
"${chip_root}/src/lwip/freertos/sys_arch.c",
38+
"${chip_root}/src/lwip/silabs/lwipopts-rs911x.h",
39+
"${chip_root}/src/lwip/silabs/lwipopts-thread.h",
40+
"${chip_root}/src/lwip/silabs/lwipopts-wf200.h",
41+
]
3742

3843
public_deps = [
3944
"${chip_root}/src/lwip:lwip_buildconfig",

0 commit comments

Comments
 (0)