Skip to content

Commit 1dd156b

Browse files
[SL-UP] Modifying the lwip opts for the lwip (#582)
Co-authored-by: Mathieu Kardous <[email protected]>
1 parent 7eba0e2 commit 1dd156b

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

src/lwip/silabs/lwipopts-rs911x.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@
123123
#define LWIP_ETHERNET (LWIP_IPV6) // Required for IPV6 only mode
124124
#define LWIP_IPV6_MLD (LWIP_IPV6)
125125
#define LWIP_ICMP6 (LWIP_IPV6)
126-
#define LWIP_IPV6_REASS (LWIP_IPV6)
127126
#define LWIP_IPV6_FRAG (LWIP_IPV6)
128-
#define LWIP_IPV6_DHCP6 0
129127
#define LWIP_IPV6_AUTOCONFIG (LWIP_IPV6)
130-
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 1
131128
#define LWIP_IPV6_ROUTER_SUPPORT (LWIP_IPV6)
129+
#define LWIP_IPV6_REASS 0
130+
#define LWIP_IPV6_DHCP6 0
131+
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 1
132132
#define LWIP_ND6_LISTEN_RA (LWIP_IPV6_ND)
133133
#define LWIP_ND6_NUM_NEIGHBORS (10)
134134
#define LWIP_ND6_NUM_DESTINATIONS (10)
@@ -173,6 +173,7 @@
173173
#define DEFAULT_TCP_RECVMBOX_SIZE 6
174174

175175
#if SL_ICD_ENABLED
176+
#define SL_LWIP_ECO_TIMERS 1
176177
#define SL_LWIP_MLD6_TIMERS_ONDEMAND 1
177178
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
178179

src/lwip/silabs/lwipopts-wf200.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@
125125
#define LWIP_ETHERNET (LWIP_IPV6) // Required for IPV6 only mode
126126
#define LWIP_IPV6_MLD (LWIP_IPV6)
127127
#define LWIP_ICMP6 (LWIP_IPV6)
128-
#define LWIP_IPV6_REASS (LWIP_IPV6)
129128
#define LWIP_IPV6_FRAG (LWIP_IPV6)
130-
#define LWIP_IPV6_DHCP6 0
131129
#define LWIP_IPV6_AUTOCONFIG (LWIP_IPV6)
132-
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 1
133130
#define LWIP_IPV6_ROUTER_SUPPORT (LWIP_IPV6)
131+
#define LWIP_IPV6_REASS 0
132+
#define LWIP_IPV6_DHCP6 0
133+
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 1
134134
#define LWIP_ND6_LISTEN_RA (LWIP_IPV6_ND)
135135
#define LWIP_ND6_NUM_NEIGHBORS (10)
136136
#define LWIP_ND6_NUM_DESTINATIONS (10)
@@ -175,6 +175,7 @@
175175
#define DEFAULT_TCP_RECVMBOX_SIZE 6
176176

177177
#if SL_ICD_ENABLED
178+
#define SL_LWIP_ECO_TIMERS 1
178179
#define SL_LWIP_MLD6_TIMERS_ONDEMAND 1
179180
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
180181

third_party/silabs/lwip.gni

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,21 @@ import("//build_overrides/efr32_sdk.gni")
1515
import("//build_overrides/lwip.gni")
1616
import("${silabs_sdk_build_root}/efr32_sdk.gni")
1717

18+
declare_args() {
19+
# Use LwIP from SiSDK if true, otherwise use the modified version from Matter Support.
20+
sl_use_sisdk_lwip = true
21+
}
22+
1823
# Defines a lwIP build target.
1924
#
2025
# lwIP depends on external header files to compile. This template defines
2126
# a combined build of the lwIP sources plus target configuration.
2227
template("lwip_target") {
23-
_lwip_root = "${efr32_sdk_root}/util/third_party/lwip/lwip"
28+
if (sl_use_sisdk_lwip) {
29+
_lwip_root = "${efr32_sdk_root}/util/third_party/lwip/lwip"
30+
} else {
31+
_lwip_root = "${matter_support_root}/sdk-copies/lwip"
32+
}
2433

2534
lwip_target_name = target_name
2635

third_party/silabs/matter_support

Submodule matter_support updated 245 files

0 commit comments

Comments
 (0)