Skip to content

Commit

Permalink
Merge branch 'master' into pw_rpc_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Jan 22, 2025
2 parents 4438ec3 + 2d0f857 commit 31673ef
Show file tree
Hide file tree
Showing 17 changed files with 74 additions and 116 deletions.
14 changes: 14 additions & 0 deletions data_model/1.4/clusters/EcosystemInformationCluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,18 @@ Davis, CA 95616, USA
<access fabricScoped="true"/>
</struct>
</dataTypes>
<attributes>
<attribute id="0x0000" name="DeviceDirectory" type="list">
<entry type="EcosystemDeviceStruct"/>
<access read="true" readPrivilege="manage" fabricScoped="true"/>
<quality changeOmitted="false" nullable="false" scene="false" persistence="nonVolatile" reportable="false" sourceAttribution="false" quieterReporting="false"/>
<mandatoryConform/>
</attribute>
<attribute id="0x0001" name="LocationDirectory" type="list">
<entry type="EcosystemLocationStruct"/>
<access read="true" readPrivilege="manage" fabricScoped="true"/>
<quality changeOmitted="false" nullable="false" scene="false" persistence="nonVolatile" reportable="false" sourceAttribution="false" quieterReporting="false"/>
<mandatoryConform/>
</attribute>
</attributes>
</cluster>
2 changes: 1 addition & 1 deletion data_model/1.4/spec_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3d8fc9ae05045a53fdaffd7e3593f92a48b10e30
21812107312887c416632ed6dd2399af1f077548
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
4 changes: 2 additions & 2 deletions scripts/dm_xml_ci_change_enforcement.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ def check_dm_directory(dir):

def check_dir(dir):
cmd = f'git diff HEAD^..HEAD --name-only -- {dir}'
output = subprocess.check_output(cmd, shell=True).decode().splitlines()
output = subprocess.check_output(cmd, shell=True).decode()
if output and 'spec_sha' not in output and 'scraper_version' not in output:
print(f'Data model directory {dir} had changes to the following files without a corresponding update to the spec SHA')
print(output)
print("Note that the data_model directory files are automatically updated by a spec scraper and should not be manually updated.")
return 1
return 0

ret = check_dir(clusters) + check_dir(device_types)
ret = check_dir(dir)
sys.exit(ret)


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
Loading

0 comments on commit 31673ef

Please sign in to comment.