Skip to content

Commit

Permalink
[nxp toup][mcxw71_k32w1][lock-app] Update build system after moving s…
Browse files Browse the repository at this point in the history
…ome components

Signed-off-by: marius-alex-tache <[email protected]>
  • Loading branch information
marius-alex-tache committed Sep 11, 2024
1 parent bb7b02c commit 5612533
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
15 changes: 10 additions & 5 deletions examples/lock-app/nxp/k32w1/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ assert(target_os == "freertos")

example_platform_dir = "${chip_root}/examples/platform/nxp/${nxp_platform}"
common_example_dir = "${chip_root}/examples/platform/nxp/common"
support_common_platform_dir = "${nxp_sdk_matter_support_root}/examples/platform/common"

mcxw71_k32w1_sdk("sdk") {
defines = []
Expand All @@ -52,6 +53,9 @@ mcxw71_k32w1_sdk("sdk") {
# Indicate the default path to OpenThreadConfig.h
include_dirs += [ "${example_platform_dir}/app/project_include/openthread" ]

# Indicate the default path to GATT database
include_dirs += [ "${support_common_platform_dir}/ble" ]

include_dirs += [
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1",
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/K32W1480"
Expand All @@ -66,7 +70,8 @@ mcxw71_k32w1_sdk("sdk") {
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/hardware_init.c",
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/app_services_init.c",
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/board_dcdc.c",
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/board_extflash.c"
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/board_extflash.c",
"${support_common_platform_dir}/ble/ble_function_mux.c"
]

if (is_debug) {
Expand Down Expand Up @@ -103,7 +108,7 @@ mcxw71_k32w1_executable("lock_app") {
"CONFIG_NETWORK_LAYER_BLE=1",
"CONFIG_THREAD_DEVICE_TYPE=kThreadDeviceType_SleepyEndDevice",
"CONFIG_OPERATIONAL_KEYSTORE=1",
"EXTERNAL_FACTORY_DATA_PROVIDER_HEADER=\"platform/nxp/common/legacy/FactoryDataProvider.h\"",
"EXTERNAL_FACTORY_DATA_PROVIDER_HEADER=\"platform/nxp/common/factory_data/legacy/FactoryDataProvider.h\"",
"CONFIG_APP_FREERTOS_OS=1",
]

Expand Down Expand Up @@ -143,6 +148,7 @@ mcxw71_k32w1_executable("lock_app") {
#"${common_example_dir}/clusters/source/ZclCallbacks.cpp",
"${common_example_dir}/device_callbacks/source/CommonDeviceCallbacks.cpp",
"${common_example_dir}/device_manager/source/CHIPDeviceManager.cpp",
"${common_example_dir}/operational_keystore/source/OperationalKeystoreS200.cpp",
"${example_platform_dir}/factory_data/source/AppFactoryDataExample.cpp",
"${common_example_dir}/icd/source/ICDUtil.cpp",
]
Expand All @@ -153,7 +159,7 @@ mcxw71_k32w1_executable("lock_app") {

if (chip_with_factory_data == 1) {
include_dirs += [
"${chip_root}/src/platform/nxp/common/legacy"
"${chip_root}/src/platform/nxp/common/factory_data/legacy"
]
deps += [ "${chip_root}/src/platform/nxp:nxp_factory_data" ]
}
Expand All @@ -174,7 +180,7 @@ mcxw71_k32w1_executable("lock_app") {

if (chip_enable_ota_requestor) {
defines += [
"CONFIG_CHIP_OTA_IMAGE_PROCESSOR_HEADER=\"platform/nxp/common/legacy/OTAImageProcessorImpl.h\"",
"CONFIG_CHIP_OTA_IMAGE_PROCESSOR_HEADER=\"platform/nxp/common/ota/OTAImageProcessorImpl.h\"",
# The status LED and the external flash CS pin are wired together. The OTA image writing may fail if used together.
"LED_MANAGER_ENABLE_STATUS_LED=0",
]
Expand All @@ -201,7 +207,6 @@ mcxw71_k32w1_executable("lock_app") {
sources += [
"${example_platform_dir}/button/ButtonManager.cpp",
"${example_platform_dir}/clusters/Identify.cpp",
"${example_platform_dir}/operational_keystore/OperationalKeystore.cpp"
]

if (chip_enable_ota_requestor) {
Expand Down
15 changes: 10 additions & 5 deletions examples/lock-app/nxp/mcxw71/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ assert(target_os == "freertos")

example_platform_dir = "${chip_root}/examples/platform/nxp/${nxp_platform}"
common_example_dir = "${chip_root}/examples/platform/nxp/common"
support_common_platform_dir = "${nxp_sdk_matter_support_root}/examples/platform/common"

mcxw71_k32w1_sdk("sdk") {
defines = []
Expand All @@ -52,6 +53,9 @@ mcxw71_k32w1_sdk("sdk") {
# Indicate the default path to OpenThreadConfig.h
include_dirs += [ "${example_platform_dir}/app/project_include/openthread" ]

# Indicate the default path to GATT database
include_dirs += [ "${support_common_platform_dir}/ble" ]

include_dirs += [
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1",
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/K32W1480"
Expand All @@ -66,7 +70,8 @@ mcxw71_k32w1_sdk("sdk") {
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/hardware_init.c",
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/app_services_init.c",
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/board_dcdc.c",
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/board_extflash.c"
"${nxp_sdk_root}/middleware/wireless/framework/boards/kw45_k32w1/board_extflash.c",
"${support_common_platform_dir}/ble/ble_function_mux.c"
]

if (is_debug) {
Expand Down Expand Up @@ -103,7 +108,7 @@ mcxw71_k32w1_executable("lock_app") {
"CONFIG_NETWORK_LAYER_BLE=1",
"CONFIG_THREAD_DEVICE_TYPE=kThreadDeviceType_SleepyEndDevice",
"CONFIG_OPERATIONAL_KEYSTORE=1",
"EXTERNAL_FACTORY_DATA_PROVIDER_HEADER=\"platform/nxp/common/legacy/FactoryDataProvider.h\"",
"EXTERNAL_FACTORY_DATA_PROVIDER_HEADER=\"platform/nxp/common/factory_data/legacy/FactoryDataProvider.h\"",
"CONFIG_APP_FREERTOS_OS=1",
]

Expand Down Expand Up @@ -143,6 +148,7 @@ mcxw71_k32w1_executable("lock_app") {
#"${common_example_dir}/clusters/source/ZclCallbacks.cpp",
"${common_example_dir}/device_callbacks/source/CommonDeviceCallbacks.cpp",
"${common_example_dir}/device_manager/source/CHIPDeviceManager.cpp",
"${common_example_dir}/operational_keystore/source/OperationalKeystoreS200.cpp",
"${example_platform_dir}/factory_data/source/AppFactoryDataExample.cpp",
"${common_example_dir}/icd/source/ICDUtil.cpp",
]
Expand All @@ -153,7 +159,7 @@ mcxw71_k32w1_executable("lock_app") {

if (chip_with_factory_data == 1) {
include_dirs += [
"${chip_root}/src/platform/nxp/common/legacy"
"${chip_root}/src/platform/nxp/common/factory_data/legacy"
]
deps += [ "${chip_root}/src/platform/nxp:nxp_factory_data" ]
}
Expand All @@ -174,7 +180,7 @@ mcxw71_k32w1_executable("lock_app") {

if (chip_enable_ota_requestor) {
defines += [
"CONFIG_CHIP_OTA_IMAGE_PROCESSOR_HEADER=\"platform/nxp/common/legacy/OTAImageProcessorImpl.h\"",
"CONFIG_CHIP_OTA_IMAGE_PROCESSOR_HEADER=\"platform/nxp/common/ota/OTAImageProcessorImpl.h\"",
# The status LED and the external flash CS pin are wired together. The OTA image writing may fail if used together.
"LED_MANAGER_ENABLE_STATUS_LED=0",
]
Expand All @@ -201,7 +207,6 @@ mcxw71_k32w1_executable("lock_app") {
sources += [
"${example_platform_dir}/button/ButtonManager.cpp",
"${example_platform_dir}/clusters/Identify.cpp",
"${example_platform_dir}/operational_keystore/OperationalKeystore.cpp"
]

if (chip_enable_ota_requestor) {
Expand Down

0 comments on commit 5612533

Please sign in to comment.