@@ -99,6 +99,7 @@ class Efr32Board(Enum):
99
99
BRD4304A = 8
100
100
BRD4187C = 9
101
101
BRD4186C = 10
102
+ BRD4338A = 11
102
103
103
104
def GnArgName (self ):
104
105
if self == Efr32Board .BRD4161A :
@@ -121,6 +122,8 @@ def GnArgName(self):
121
122
return 'BRD4186C'
122
123
elif self == Efr32Board .BRD4187C :
123
124
return 'BRD4187C'
125
+ elif self == Efr32Board .BRD4338A :
126
+ return 'BRD4338A'
124
127
else :
125
128
raise Exception ('Unknown board #: %r' % self )
126
129
@@ -149,7 +152,9 @@ def __init__(self,
149
152
enable_additional_data_advertising : bool = False ,
150
153
enable_ot_lib : bool = False ,
151
154
enable_ot_coap_lib : bool = False ,
152
- no_version : bool = False
155
+ no_version : bool = False ,
156
+ enable_917_soc : bool = False ,
157
+ use_rps_extension : bool = True
153
158
):
154
159
super (Efr32Builder , self ).__init__ (
155
160
root = app .BuildRoot (root ),
@@ -200,6 +205,8 @@ def __init__(self,
200
205
self .extra_gn_options .append ('use_rs911x=true' )
201
206
elif enable_wf200 :
202
207
self .extra_gn_options .append ('use_wf200=true' )
208
+ elif enable_917_soc :
209
+ self .extra_gn_options .append ('chip_device_platform=\" SiWx917\" ' )
203
210
else :
204
211
raise Exception ('Wifi usage: ...-wifi-[rs911x|wf200]-...' )
205
212
@@ -224,6 +231,9 @@ def __init__(self,
224
231
branchName = subprocess .check_output (['git' , 'rev-parse' , '--abbrev-ref' , 'HEAD' ]).decode ('ascii' ).strip ()
225
232
self .extra_gn_options .append (
226
233
'sl_matter_version_str="v1.2-%s-%s"' % (branchName , shortCommitSha ))
234
+ if enable_917_soc :
235
+ if use_rps_extension is False :
236
+ self .extra_gn_options .append ('use_rps_extension=false' )
227
237
228
238
if "GSDK_ROOT" in os .environ :
229
239
# EFR32 SDK is very large. If the SDK path is already known (the
@@ -238,6 +248,10 @@ def __init__(self,
238
248
wiseconnect_sdk_path = shlex .quote (os .environ ['WISECONNECT_SDK_ROOT' ])
239
249
self .extra_gn_options .append (f"wiseconnect_sdk_root=\" { wiseconnect_sdk_path } \" " )
240
250
251
+ if "WIFI_SDK_ROOT" in os .environ and enable_917_soc :
252
+ wifi_sdk_path = shlex .quote (os .environ ['WIFI_SDK_ROOT' ])
253
+ self .extra_gn_options .append (f"wifi_sdk_root=\" { wifi_sdk_path } \" " )
254
+
241
255
def GnBuildArgs (self ):
242
256
return self .extra_gn_options
243
257
0 commit comments