Arch test: Add dependencies on psa_crypto_config
For psa_arch_tests (for crypto and initial attestation),
link val_nspe, pal_nspe & test_combine targets to psa_crypto_config.
Signed-off-by: Maulik Patel <maulik.patel@arm.com>
Change-Id: I3d4426597f2c6b59885e2e1ce753e0c1b445447c
diff --git a/tests_psa_arch/CMakeLists.txt b/tests_psa_arch/CMakeLists.txt
index eecac85..907c803 100644
--- a/tests_psa_arch/CMakeLists.txt
+++ b/tests_psa_arch/CMakeLists.txt
@@ -93,13 +93,14 @@
add_subdirectory(${PSA_ARCH_TESTS_PATH}/api-tests ${CMAKE_BINARY_DIR}/api-tests)
-if ("${TEST_PSA_API}" STREQUAL "CRYPTO")
+if((${TEST_PSA_API} STREQUAL "CRYPTO") OR (${TEST_PSA_API} STREQUAL "INITIAL_ATTESTATION"))
# psa_crypto_config needs to have visibility of the platform includes
target_link_libraries(psa_crypto_config INTERFACE platform_ns)
- # val_nspe/pal_nspe targets are calling PSA Crypto APIs so they need
+ # val_nspe/pal_nspe/test_combine targets are calling PSA Crypto APIs so they need
# to include the psa_crypto_config which exports the config file defs
target_link_libraries(val_nspe PUBLIC psa_crypto_config)
target_link_libraries(pal_nspe PUBLIC psa_crypto_config)
+ target_link_libraries(test_combine PUBLIC psa_crypto_config)
endif()
############################# TFM NS main app ##################################