From ebb2234a6104c6e1ceb09ad94293fdd1b40eef13 Mon Sep 17 00:00:00 2001 From: Andrei Menzopol Date: Mon, 29 Apr 2024 07:41:48 -0700 Subject: [PATCH] [nxp noup][sdk][k32w1] Put define CONFIG_NVS_STATS under chip_key_storage_wear_stats Signed-off-by: Andrei Menzopol --- third_party/nxp/k32w1_sdk/middleware_sdk.gni | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/third_party/nxp/k32w1_sdk/middleware_sdk.gni b/third_party/nxp/k32w1_sdk/middleware_sdk.gni index 2d9b14302cbdf9..d2671dbdafadfc 100644 --- a/third_party/nxp/k32w1_sdk/middleware_sdk.gni +++ b/third_party/nxp/k32w1_sdk/middleware_sdk.gni @@ -179,9 +179,14 @@ middleware_sdk = { "CONFIG_NVS_LOOKUP_CACHE_SIZE=32", "CONFIG_SETTINGS_DYNAMIC_HANDLERS=1", "CONFIG_SETTINGS_RUNTIME=1", - "CONFIG_NVS_STATS=1" ] + if (chip_key_storage_wear_stats) { + middleware_defines += [ + "CONFIG_NVS_STATS=1" + ] + } + # Temporary fix for NVS power loss resilience issue middleware_defines += [ "NO_FLASH_CONTROLLER_BLANK_CHECK=1" ] }