Skip to content

Commit d73dbbf

Browse files
committed
Resolved the build failure for m5-stack ipv6 only test
1 parent 4048e57 commit d73dbbf

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

examples/chef/chef.py

+4
Original file line numberDiff line numberDiff line change
@@ -706,9 +706,13 @@ def main() -> int:
706706
if sys.platform == "darwin":
707707
shell.run_cmd(
708708
"sed -i '' 's/#\\ CONFIG_DISABLE_IPV4\\ is\\ not\\ set/CONFIG_DISABLE_IPV4=y/g' sdkconfig ")
709+
shell.run_cmd(
710+
"sed -i '' 's/CONFIG_LWIP_IPV4=y/#\\ CONFIG_LWIP_IPV4\\ is\\ not\\ set/g' sdkconfig ")
709711
else:
710712
shell.run_cmd(
711713
"sed -i 's/#\\ CONFIG_DISABLE_IPV4\\ is\\ not\\ set/CONFIG_DISABLE_IPV4=y/g' sdkconfig ")
714+
shell.run_cmd(
715+
"sed -i 's/CONFIG_LWIP_IPV4=y/#\\ CONFIG_LWIP_IPV4\\ is\\ not\\ set/g' sdkconfig ")
712716

713717
shell.run_cmd("idf.py build")
714718
shell.run_cmd("idf.py build flashing_script")

examples/platform/esp32/Rpc.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,15 @@ class Esp32WiFi final : public WiFi
197197
return pw::OkStatus();
198198
}
199199

200+
#if CHIP_DEVICE_CONFIG_ENABLE_IPV4
200201
pw::Status GetIP4Address(const pw_protobuf_Empty & request, chip_rpc_IP4Address & response) override
201202
{
202203
esp_netif_ip_info_t ip_info;
203204
PW_TRY(EspToPwStatus(esp_netif_get_ip_info(esp_netif_get_handle_from_ifkey("WIFI_STA_DEF"), &ip_info)));
204205
snprintf(response.address, sizeof(response.address), IPSTR, IP2STR(&ip_info.ip));
205206
return pw::OkStatus();
206207
}
208+
#endif
207209

208210
pw::Status GetIP6Address(const pw_protobuf_Empty & request, chip_rpc_IP6Address & response) override
209211
{

scripts/build/builders/esp32.py

+2
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ def generate(self):
197197
if not self.enable_ipv4:
198198
self._Execute(
199199
['bash', '-c', 'echo -e "\\nCONFIG_DISABLE_IPV4=y\\n" >>%s' % shlex.quote(defaults_out)])
200+
self._Execute(
201+
['bash', '-c', 'echo -e "\\nCONFIG_LWIP_IPV4=n\\n" >>%s' % shlex.quote(defaults_out)])
200202

201203
if self.enable_insights_trace:
202204
insights_flag = 'y'

0 commit comments

Comments
 (0)