Skip to content

Commit

Permalink
Add option to remove Silabs Logs (#24889)
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs authored Feb 7, 2023
1 parent 7f55718 commit 4982399
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions scripts/examples/gn_efr32_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ if [ "$#" == "0" ]; then
--no-version
Skip the silabs formating for the Matter software version string
Currently : v1.0-<branchName>-<ShortCommitSha>
--release
Remove all logs and debugs features (including the LCD). Yield the smallest image size possible
"
elif [ "$#" -lt "2" ]; then
echo "Invalid number of arguments
Expand Down Expand Up @@ -180,6 +183,10 @@ else
USE_GIT_SHA_FOR_VERSION=false
shift
;;
--release)
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 "
shift
;;
*)
if [ "$1" =~ *"use_rs911x=true"* ] || [ "$1" =~ *"use_wf200=true"* ]; then
USE_WIFI=true
Expand Down
1 change: 0 additions & 1 deletion src/test_driver/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ efr32_sdk("sdk") {
]

defines = [
"SILABS_LOG_ENABLED=1",
"PW_RPC_ENABLED",

# Thread is built but test driver do not have the NETWORK_COMMISSIONING cluster or zap config.
Expand Down
4 changes: 3 additions & 1 deletion third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ declare_args() {

sleep_time_ms = 3300000 # 55 mins sleep

silabs_log_enabled = true

# Enable Sleepy end device
enable_sleepy_device = false
}
Expand Down Expand Up @@ -165,7 +167,7 @@ template("efr32_sdk") {
"__STARTUP_CLEAR_BSS",
"HARD_FAULT_LOG_ENABLE",
"CORTEXM3_EFM32_MICRO",
"SILABS_LOG_ENABLED=1",
"SILABS_LOG_ENABLED=${silabs_log_enabled}",
"NVM3_DEFAULT_NVM_SIZE=40960",
"NVM3_DEFAULT_MAX_OBJECT_SIZE=4092",
"KVS_MAX_ENTRIES=${kvs_max_entries}",
Expand Down

0 comments on commit 4982399

Please sign in to comment.