Skip to content

Commit 2d0f857

Browse files
[NXP][examples][mcxw71_k32w1] Remove "LittleFS" based key storage build option (#37157)
The components required in order to support LittleFS based key storage in Matter applications are no longer available in NXP SDK 3.0. Moreover, since the migration to the (Zephyr) NVS based key storage is complete, LittleFS based key storage can now be removed from the build options. Signed-off-by: Marian Chereji <marian.chereji@nxp.com>
1 parent 92e907b commit 2d0f857

File tree

13 files changed

+1
-70
lines changed

13 files changed

+1
-70
lines changed

examples/contact-sensor-app/nxp/k32w1/BUILD.gn

-8
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,6 @@ mcxw71_k32w1_sdk("sdk") {
8686
defines += [
8787
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
8888
]
89-
90-
if (nxp_nvm_component == "littlefs") {
91-
include_dirs += [ "${example_platform_dir}/board" ]
92-
sources += [
93-
"${example_platform_dir}/board/peripherals.c",
94-
"${example_platform_dir}/board/peripherals.h",
95-
]
96-
}
9789
}
9890

9991
mcxw71_k32w1_executable("contact_sensor_app") {

examples/contact-sensor-app/nxp/k32w1/args.gni

-2
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,3 @@ chip_openthread_ftd = false
4242
nxp_enable_ot_cli = false
4343

4444
chip_with_diag_logs_demo = true
45-
46-
nxp_nvm_component = "nvs"

examples/contact-sensor-app/nxp/mcxw71/BUILD.gn

-8
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,6 @@ mcxw71_k32w1_sdk("sdk") {
8585
defines += [
8686
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
8787
]
88-
89-
if (nxp_nvm_component == "littlefs") {
90-
include_dirs += [ "${example_platform_dir}/board" ]
91-
sources += [
92-
"${example_platform_dir}/board/peripherals.c",
93-
"${example_platform_dir}/board/peripherals.h",
94-
]
95-
}
9688
}
9789

9890
mcxw71_k32w1_executable("contact_sensor_app") {

examples/contact-sensor-app/nxp/mcxw71/args.gni

-2
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@ chip_openthread_ftd = false
4040
nxp_enable_ot_cli = false
4141

4242
chip_with_diag_logs_demo = true
43-
44-
nxp_nvm_component = "nvs"

examples/lighting-app/nxp/k32w1/BUILD.gn

-8
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,6 @@ mcxw71_k32w1_sdk("sdk") {
100100
defines += [
101101
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
102102
]
103-
104-
if (nxp_nvm_component == "littlefs") {
105-
include_dirs += [ "${example_platform_dir}/board" ]
106-
sources += [
107-
"${example_platform_dir}/board/peripherals.c",
108-
"${example_platform_dir}/board/peripherals.h",
109-
]
110-
}
111103
}
112104

113105
mcxw71_k32w1_executable("light_app") {

examples/lighting-app/nxp/k32w1/args.gni

-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,5 @@ chip_system_config_provide_statistics = false
3535
chip_system_config_use_open_thread_inet_endpoints = true
3636
chip_with_lwip = false
3737

38-
nxp_nvm_component = "nvs"
39-
4038
nxp_use_smu2_static = true
4139
nxp_use_smu2_dynamic = true

examples/lighting-app/nxp/mcxw71/BUILD.gn

-8
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,6 @@ mcxw71_k32w1_sdk("sdk") {
100100
defines += [
101101
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
102102
]
103-
104-
if (nxp_nvm_component == "littlefs") {
105-
include_dirs += [ "${example_platform_dir}/board" ]
106-
sources += [
107-
"${example_platform_dir}/board/peripherals.c",
108-
"${example_platform_dir}/board/peripherals.h",
109-
]
110-
}
111103
}
112104

113105
mcxw71_k32w1_executable("light_app") {

examples/lighting-app/nxp/mcxw71/args.gni

-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,5 @@ chip_system_config_provide_statistics = false
3535
chip_system_config_use_open_thread_inet_endpoints = true
3636
chip_with_lwip = false
3737

38-
nxp_nvm_component = "nvs"
39-
4038
nxp_use_smu2_static = true
4139
nxp_use_smu2_dynamic = true

examples/lock-app/nxp/k32w1/BUILD.gn

-8
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,6 @@ mcxw71_k32w1_sdk("sdk") {
8585
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
8686
]
8787

88-
if (nxp_nvm_component == "littlefs") {
89-
include_dirs += [ "${example_platform_dir}/board" ]
90-
sources += [
91-
"${example_platform_dir}/board/peripherals.c",
92-
"${example_platform_dir}/board/peripherals.h",
93-
]
94-
}
95-
9688
if (nxp_multiple_ble_connections) {
9789
include_dirs += [ "${example_platform_dir}/app_ble/include" ]
9890
defines += [

examples/lock-app/nxp/mcxw71/BUILD.gn

-8
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,6 @@ mcxw71_k32w1_sdk("sdk") {
8585
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
8686
]
8787

88-
if (nxp_nvm_component == "littlefs") {
89-
include_dirs += [ "${example_platform_dir}/board" ]
90-
sources += [
91-
"${example_platform_dir}/board/peripherals.c",
92-
"${example_platform_dir}/board/peripherals.h",
93-
]
94-
}
95-
9688
if (nxp_multiple_ble_connections) {
9789
include_dirs += [ "${example_platform_dir}/app_ble/include" ]
9890
defines += [

examples/platform/nxp/mcxw71_k32w1/app/support/BUILD.gn

-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ source_set("freertos_memory_utils") {
5555

5656
if (nxp_nvm_component == "fwk_nvm") {
5757
defines = [ "CHIP_PLAT_NVM_SUPPORT=1" ]
58-
} else if (nxp_nvm_component == "littlefs") {
59-
defines = [ "CHIP_PLAT_NVM_SUPPORT=3" ]
6058
}
6159

6260
public_configs = [

src/platform/nxp/mcxw71_k32w1/BUILD.gn

-12
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,6 @@ static_library("nxp_platform") {
123123
"ram_storage.c",
124124
"ram_storage.h",
125125
]
126-
} else if (nxp_nvm_component == "littlefs") {
127-
defines += [
128-
"CHIP_PLAT_NVM_SUPPORT=3",
129-
"EXTERNAL_KEYVALUESTOREMANAGERIMPL_HEADER=\"platform/nxp/common/KeyValueStoreManagerImpl.h\"",
130-
]
131-
132-
sources += [
133-
"../common/KeyValueStoreManagerImpl.cpp",
134-
"../common/KeyValueStoreManagerImpl.h",
135-
"../common/NXPConfig.h",
136-
"../common/NXPConfigKS.cpp",
137-
]
138126
} else if (nxp_nvm_component == "nvs") {
139127
defines += [
140128
"gAppNvsExternalFlash_c=0",

src/platform/nxp/mcxw71_k32w1/args.gni

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ openthread_root =
2121
nxp_platform = "mcxw71_k32w1"
2222
nxp_sdk_name = "mcxw71_k32w1_sdk"
2323
nxp_device_layer = "nxp/${nxp_platform}"
24+
nxp_nvm_component = "nvs"
2425
nxp_use_lwip = false
2526

2627
# ARM architecture flags will be set based on NXP board.

0 commit comments

Comments
 (0)