Skip to content

Commit e8146d8

Browse files
restyled-commitsSarthak-Shaha
authored andcommitted
minor fix
1 parent ede7ee9 commit e8146d8

File tree

3 files changed

+122
-122
lines changed

3 files changed

+122
-122
lines changed

scripts/examples/gn_silabs_example.sh

+117-117
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if [ "$#" == "0" ]; then
8080
BRD4350A
8181
BRD4351A
8282
BRD2709A
83-
83+
8484
8585
8686
<Build options> - optional noteworthy build options for EFR32
@@ -186,123 +186,123 @@ else
186186
shift
187187
while [ $# -gt 0 ]; do
188188
case $1 in
189-
--clean)
190-
DIR_CLEAN=true
191-
shift
192-
;;
193-
--wifi)
194-
if [ -z "$2" ]; then
195-
echo "--wifi requires rs9116 or SiWx917 or wf200"
196-
exit 1
197-
fi
198-
199-
if [ "$2" = "rs9116" ]; then
200-
optArgs+="use_rs9116=true "
201-
elif [ "$2" = "SiWx917" ]; then
202-
optArgs+="use_SiWx917=true "
203-
elif [ "$2" = "wf200" ]; then
204-
optArgs+="use_wf200=true "
205-
else
206-
echo "Wifi usage: --wifi rs9116|SiWx917|wf200"
207-
exit 1
208-
fi
209-
210-
NCP_DIR_SUFFIX="/"$2
211-
USE_WIFI=true
212-
optArgs+="chip_device_platform =\"efr32\" chip_crypto_keystore=\"psa\" "
213-
shift
214-
shift
215-
;;
216-
--icd)
217-
optArgs+="chip_enable_icd_server=true chip_openthread_ftd=false sl_enable_test_event_trigger=true "
218-
shift
219-
;;
220-
--low-power)
221-
optArgs+="chip_build_libshell=false enable_openthread_cli=false show_qr_code=false disable_lcd=true "
222-
shift
223-
;;
224-
--chip_enable_wifi_ipv4)
225-
optArgs="chip_enable_wifi_ipv4=true chip_inet_config_enable_ipv4=true "
226-
shift
227-
;;
228-
--additional_data_advertising)
229-
optArgs+="chip_enable_additional_data_advertising=true chip_enable_rotating_device_id=true "
230-
shift
231-
;;
232-
--use_ot_lib)
233-
optArgs+="use_silabs_thread_lib=true chip_openthread_target=$SILABS_THREAD_TARGET openthread_external_platform=\"""\" "
234-
shift
235-
;;
236-
--use_ot_coap_lib)
237-
optArgs+="use_silabs_thread_lib=true chip_openthread_target=$SILABS_THREAD_TARGET openthread_external_platform=\"""\" use_thread_coap_lib=true "
238-
shift
239-
;;
240-
--use_chip_lwip_lib)
241-
optArgs+="lwip_root=\""//third_party/connectedhomeip/third_party/lwip"\" "
242-
shift
243-
;;
244-
# Option not to be used until ot-efr32 github is updated
245-
# --use_ot_github_sources)
246-
# optArgs+="openthread_root=\"//third_party/connectedhomeip/third_party/openthread/ot-efr32/openthread\" openthread_efr32_root=\"//third_party/connectedhomeip/third_party/openthread/ot-efr32/src/src\""
247-
# shift
248-
# ;;
249-
--release)
250-
optArgs+="is_debug=false disable_lcd=true chip_build_libshell=false enable_openthread_cli=false use_external_flash=false chip_logging=false silabs_log_enabled=false "
251-
shift
252-
;;
253-
--bootloader)
254-
USE_BOOTLOADER=true
255-
shift
256-
;;
257-
--docker)
258-
optArgs+="efr32_sdk_root=\"$GSDK_ROOT\" "
259-
optArgs+="wiseconnect_sdk_root=\"$WISECONNECT_SDK_ROOT\" "
260-
optArgs+="wifi_sdk_root=\"$WIFI_SDK_ROOT\" "
261-
USE_DOCKER=true
262-
shift
263-
;;
264-
--uart_log)
265-
optArgs+="sl_uart_log_output=true "
266-
shift
267-
;;
268-
269-
--slc_generate)
270-
optArgs+="slc_generate=true "
271-
USE_SLC=true
272-
shift
273-
;;
274-
--use_pw_rpc)
275-
optArgs+="import(\"//with_pw_rpc.gni\") "
276-
shift
277-
;;
278-
--slc_reuse_files)
279-
optArgs+="slc_reuse_files=true "
280-
shift
281-
;;
282-
--gn_path)
283-
if [ -z "$2" ]; then
284-
echo "--gn_path requires a path to GN"
285-
exit 1
286-
else
287-
GN_PATH="$2"
288-
fi
289-
shift
290-
shift
291-
;;
292-
*"sl_matter_version_str="*)
293-
optArgs+="$1 "
294-
USE_GIT_SHA_FOR_VERSION=false
295-
shift
296-
;;
297-
*)
298-
if [ "$1" =~ *"use_rs9116=true"* ] || [ "$1" =~ *"use_SiWx917=true"* ] || [ "$1" =~ *"use_wf200=true"* ]; then
189+
--clean)
190+
DIR_CLEAN=true
191+
shift
192+
;;
193+
--wifi)
194+
if [ -z "$2" ]; then
195+
echo "--wifi requires rs9116 or SiWx917 or wf200"
196+
exit 1
197+
fi
198+
199+
if [ "$2" = "rs9116" ]; then
200+
optArgs+="use_rs9116=true "
201+
elif [ "$2" = "SiWx917" ]; then
202+
optArgs+="use_SiWx917=true "
203+
elif [ "$2" = "wf200" ]; then
204+
optArgs+="use_wf200=true "
205+
else
206+
echo "Wifi usage: --wifi rs9116|SiWx917|wf200"
207+
exit 1
208+
fi
209+
210+
NCP_DIR_SUFFIX="/"$2
299211
USE_WIFI=true
300-
# NCP Mode so base MCU is an EFR32
301-
optArgs+="chip_device_platform =\"efr32\" "
302-
fi
303-
optArgs+=$1" "
304-
shift
305-
;;
212+
optArgs+="chip_device_platform =\"efr32\" chip_crypto_keystore=\"psa\" "
213+
shift
214+
shift
215+
;;
216+
--icd)
217+
optArgs+="chip_enable_icd_server=true chip_openthread_ftd=false sl_enable_test_event_trigger=true "
218+
shift
219+
;;
220+
--low-power)
221+
optArgs+="chip_build_libshell=false enable_openthread_cli=false show_qr_code=false disable_lcd=true "
222+
shift
223+
;;
224+
--chip_enable_wifi_ipv4)
225+
optArgs="chip_enable_wifi_ipv4=true chip_inet_config_enable_ipv4=true "
226+
shift
227+
;;
228+
--additional_data_advertising)
229+
optArgs+="chip_enable_additional_data_advertising=true chip_enable_rotating_device_id=true "
230+
shift
231+
;;
232+
--use_ot_lib)
233+
optArgs+="use_silabs_thread_lib=true chip_openthread_target=$SILABS_THREAD_TARGET openthread_external_platform=\"""\" "
234+
shift
235+
;;
236+
--use_ot_coap_lib)
237+
optArgs+="use_silabs_thread_lib=true chip_openthread_target=$SILABS_THREAD_TARGET openthread_external_platform=\"""\" use_thread_coap_lib=true "
238+
shift
239+
;;
240+
--use_chip_lwip_lib)
241+
optArgs+="lwip_root=\""//third_party/connectedhomeip/third_party/lwip"\" "
242+
shift
243+
;;
244+
# Option not to be used until ot-efr32 github is updated
245+
# --use_ot_github_sources)
246+
# optArgs+="openthread_root=\"//third_party/connectedhomeip/third_party/openthread/ot-efr32/openthread\" openthread_efr32_root=\"//third_party/connectedhomeip/third_party/openthread/ot-efr32/src/src\""
247+
# shift
248+
# ;;
249+
--release)
250+
optArgs+="is_debug=false disable_lcd=true chip_build_libshell=false enable_openthread_cli=false use_external_flash=false chip_logging=false silabs_log_enabled=false "
251+
shift
252+
;;
253+
--bootloader)
254+
USE_BOOTLOADER=true
255+
shift
256+
;;
257+
--docker)
258+
optArgs+="efr32_sdk_root=\"$GSDK_ROOT\" "
259+
optArgs+="wiseconnect_sdk_root=\"$WISECONNECT_SDK_ROOT\" "
260+
optArgs+="wifi_sdk_root=\"$WIFI_SDK_ROOT\" "
261+
USE_DOCKER=true
262+
shift
263+
;;
264+
--uart_log)
265+
optArgs+="sl_uart_log_output=true "
266+
shift
267+
;;
268+
269+
--slc_generate)
270+
optArgs+="slc_generate=true "
271+
USE_SLC=true
272+
shift
273+
;;
274+
--use_pw_rpc)
275+
optArgs+="import(\"//with_pw_rpc.gni\") "
276+
shift
277+
;;
278+
--slc_reuse_files)
279+
optArgs+="slc_reuse_files=true "
280+
shift
281+
;;
282+
--gn_path)
283+
if [ -z "$2" ]; then
284+
echo "--gn_path requires a path to GN"
285+
exit 1
286+
else
287+
GN_PATH="$2"
288+
fi
289+
shift
290+
shift
291+
;;
292+
*"sl_matter_version_str="*)
293+
optArgs+="$1 "
294+
USE_GIT_SHA_FOR_VERSION=false
295+
shift
296+
;;
297+
*)
298+
if [ "$1" =~ *"use_rs9116=true"* ] || [ "$1" =~ *"use_SiWx917=true"* ] || [ "$1" =~ *"use_wf200=true"* ]; then
299+
USE_WIFI=true
300+
# NCP Mode so base MCU is an EFR32
301+
optArgs+="chip_device_platform =\"efr32\" "
302+
fi
303+
optArgs+=$1" "
304+
shift
305+
;;
306306
esac
307307
done
308308

third_party/silabs/efr32_sdk.gni

+4-4
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,13 @@ template("efr32_sdk") {
343343
]
344344

345345
libs += [
346-
"${sdk_support_root}/protocol/bluetooth/bgstack/ll/build/gcc/xg26/release/liblinklayer.a",
347-
"${sdk_support_root}/platform/radio/rail_lib/autogen/librail_release/librail_multiprotocol_efr32xg26_gcc_release.a",
346+
"${matter_support_root}/protocol/bluetooth/bgstack/ll/build/gcc/xg26/release/liblinklayer.a",
347+
"${matter_support_root}/platform/radio/rail_lib/autogen/librail_release/librail_multiprotocol_efr32xg26_gcc_release.a",
348348
]
349349
if (silabs_mcu == "MGM260PB22VNA") {
350-
libs += [ "${sdk_support_root}/platform/radio/rail_lib/autogen/librail_release/librail_config_mgm260pb22vna_gcc.a" ]
350+
libs += [ "${matter_support_root}/platform/radio/rail_lib/autogen/librail_release/librail_config_mgm260pb22vna_gcc.a" ]
351351
} else if (silabs_mcu == "MGM260PB32VNA") {
352-
libs += [ "${sdk_support_root}/platform/radio/rail_lib/autogen/librail_release/librail_config_mgm260pb32vna_gcc.a" ]
352+
libs += [ "${matter_support_root}/platform/radio/rail_lib/autogen/librail_release/librail_config_mgm260pb32vna_gcc.a" ]
353353
}
354354

355355
defines += [ "MGM26" ]

third_party/silabs/matter_support

Submodule matter_support updated 1677 files

0 commit comments

Comments
 (0)