Skip to content

Commit

Permalink
Add option to remove Silabs Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs committed Feb 6, 2023
1 parent df4ad95 commit 62f2b36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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
5 changes: 4 additions & 1 deletion third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ declare_args() {

sleep_time_ms = 3300000 # 55 mins sleep

silabs_log_enabled = true

# Enable Sleepy end device
enable_sleepy_device = false

}

assert(efr32_sdk_root != "", "efr32_sdk_root must be specified")
Expand Down Expand Up @@ -165,7 +168,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 62f2b36

Please sign in to comment.