From b967c92e86c669859a4b3d23369480a8625648ef Mon Sep 17 00:00:00 2001 From: Mathieu Kardous Date: Fri, 11 Aug 2023 11:17:24 -0400 Subject: [PATCH] fix slc gen builds --- third_party/silabs/efr32_sdk.gni | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/third_party/silabs/efr32_sdk.gni b/third_party/silabs/efr32_sdk.gni index fd11964ef1142b..649045e149865e 100644 --- a/third_party/silabs/efr32_sdk.gni +++ b/third_party/silabs/efr32_sdk.gni @@ -794,6 +794,14 @@ template("efr32_sdk") { ] } + # COS and SWO sources files for when we use generate with slc + if (slc_generate || slc_reuse_files) { + sources += [ + "${efr32_sdk_root}/hardware/driver/configuration_over_swo/src/sl_cos.c", + "${efr32_sdk_root}/platform/driver/debug/src/sl_debug_swo.c", + ] + } + # USART sources files if ((defined(invoker.chip_enable_pw_rpc) && invoker.chip_enable_pw_rpc) || chip_build_libshell || enable_openthread_cli ||