File tree 5 files changed +23
-2
lines changed
config/esp32/components/chip
5 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,11 @@ chip_gn_arg_append("chip_config_network_layer_ble" "false")
118
118
endif ()
119
119
120
120
if (CONFIG_DISABLE_IPV4)
121
- chip_gn_arg_append("chip_inet_config_enable_ipv4" "false" )
121
+ if (NOT CONFIG_LWIP_IPV4)
122
+ chip_gn_arg_append("chip_inet_config_enable_ipv4" "false" )
123
+ else ()
124
+ message (FATAL_ERROR "Disable both IPV4 options i.e CONFIG_DISABLE_IPV4=y and CONFIG_LWIP_IPV4=n" )
125
+ endif ()
122
126
endif ()
123
127
124
128
if (CONFIG_DISABLE_READ_CLIENT)
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ example on ESP32 series of SoCs
19
19
- [ Generating and Using ESP Secure Cert Partition] ( secure_cert_partition.md )
20
20
- [ BLE Settings] ( ble_settings.md )
21
21
- [ Providers] ( providers.md )
22
+ - [ Configuration Options] ( config_options.md )
Original file line number Diff line number Diff line change
1
+ # Configuration options
2
+
3
+ This file lists down few config options to be enabled in through menuconfig for
4
+ specific scenarios.
5
+
6
+ ### Building with IPV4 Disabled
7
+
8
+ Enable the options below through ` idf.py menuconfig ` and build the app.
9
+
10
+ ```
11
+ CONFIG_DISABLE_IPV4=y
12
+ CONFIG_LWIP_IPV4=n
13
+ ```
Original file line number Diff line number Diff line change 14
14
15
15
import (" //build_overrides/chip.gni" )
16
16
17
+ import (" ${ chip_root } /src/inet/inet.gni" )
17
18
import (" ${ chip_root } /src/platform/device.gni" )
18
19
19
20
assert (chip_device_platform == " esp32" )
@@ -36,6 +37,7 @@ declare_args() {
36
37
37
38
defines = [
38
39
" CHIP_CONFIG_SOFTWARE_VERSION_NUMBER=${ chip_config_software_version_number } " ,
40
+ " CHIP_DEVICE_CONFIG_ENABLE_IPV4=${ chip_inet_config_enable_ipv4 } " ,
39
41
]
40
42
41
43
static_library (" ESP32" ) {
Original file line number Diff line number Diff line change @@ -999,7 +999,8 @@ void ConnectivityManagerImpl::UpdateInternetConnectivityState(void)
999
999
// If the station interface has been assigned an IPv4 address, and has
1000
1000
// an IPv4 gateway, then presume that the device has IPv4 Internet
1001
1001
// connectivity.
1002
- #if LWIP_IPV4
1002
+
1003
+ #if CHIP_DEVICE_CONFIG_ENABLE_IPV4
1003
1004
if (!ip4_addr_isany_val (*netif_ip4_addr (netif)) && !ip4_addr_isany_val (*netif_ip4_gw (netif)))
1004
1005
{
1005
1006
haveIPv4Conn = true ;
You can’t perform that action at this time.
0 commit comments