Skip to content

Commit c8de8f8

Browse files
Fix to leverage csl on thread libs
1 parent 580c50b commit c8de8f8

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

third_party/openthread/platforms/efr32/BUILD.gn

+2-4
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,13 @@ config("openthread_efr32_config") {
2929
]
3030

3131
include_dirs = [
32+
"${sl_ot_efr32_root}",
3233
"${chip_root}/examples/platform/efr32",
3334
"${sdk_support_root}/matter/efr32/${silabs_family}/${silabs_board}",
3435
"${sl_ot_platform_abstraction}/include",
35-
"${sl_ot_efr32_root}",
36-
37-
#TODO TEST is this needed here if it is in efr32_sdk.gni!!!!
3836
"${sl_ot_platform_abstraction}/rtos",
3937

40-
#this is for sl_openthread_features_config.h. should use generated one per board
38+
#TODO this is for sl_openthread_features_config.h. should use generated one per board when sl_ot_abstraction is integrated
4139
"${sl_ot_libs_path}/config",
4240
]
4341

third_party/silabs/BUILD.gn

+6-1
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,13 @@ if (wifi_soc != true) { # CCP board
126126
}
127127

128128
source_set("ot-efr32-cert") {
129+
sources = [
130+
"${openthread_root}/examples/platforms/utils/mac_frame.cpp",
131+
"${openthread_root}/examples/platforms/utils/mac_frame.h",
132+
]
133+
129134
if (enable_openthread_cli) {
130-
sources = [
135+
sources += [
131136
"${openthread_root}/examples/apps/cli/cli_uart.cpp",
132137
"${openthread_root}/src/cli/cli.cpp",
133138
"${openthread_root}/src/cli/cli.hpp",

third_party/silabs/efr32_sdk.gni

+3-6
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ declare_args() {
6565

6666
silabs_log_enabled = true
6767

68-
# Enable Synchronized Sleepy End Device
69-
enable_synchronized_sed = false
70-
7168
# Argument to enable IPv4 for wifi
7269
# aligning to match chip_inet_config_enable_ipv4 default configuration
7370
chip_enable_wifi_ipv4 = false
@@ -99,6 +96,9 @@ declare_args() {
9996
sl_ot_platform_abstraction =
10097
"${efr32_sdk_root}/protocol/openthread/platform-abstraction"
10198

99+
# Enable Synchronized Sleepy End Device
100+
enable_synchronized_sed = use_silabs_thread_lib
101+
102102
# board related pre-generated files path (default)
103103
sl_pre_gen_path =
104104
"${sdk_support_root}/matter/efr32/${silabs_family}/${silabs_board}/"
@@ -221,9 +221,6 @@ template("efr32_sdk") {
221221
# Headers needed for Init no function will be called if OT is not used
222222
"${sl_ot_efr32_root}",
223223

224-
#TODO TEST is this needed here!!!!
225-
"${sl_ot_platform_abstraction}/rtos",
226-
227224
# TODO this is for sl_openthread_features_config.h. should use generated one per board when sl_ot_abstraction is integrated
228225
"${sl_ot_libs_path}/config",
229226
]

0 commit comments

Comments
 (0)