Skip to content

Commit bc52e7d

Browse files
add gn argument to configure the nvm3 max object size
1 parent 4f24e49 commit bc52e7d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

third_party/silabs/SiWx917_sdk.gni

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ template("siwx917_sdk") {
187187
# 1->SOC and 0->NCP
188188
"RSI_WLAN_API_ENABLE",
189189
"NVM3_DEFAULT_NVM_SIZE=40960",
190-
"NVM3_DEFAULT_MAX_OBJECT_SIZE=4092",
190+
"NVM3_DEFAULT_MAX_OBJECT_SIZE=${sl_nvm3_max_object_size}",
191191
"KVS_MAX_ENTRIES=${kvs_max_entries}",
192192
"${silabs_mcu}=1",
193193
"${silabs_board}=1",

third_party/silabs/efr32_sdk.gni

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ declare_args() {
3838
# enable by default for thread/non-wifi-ncp builds
3939
enable_openthread_cli = !(use_rs9116 || use_wf200 || use_SiWx917)
4040
kvs_max_entries = 255
41+
sl_nvm3_max_object_size = 4092
4142

4243
# Use Silabs factory data provider example.
4344
# Users can implement their own.
@@ -418,7 +419,7 @@ template("efr32_sdk") {
418419
"HARD_FAULT_LOG_ENABLE",
419420
"CORTEXM3_EFM32_MICRO",
420421
"NVM3_DEFAULT_NVM_SIZE=40960",
421-
"NVM3_DEFAULT_MAX_OBJECT_SIZE=4092",
422+
"NVM3_DEFAULT_MAX_OBJECT_SIZE=${sl_nvm3_max_object_size}",
422423
"KVS_MAX_ENTRIES=${kvs_max_entries}",
423424
"CORTEXM3=1",
424425
"MICRO=EMBER_MICRO_CORTEXM3_EFR32",

0 commit comments

Comments
 (0)