Skip to content

Commit

Permalink
[NXP][examples][mcxw71_k32w1] Remove "LittleFS" based key storage bui…
Browse files Browse the repository at this point in the history
…ld 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 <[email protected]>
  • Loading branch information
marian-chereji-nxp authored Jan 22, 2025
1 parent 92e907b commit 2d0f857
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 70 deletions.
8 changes: 0 additions & 8 deletions examples/contact-sensor-app/nxp/k32w1/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@ mcxw71_k32w1_sdk("sdk") {
defines += [
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
]

if (nxp_nvm_component == "littlefs") {
include_dirs += [ "${example_platform_dir}/board" ]
sources += [
"${example_platform_dir}/board/peripherals.c",
"${example_platform_dir}/board/peripherals.h",
]
}
}

mcxw71_k32w1_executable("contact_sensor_app") {
Expand Down
2 changes: 0 additions & 2 deletions examples/contact-sensor-app/nxp/k32w1/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ chip_openthread_ftd = false
nxp_enable_ot_cli = false

chip_with_diag_logs_demo = true

nxp_nvm_component = "nvs"
8 changes: 0 additions & 8 deletions examples/contact-sensor-app/nxp/mcxw71/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@ mcxw71_k32w1_sdk("sdk") {
defines += [
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
]

if (nxp_nvm_component == "littlefs") {
include_dirs += [ "${example_platform_dir}/board" ]
sources += [
"${example_platform_dir}/board/peripherals.c",
"${example_platform_dir}/board/peripherals.h",
]
}
}

mcxw71_k32w1_executable("contact_sensor_app") {
Expand Down
2 changes: 0 additions & 2 deletions examples/contact-sensor-app/nxp/mcxw71/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ chip_openthread_ftd = false
nxp_enable_ot_cli = false

chip_with_diag_logs_demo = true

nxp_nvm_component = "nvs"
8 changes: 0 additions & 8 deletions examples/lighting-app/nxp/k32w1/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,6 @@ mcxw71_k32w1_sdk("sdk") {
defines += [
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
]

if (nxp_nvm_component == "littlefs") {
include_dirs += [ "${example_platform_dir}/board" ]
sources += [
"${example_platform_dir}/board/peripherals.c",
"${example_platform_dir}/board/peripherals.h",
]
}
}

mcxw71_k32w1_executable("light_app") {
Expand Down
2 changes: 0 additions & 2 deletions examples/lighting-app/nxp/k32w1/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,5 @@ chip_system_config_provide_statistics = false
chip_system_config_use_open_thread_inet_endpoints = true
chip_with_lwip = false

nxp_nvm_component = "nvs"

nxp_use_smu2_static = true
nxp_use_smu2_dynamic = true
8 changes: 0 additions & 8 deletions examples/lighting-app/nxp/mcxw71/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,6 @@ mcxw71_k32w1_sdk("sdk") {
defines += [
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
]

if (nxp_nvm_component == "littlefs") {
include_dirs += [ "${example_platform_dir}/board" ]
sources += [
"${example_platform_dir}/board/peripherals.c",
"${example_platform_dir}/board/peripherals.h",
]
}
}

mcxw71_k32w1_executable("light_app") {
Expand Down
2 changes: 0 additions & 2 deletions examples/lighting-app/nxp/mcxw71/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,5 @@ chip_system_config_provide_statistics = false
chip_system_config_use_open_thread_inet_endpoints = true
chip_with_lwip = false

nxp_nvm_component = "nvs"

nxp_use_smu2_static = true
nxp_use_smu2_dynamic = true
8 changes: 0 additions & 8 deletions examples/lock-app/nxp/k32w1/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@ mcxw71_k32w1_sdk("sdk") {
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
]

if (nxp_nvm_component == "littlefs") {
include_dirs += [ "${example_platform_dir}/board" ]
sources += [
"${example_platform_dir}/board/peripherals.c",
"${example_platform_dir}/board/peripherals.h",
]
}

if (nxp_multiple_ble_connections) {
include_dirs += [ "${example_platform_dir}/app_ble/include" ]
defines += [
Expand Down
8 changes: 0 additions & 8 deletions examples/lock-app/nxp/mcxw71/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@ mcxw71_k32w1_sdk("sdk") {
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR=${setup_discriminator}",
]

if (nxp_nvm_component == "littlefs") {
include_dirs += [ "${example_platform_dir}/board" ]
sources += [
"${example_platform_dir}/board/peripherals.c",
"${example_platform_dir}/board/peripherals.h",
]
}

if (nxp_multiple_ble_connections) {
include_dirs += [ "${example_platform_dir}/app_ble/include" ]
defines += [
Expand Down
2 changes: 0 additions & 2 deletions examples/platform/nxp/mcxw71_k32w1/app/support/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ source_set("freertos_memory_utils") {

if (nxp_nvm_component == "fwk_nvm") {
defines = [ "CHIP_PLAT_NVM_SUPPORT=1" ]
} else if (nxp_nvm_component == "littlefs") {
defines = [ "CHIP_PLAT_NVM_SUPPORT=3" ]
}

public_configs = [
Expand Down
12 changes: 0 additions & 12 deletions src/platform/nxp/mcxw71_k32w1/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,6 @@ static_library("nxp_platform") {
"ram_storage.c",
"ram_storage.h",
]
} else if (nxp_nvm_component == "littlefs") {
defines += [
"CHIP_PLAT_NVM_SUPPORT=3",
"EXTERNAL_KEYVALUESTOREMANAGERIMPL_HEADER=\"platform/nxp/common/KeyValueStoreManagerImpl.h\"",
]

sources += [
"../common/KeyValueStoreManagerImpl.cpp",
"../common/KeyValueStoreManagerImpl.h",
"../common/NXPConfig.h",
"../common/NXPConfigKS.cpp",
]
} else if (nxp_nvm_component == "nvs") {
defines += [
"gAppNvsExternalFlash_c=0",
Expand Down
1 change: 1 addition & 0 deletions src/platform/nxp/mcxw71_k32w1/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ openthread_root =
nxp_platform = "mcxw71_k32w1"
nxp_sdk_name = "mcxw71_k32w1_sdk"
nxp_device_layer = "nxp/${nxp_platform}"
nxp_nvm_component = "nvs"
nxp_use_lwip = false

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

0 comments on commit 2d0f857

Please sign in to comment.