Remove Vendor Tools dependency when AFR_METADATA_MODE is enabled.
@@ -755,6 +755,7 @@ function(cy_kit_generate)
"${MCUBOOT_DIR}/mcuboot_header"
)
+ if(NOT AFR_METADATA_MODE)
if(CY_TFM_PSA)
# TFM uses a different linker script and signing tool
# see next if() section after endif(CY_ALTERNATE_APP)
@@ -786,6 +787,7 @@ function(cy_kit_generate)
COMMAND "${SIGN_SCRIPT_FILE_PATH}"
)
endif()
+ endif()
else()
target_include_directories(${AFR_TARGET_APP_NAME} PUBLIC
"${MCUBOOT_DIR}/sysflash"
@@ -793,7 +795,7 @@ function(cy_kit_generate)
endif(OTA_SUPPORT)
- if(CY_TFM_PSA)
+ if(CY_TFM_PSA AND (NOT AFR_METADATA_MODE))
set(CY_AWS_ELF "${CMAKE_BINARY_DIR}/aws.elf")
set(CY_CM0_IMG "${CMAKE_BINARY_DIR}/cm0.hex")
set(CY_CM4_IMG "${CMAKE_BINARY_DIR}/cm4.hex")
