blob: d373e19bd6a4f02adf07d456c1e67a7139369b33 [file] [log] [blame]
Julian Hallb57aa0d2021-07-13 10:34:59 +01001#-------------------------------------------------------------------------------
Gabor Toth6072c302023-04-20 14:38:37 +02002# Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.
Julian Hallb57aa0d2021-07-13 10:34:59 +01003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8#-------------------------------------------------------------------------------
9# Define test suite to build. Used by the psa_arch_tests external component
10# to configure what test suite gets built.
11#-------------------------------------------------------------------------------
12set(TS_ARCH_TEST_SUITE INTERNAL_TRUSTED_STORAGE CACHE STRING "Arch test suite")
13
14#-------------------------------------------------------------------------------
15# The arch test build system puts its build output under a test suite specific
16# subdirectory. The subdirectory name is different from the test suite name
17# so an additional define is needed to obtain the built library.
18#-------------------------------------------------------------------------------
19set(TS_ARCH_TEST_BUILD_SUBDIR storage CACHE STRING "Arch test build subdirectory")
20
21#-------------------------------------------------------------------------------
Gabor Toth6072c302023-04-20 14:38:37 +020022# Internal trusted storage specific components
Julian Hallb57aa0d2021-07-13 10:34:59 +010023#
24#-------------------------------------------------------------------------------
25add_components(
Gyorgy Szing49bfd5a2021-11-23 09:39:53 +010026 TARGET "${PROJECT_NAME}"
Julian Hallb57aa0d2021-07-13 10:34:59 +010027 BASE_DIR ${TS_ROOT}
28 COMPONENTS
29 "components/service/secure_storage/include"
30 "components/service/secure_storage/frontend/psa/its"
31 "components/service/secure_storage/backend/secure_storage_client"
32)
33
Gyorgy Szing49bfd5a2021-11-23 09:39:53 +010034target_sources(${PROJECT_NAME} PRIVATE
Julian Hallb57aa0d2021-07-13 10:34:59 +010035 ${TS_ROOT}/deployments/psa-api-test/internal_trusted_storage/its_locator.c
36)
37
38#-------------------------------------------------------------------------------
39# Extend with components that are common across all deployments of
40# psa-api-test
41#-------------------------------------------------------------------------------
42include(../../psa-api-test.cmake REQUIRED)