File tree 4 files changed +19
-5
lines changed
examples/platform/silabs/provision
src/platform/silabs/efr32
4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 1
- # Copyright (c) 2020 Project CHIP Authors
1
+ # Copyright (c) 2024 Project CHIP Authors
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
@@ -22,10 +22,6 @@ if (wifi_soc) {
22
22
import (" ${ efr32_sdk_build_root } /efr32_sdk.gni" )
23
23
}
24
24
25
- declare_args () {
26
- use_flash_storage = wifi_soc
27
- }
28
-
29
25
source_set (" provision-storage" ) {
30
26
sources = [ " ProvisionStorageCustom.cpp" ]
31
27
Original file line number Diff line number Diff line change 87
87
#define PSA_WANT_ALG_SOME_PAKE
88
88
#endif // SL_USE_COAP_CONFIG
89
89
90
+ #if SL_PROVISION_FLASH
91
+ #define MBEDTLS_SHA256_C
92
+ #define MBEDTLS_HMAC_DRBG_C
93
+ #define MBEDTLS_ECDSA_DETERMINISTIC
94
+ #endif
95
+
90
96
#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf
91
97
92
98
#define MBEDTLS_AES_ROM_TABLES
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ declare_args() {
38
38
39
39
# enable 917 SoC M4 sleep wakeup
40
40
si917_m4_sleep_enabled = false
41
+
42
+ # Factory Provision storage
43
+ use_flash_storage = true
41
44
}
42
45
43
46
# Defines an siwx917 SDK build target.
Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ declare_args() {
82
82
chip_enable_multi_ota_requestor = false
83
83
chip_enable_multi_ota_encryption = false
84
84
chip_enable_ota_custom_tlv_testing = false
85
+
86
+ # Factory Provision storage
87
+ use_flash_storage = false
85
88
}
86
89
87
90
examples_plat_dir = " ${ chip_root } /examples/platform/silabs/efr32"
@@ -469,6 +472,12 @@ template("efr32_sdk") {
469
472
defines += [ " SL_USE_COAP_CONFIG=0" ]
470
473
}
471
474
475
+ if (use_flash_storage ) {
476
+ defines += [ " SL_PROVISION_FLASH=1" ]
477
+ } else {
478
+ defines += [ " SL_PROVISION_FLASH=0" ]
479
+ }
480
+
472
481
if (chip_enable_ble_rs911x ) {
473
482
defines += [
474
483
" RSI_BLE_ENABLE=1" ,
You can’t perform that action at this time.
0 commit comments