File tree 4 files changed +92
-32
lines changed
4 files changed +92
-32
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ assert(!(use_wf200 && chip_enable_openthread))
80
80
if (chip_enable_wifi ) {
81
81
assert (use_rs911x || use_wf200 )
82
82
enable_openthread_cli = false
83
+ import (" ${ chip_root } /src/platform/EFR32/wifi_args.gni" )
83
84
}
84
85
85
86
# ThunderBoards, Explorer Kit and MGM240L do not support LCD (No LCD)
@@ -98,14 +99,28 @@ if (chip_enable_wifi) {
98
99
}
99
100
wifi_sdk_dir = " ${ chip_root } /src/platform/EFR32/wifi"
100
101
efr32_lwip_defs = [ " LWIP_NETIF_API=1" ]
101
- efr32_lwip_defs += [
102
- " LWIP_IPV4=1" ,
103
- " LWIP_ARP=1" ,
104
- " LWIP_ICMP=1" ,
105
- " LWIP_DHCP=1" ,
106
- " LWIP_IPV6_ND=1" ,
107
- " LWIP_IGMP=1" ,
108
- ]
102
+
103
+ if (lwip_ipv4 ) {
104
+ efr32_lwip_defs += [
105
+ " LWIP_IPV4=1" ,
106
+ # adds following options to provide
107
+ # them to .cpp source files
108
+ # flags ported from lwipopts file
109
+ # TODO: move lwipopts to one location
110
+ " LWIP_ARP=1" ,
111
+ " LWIP_ICMP=1" ,
112
+ " LWIP_IGMP=1" ,
113
+ " LWIP_DHCP=1" ,
114
+ " LWIP_DNS=0" ,
115
+ ]
116
+ } else {
117
+ efr32_lwip_defs += [ " LWIP_IPV4=0" ]
118
+ }
119
+ if (lwip_ipv6 ) {
120
+ efr32_lwip_defs += [ " LWIP_IPV6=1" ]
121
+ } else {
122
+ efr32_lwip_defs += [ " LWIP_IPV6=0" ]
123
+ }
109
124
110
125
if (use_rs911x ) {
111
126
wiseconnect_sdk_root =
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ assert(!(use_wf200 && chip_enable_openthread))
79
79
if (chip_enable_wifi ) {
80
80
assert (use_rs911x || use_wf200 )
81
81
enable_openthread_cli = false
82
+ import (" ${ chip_root } /src/platform/EFR32/wifi_args.gni" )
82
83
}
83
84
84
85
# ThunderBoards, Explorer Kit and MGM240L do not support LCD (No LCD)
@@ -97,14 +98,28 @@ if (chip_enable_wifi) {
97
98
}
98
99
wifi_sdk_dir = " ${ chip_root } /src/platform/EFR32/wifi"
99
100
efr32_lwip_defs = [ " LWIP_NETIF_API=1" ]
100
- efr32_lwip_defs += [
101
- " LWIP_IPV4=1" ,
102
- " LWIP_ARP=1" ,
103
- " LWIP_ICMP=1" ,
104
- " LWIP_DHCP=1" ,
105
- " LWIP_IPV6_ND=1" ,
106
- " LWIP_IGMP=1" ,
107
- ]
101
+
102
+ if (lwip_ipv4 ) {
103
+ efr32_lwip_defs += [
104
+ " LWIP_IPV4=1" ,
105
+ # adds following options to provide
106
+ # them to .cpp source files
107
+ # flags ported from lwipopts file
108
+ # TODO: move lwipopts to one location
109
+ " LWIP_ARP=1" ,
110
+ " LWIP_ICMP=1" ,
111
+ " LWIP_IGMP=1" ,
112
+ " LWIP_DHCP=1" ,
113
+ " LWIP_DNS=0" ,
114
+ ]
115
+ } else {
116
+ efr32_lwip_defs += [ " LWIP_IPV4=0" ]
117
+ }
118
+ if (lwip_ipv6 ) {
119
+ efr32_lwip_defs += [ " LWIP_IPV6=1" ]
120
+ } else {
121
+ efr32_lwip_defs += [ " LWIP_IPV6=0" ]
122
+ }
108
123
109
124
if (use_rs911x ) {
110
125
wiseconnect_sdk_root =
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ assert(!(use_wf200 && chip_enable_openthread))
82
82
if (chip_enable_wifi ) {
83
83
assert (use_rs911x || use_wf200 )
84
84
enable_openthread_cli = false
85
+ import (" ${ chip_root } /src/platform/EFR32/wifi_args.gni" )
85
86
}
86
87
87
88
# ThunderBoards, Explorer Kit and MGM240L do not support LCD (No LCD)
@@ -107,14 +108,28 @@ if (chip_enable_wifi) {
107
108
}
108
109
wifi_sdk_dir = " ${ chip_root } /src/platform/EFR32/wifi"
109
110
efr32_lwip_defs = [ " LWIP_NETIF_API=1" ]
110
- efr32_lwip_defs += [
111
- " LWIP_IPV4=1" ,
112
- " LWIP_ARP=1" ,
113
- " LWIP_ICMP=1" ,
114
- " LWIP_DHCP=1" ,
115
- " LWIP_IPV6_ND=1" ,
116
- " LWIP_IGMP=1" ,
117
- ]
111
+
112
+ if (lwip_ipv4 ) {
113
+ efr32_lwip_defs += [
114
+ " LWIP_IPV4=1" ,
115
+ # adds following options to provide
116
+ # them to .cpp source files
117
+ # flags ported from lwipopts file
118
+ # TODO: move lwipopts to one location
119
+ " LWIP_ARP=1" ,
120
+ " LWIP_ICMP=1" ,
121
+ " LWIP_IGMP=1" ,
122
+ " LWIP_DHCP=1" ,
123
+ " LWIP_DNS=0" ,
124
+ ]
125
+ } else {
126
+ efr32_lwip_defs += [ " LWIP_IPV4=0" ]
127
+ }
128
+ if (lwip_ipv6 ) {
129
+ efr32_lwip_defs += [ " LWIP_IPV6=1" ]
130
+ } else {
131
+ efr32_lwip_defs += [ " LWIP_IPV6=0" ]
132
+ }
118
133
119
134
if (use_rs911x ) {
120
135
wiseconnect_sdk_root =
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ assert(!(use_wf200 && chip_enable_openthread))
79
79
if (chip_enable_wifi ) {
80
80
assert (use_rs911x || use_wf200 )
81
81
enable_openthread_cli = false
82
+ import (" ${ chip_root } /src/platform/EFR32/wifi_args.gni" )
82
83
}
83
84
84
85
# ThunderBoards, Explorer Kit and MGM240L do not support LCD (No LCD)
@@ -97,14 +98,28 @@ if (chip_enable_wifi) {
97
98
}
98
99
wifi_sdk_dir = " ${ chip_root } /src/platform/EFR32/wifi"
99
100
efr32_lwip_defs = [ " LWIP_NETIF_API=1" ]
100
- efr32_lwip_defs += [
101
- " LWIP_IPV4=1" ,
102
- " LWIP_ARP=1" ,
103
- " LWIP_ICMP=1" ,
104
- " LWIP_DHCP=1" ,
105
- " LWIP_IPV6_ND=1" ,
106
- " LWIP_IGMP=1" ,
107
- ]
101
+
102
+ if (lwip_ipv4 ) {
103
+ efr32_lwip_defs += [
104
+ " LWIP_IPV4=1" ,
105
+ # adds following options to provide
106
+ # them to .cpp source files
107
+ # flags ported from lwipopts file
108
+ # TODO: move lwipopts to one location
109
+ " LWIP_ARP=1" ,
110
+ " LWIP_ICMP=1" ,
111
+ " LWIP_IGMP=1" ,
112
+ " LWIP_DHCP=1" ,
113
+ " LWIP_DNS=0" ,
114
+ ]
115
+ } else {
116
+ efr32_lwip_defs += [ " LWIP_IPV4=0" ]
117
+ }
118
+ if (lwip_ipv6 ) {
119
+ efr32_lwip_defs += [ " LWIP_IPV6=1" ]
120
+ } else {
121
+ efr32_lwip_defs += [ " LWIP_IPV6=0" ]
122
+ }
108
123
109
124
if (use_rs911x ) {
110
125
wiseconnect_sdk_root =
You can’t perform that action at this time.
0 commit comments