diff --git a/third_party/silabs/SiWx917_sdk.gni b/third_party/silabs/SiWx917_sdk.gni index 6873cc267e..3d22486601 100644 --- a/third_party/silabs/SiWx917_sdk.gni +++ b/third_party/silabs/SiWx917_sdk.gni @@ -251,7 +251,6 @@ template("siwx917_sdk") { "UDMA_ROMDRIVER_PRESENT=1", "PLL_ROMDRIVER_PRESENT=1", "SL_MATTER_GN_BUILD=1", - "SILABS_LOG_OUT_UART=${sl_uart_log_output}", ] if (silabs_log_enabled && chip_logging) { @@ -334,6 +333,12 @@ template("siwx917_sdk") { ] } + if (sl_uart_log_output) { + defines += [ "SILABS_LOG_OUT_UART=1" ] + } else { + defines += [ "SILABS_LOG_OUT_UART=0" ] + } + if (chip_build_libshell) { # matter shell defines += [ "ENABLE_CHIP_SHELL" ] } diff --git a/third_party/silabs/efr32_sdk.gni b/third_party/silabs/efr32_sdk.gni index 943a0e3763..a477809326 100644 --- a/third_party/silabs/efr32_sdk.gni +++ b/third_party/silabs/efr32_sdk.gni @@ -481,7 +481,6 @@ template("efr32_sdk") { "SL_OPENTHREAD_STACK_FEATURES_CONFIG_FILE=\"sl_openthread_features_config.h\"", "SL_CSL_TIMEOUT=${sl_ot_csl_timeout_sec}", "CIRCULAR_QUEUE_USE_LOCAL_CONFIG_HEADER=1", - "SILABS_LOG_OUT_UART=${sl_uart_log_output}", ] if (silabs_log_enabled && chip_logging) { @@ -490,6 +489,12 @@ template("efr32_sdk") { defines += [ "SILABS_LOG_ENABLED=0" ] } + if (sl_uart_log_output) { + defines += [ "SILABS_LOG_OUT_UART=1" ] + } else { + defines += [ "SILABS_LOG_OUT_UART=0" ] + } + if (use_silabs_thread_lib) { defines += [ "SL_CONFIG_OPENTHREAD_LIB=1" ] } else {