Skip to content

Commit d6f7696

Browse files
jepenven-silabspull[bot]
authored andcommitted
Rename credentials define (#26089)
1 parent 47eda16 commit d6f7696

File tree

12 files changed

+22
-22
lines changed

12 files changed

+22
-22
lines changed

examples/chef/efr32/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <app/server/Server.h>
2828
#include <credentials/DeviceAttestationCredsProvider.h>
2929
#include <matter_config.h>
30-
#ifdef EFR32_ATTESTATION_CREDENTIALS
30+
#ifdef SILABS_ATTESTATION_CREDENTIALS
3131
#include <examples/platform/efr32/EFR32DeviceAttestationCreds.h>
3232
#else
3333
#include <credentials/examples/DeviceAttestationCredsExample.h>
@@ -58,7 +58,7 @@ int main(void)
5858

5959
chip::DeviceLayer::PlatformMgr().LockChipStack();
6060
// Initialize device attestation config
61-
#ifdef EFR32_ATTESTATION_CREDENTIALS
61+
#ifdef SILABS_ATTESTATION_CREDENTIALS
6262
SetDeviceAttestationCredentialsProvider(EFR32::GetEFR32DacProvider());
6363
#else
6464
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());

examples/light-switch-app/silabs/SiWx917/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <app/server/Server.h>
2626
#include <credentials/DeviceAttestationCredsProvider.h>
2727
#include <matter_config.h>
28-
#ifdef SI917_ATTESTATION_CREDENTIALS
28+
#ifdef SILABS_ATTESTATION_CREDENTIALS
2929
#include <examples/platform/silabs/SilabsDeviceAttestationCreds.h>
3030
#else
3131
#include <credentials/examples/DeviceAttestationCredsExample.h>
@@ -61,7 +61,7 @@ int main(void)
6161

6262
chip::DeviceLayer::PlatformMgr().LockChipStack();
6363
// Initialize device attestation config
64-
#ifdef SI917_ATTESTATION_CREDENTIALS
64+
#ifdef SILABS_ATTESTATION_CREDENTIALS
6565
SetDeviceAttestationCredentialsProvider(SIWx917::GetSIWx917DacProvider());
6666
#else
6767
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());

examples/light-switch-app/silabs/efr32/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <app/server/Server.h>
2828
#include <credentials/DeviceAttestationCredsProvider.h>
2929
#include <matter_config.h>
30-
#ifdef EFR32_ATTESTATION_CREDENTIALS
30+
#ifdef SILABS_ATTESTATION_CREDENTIALS
3131
#include <examples/platform/silabs/SilabsDeviceAttestationCreds.h>
3232
#else
3333
#include <credentials/examples/DeviceAttestationCredsExample.h>
@@ -58,7 +58,7 @@ int main(void)
5858

5959
chip::DeviceLayer::PlatformMgr().LockChipStack();
6060
// Initialize device attestation config
61-
#ifdef EFR32_ATTESTATION_CREDENTIALS
61+
#ifdef SILABS_ATTESTATION_CREDENTIALS
6262
SetDeviceAttestationCredentialsProvider(Silabs::GetSilabsDacProvider());
6363
#else
6464
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());

examples/lighting-app/silabs/SiWx917/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <app/server/Server.h>
2727
#include <credentials/DeviceAttestationCredsProvider.h>
2828
#include <matter_config.h>
29-
#ifdef SI917_ATTESTATION_CREDENTIALS
29+
#ifdef SILABS_ATTESTATION_CREDENTIALS
3030
#include <examples/platform/silabs/SilabsDeviceAttestationCreds.h>
3131
#else
3232
#include <credentials/examples/DeviceAttestationCredsExample.h>
@@ -62,7 +62,7 @@ int main(void)
6262

6363
chip::DeviceLayer::PlatformMgr().LockChipStack();
6464
// Initialize device attestation config
65-
#ifdef SI917_ATTESTATION_CREDENTIALS
65+
#ifdef SILABS_ATTESTATION_CREDENTIALS
6666
SetDeviceAttestationCredentialsProvider(Silabs::GetSilabsDacProvider());
6767
#else
6868
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());

examples/lighting-app/silabs/efr32/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <app/server/Server.h>
3030
#include <credentials/DeviceAttestationCredsProvider.h>
3131
#include <matter_config.h>
32-
#ifdef EFR32_ATTESTATION_CREDENTIALS
32+
#ifdef SILABS_ATTESTATION_CREDENTIALS
3333
#include <examples/platform/silabs/SilabsDeviceAttestationCreds.h>
3434
#else
3535
#include <credentials/examples/DeviceAttestationCredsExample.h>
@@ -60,7 +60,7 @@ int main(void)
6060

6161
chip::DeviceLayer::PlatformMgr().LockChipStack();
6262
// Initialize device attestation config
63-
#ifdef EFR32_ATTESTATION_CREDENTIALS
63+
#ifdef SILABS_ATTESTATION_CREDENTIALS
6464
SetDeviceAttestationCredentialsProvider(Silabs::GetSilabsDacProvider());
6565
#else
6666
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());

examples/lock-app/silabs/SiWx917/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <app/server/Server.h>
2626
#include <credentials/DeviceAttestationCredsProvider.h>
2727
#include <matter_config.h>
28-
#ifdef EFR32_ATTESTATION_CREDENTIALS
28+
#ifdef SILABS_ATTESTATION_CREDENTIALS
2929
#include <examples/platform/silabs/SilabsDeviceAttestationCreds.h>
3030
#else
3131
#include <credentials/examples/DeviceAttestationCredsExample.h>
@@ -59,7 +59,7 @@ int main(void)
5959

6060
chip::DeviceLayer::PlatformMgr().LockChipStack();
6161
// Initialize device attestation config
62-
#ifdef SI917_ATTESTATION_CREDENTIALS
62+
#ifdef SILABS_ATTESTATION_CREDENTIALS
6363
SetDeviceAttestationCredentialsProvider(SI917::GetSI917DacProvider());
6464
#else
6565
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());

examples/lock-app/silabs/efr32/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <app/server/Server.h>
2828
#include <credentials/DeviceAttestationCredsProvider.h>
2929
#include <matter_config.h>
30-
#ifdef EFR32_ATTESTATION_CREDENTIALS
30+
#ifdef SILABS_ATTESTATION_CREDENTIALS
3131
#include <examples/platform/silabs/SilabsDeviceAttestationCreds.h>
3232
#else
3333
#include <credentials/examples/DeviceAttestationCredsExample.h>
@@ -58,7 +58,7 @@ int main(void)
5858

5959
chip::DeviceLayer::PlatformMgr().LockChipStack();
6060
// Initialize device attestation config
61-
#ifdef EFR32_ATTESTATION_CREDENTIALS
61+
#ifdef SILABS_ATTESTATION_CREDENTIALS
6262
SetDeviceAttestationCredentialsProvider(Silabs::GetSilabsDacProvider());
6363
#else
6464
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());

examples/platform/silabs/SiWx917/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ config("attestation-credentials-config") {
129129

130130
defines = [
131131
# Set to 1 to enable SI917 attestation credentials
132-
"SI917_ATTESTATION_CREDENTIALS",
132+
"SILABS_ATTESTATION_CREDENTIALS",
133133
]
134134
}
135135

examples/platform/silabs/efr32/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ config("attestation-credentials-config") {
161161

162162
defines = [
163163
# Set to 1 to enable EFR32 attestation credentials
164-
"EFR32_ATTESTATION_CREDENTIALS",
164+
"SILABS_ATTESTATION_CREDENTIALS",
165165
]
166166
}
167167

examples/thermostat/silabs/efr32/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <app/server/Server.h>
2828
#include <credentials/DeviceAttestationCredsProvider.h>
2929
#include <matter_config.h>
30-
#ifdef EFR32_ATTESTATION_CREDENTIALS
30+
#ifdef SILABS_ATTESTATION_CREDENTIALS
3131
#include <examples/platform/silabs/SilabsDeviceAttestationCreds.h>
3232
#else
3333
#include <credentials/examples/DeviceAttestationCredsExample.h>
@@ -58,7 +58,7 @@ int main(void)
5858

5959
chip::DeviceLayer::PlatformMgr().LockChipStack();
6060
// Initialize device attestation config
61-
#ifdef EFR32_ATTESTATION_CREDENTIALS
61+
#ifdef SILABS_ATTESTATION_CREDENTIALS
6262
SetDeviceAttestationCredentialsProvider(Silabs::GetSilabsDacProvider());
6363
#else
6464
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());

examples/window-app/silabs/SiWx917/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <app/server/Server.h>
2626
#include <credentials/DeviceAttestationCredsProvider.h>
2727
#include <matter_config.h>
28-
#ifdef SI917_ATTESTATION_CREDENTIALS
28+
#ifdef SILABS_ATTESTATION_CREDENTIALS
2929
#include <examples/platform/silabs/SilabsDeviceAttestationCreds.h>
3030
#else
3131
#include <credentials/examples/DeviceAttestationCredsExample.h>
@@ -60,7 +60,7 @@ int main(void)
6060
chip::DeviceLayer::PlatformMgr().LockChipStack();
6161
err = app.Init();
6262
// Initialize device attestation config
63-
#ifdef SI917_ATTESTATION_CREDENTIALS
63+
#ifdef SILABS_ATTESTATION_CREDENTIALS
6464
SetDeviceAttestationCredentialsProvider(SILABS::GetSILABSDacProvider());
6565
#else
6666
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());

examples/window-app/silabs/efr32/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <app/server/Server.h>
2828
#include <credentials/DeviceAttestationCredsProvider.h>
2929
#include <matter_config.h>
30-
#ifdef EFR32_ATTESTATION_CREDENTIALS
30+
#ifdef SILABS_ATTESTATION_CREDENTIALS
3131
#include <examples/platform/silabs/SilabsDeviceAttestationCreds.h>
3232
#else
3333
#include <credentials/examples/DeviceAttestationCredsExample.h>
@@ -62,7 +62,7 @@ int main(void)
6262
chip::DeviceLayer::PlatformMgr().LockChipStack();
6363
err = app.Init();
6464
// Initialize device attestation config
65-
#ifdef EFR32_ATTESTATION_CREDENTIALS
65+
#ifdef SILABS_ATTESTATION_CREDENTIALS
6666
SetDeviceAttestationCredentialsProvider(Silabs::GetSilabsDacProvider());
6767
#else
6868
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());

0 commit comments

Comments
 (0)