#------------------------------------------------------------------------------- # Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # Define test suite to build. Used by the psa_arch_tests external component # to configure what test suite gets built. #------------------------------------------------------------------------------- set(TS_ARCH_TEST_SUITE INITIAL_ATTESTATION CACHE STRING "Arch test suite") #------------------------------------------------------------------------------- # Set additional defines needed for build. #------------------------------------------------------------------------------- list(APPEND PSA_ARCH_TEST_EXTERNAL_DEFS -DPSA_ALG_MD4=0x02000002 -DPLATFORM_HAS_ATTEST_PK) #------------------------------------------------------------------------------- # The arch test build system puts its build output under a test suite specific # subdirectory. The subdirectory name is different from the test suite name # so an additional define is needed to obtain the built library. #------------------------------------------------------------------------------- set(TS_ARCH_TEST_BUILD_SUBDIR initial_attestation CACHE STRING "Arch test build subdirectory") #------------------------------------------------------------------------------- # Attestation specific components. # #------------------------------------------------------------------------------- target_sources(${PROJECT_NAME} PRIVATE ${TS_ROOT}/deployments/psa-api-test/initial_attestation/iat.c ) add_components(TARGET ${PROJECT_NAME} BASE_DIR ${TS_ROOT} COMPONENTS "components/service/common/include" "components/service/attestation/include" "components/service/crypto/include" ) # Use Mbed TLS to provide the psa crypto api interface files set(PSA_CRYPTO_API_INCLUDE ${MBEDTLS_PUBLIC_INCLUDE_PATH}) #------------------------------------------------------------------------------- # Advertise PSA API include paths to PSA Arch tests # #------------------------------------------------------------------------------- list(APPEND PSA_ARCH_TESTS_EXTERNAL_INCLUDE_PATHS ${PSA_CRYPTO_API_INCLUDE}) list(APPEND PSA_ARCH_TESTS_EXTERNAL_INCLUDE_PATHS ${PSA_ATTESTATION_API_INCLUDE}) list(APPEND PSA_ARCH_TESTS_EXTERNAL_INCLUDE_PATHS ${PSA_COMMON_INCLUDE}) #------------------------------------------------------------------------------- # Extend with components that are common across all deployments of # psa-api-test #------------------------------------------------------------------------------- include(../../psa-api-test.cmake REQUIRED)