@@ -41,11 +41,11 @@ declare_args() {
41
41
chip_default_wifi_psk = " "
42
42
43
43
# Enable TestEventTrigger in GeneralDiagnostics cluster
44
- silabs_test_event_trigger_enabled = false
44
+ sl_enable_test_event_trigger = false
45
45
46
46
# The EnableKey in hex string format used by TestEventTrigger command in
47
- # GeneralDiagnostics cluster. The length of the string should be 32 .
48
- silabs_test_event_trigger_enable_key = " 00112233445566778899aabbccddeeff "
47
+ # GeneralDiagnostics cluster. The length of the string should be 16 bytes .
48
+ sl_test_event_trigger_enable_key = " 00112233445566778899AABBCCDDEEFF "
49
49
}
50
50
51
51
# Sanity check
@@ -77,6 +77,28 @@ config("chip_examples_project_config") {
77
77
]
78
78
}
79
79
80
+ config (" test-event-trigger-config" ) {
81
+ defines = [
82
+ " SL_MATTER_TEST_EVENT_TRIGGER_ENABLED" ,
83
+ " SL_MATTER_TEST_EVENT_TRIGGER_ENABLE_KEY=\" ${ sl_test_event_trigger_enable_key } \" " ,
84
+ ]
85
+ }
86
+
87
+ source_set (" test-event-trigger" ) {
88
+ sources = [
89
+ " ${ silabs_common_plat_dir } /SilabsTestEventTriggerDelegate.cpp" ,
90
+ " ${ silabs_common_plat_dir } /SilabsTestEventTriggerDelegate.h" ,
91
+ ]
92
+
93
+ public_configs = [ " :test-event-trigger-config" ]
94
+
95
+ public_deps = [
96
+ " :silabs-factory-data-provider" ,
97
+ " ${ chip_root } /src/lib/core" ,
98
+ " ${ chip_root } /src/lib/support" ,
99
+ ]
100
+ }
101
+
80
102
source_set (" siwx917-matter-shell" ) {
81
103
if (chip_build_libshell ) {
82
104
defines = [ " ENABLE_CHIP_SHELL" ]
@@ -126,6 +148,10 @@ source_set("silabs-factory-data-provider") {
126
148
]
127
149
128
150
public_configs = [ " :siwx917-common-config" ]
151
+
152
+ if (sl_enable_test_event_trigger ) {
153
+ public_configs += [ " :test-event-trigger-config" ]
154
+ }
129
155
}
130
156
131
157
config (" siwx917-common-config" ) {
@@ -267,18 +293,16 @@ source_set("siwx917-common") {
267
293
public_deps += [ " :silabs-factory-data-provider" ]
268
294
}
269
295
270
- if (silabs_test_event_trigger_enabled ) {
271
- sources +=
272
- [ " ${ silabs_common_plat_dir } /SilabsTestEventTriggerDelegate.cpp" ]
273
- defines += [ " SILABS_TEST_EVENT_TRIGGER_ENABLE_KEY=\" ${ silabs_test_event_trigger_enable_key } \" " ]
274
- }
275
-
276
296
public_deps += [
277
297
" ${ chip_root } /examples/providers:device_info_provider" ,
278
298
" ${ chip_root } /src/lib" ,
279
299
" ${ chip_root } /src/setup_payload" ,
280
300
]
281
301
302
+ if (sl_enable_test_event_trigger ) {
303
+ public_deps += [ " :test-event-trigger" ]
304
+ }
305
+
282
306
if (app_data_model != " " ) {
283
307
public_deps += [ app_data_model ]
284
308
}
0 commit comments