Julian Hall | b57aa0d | 2021-07-13 10:34:59 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Gabor Toth | 6072c30 | 2023-04-20 14:38:37 +0200 | [diff] [blame] | 2 | # Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved. |
Julian Hall | b57aa0d | 2021-07-13 10:34:59 +0100 | [diff] [blame] | 3 | # |
| 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 | #------------------------------------------------------------------------------- |
| 12 | set(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 | #------------------------------------------------------------------------------- |
| 19 | set(TS_ARCH_TEST_BUILD_SUBDIR storage CACHE STRING "Arch test build subdirectory") |
| 20 | |
| 21 | #------------------------------------------------------------------------------- |
Gabor Toth | 6072c30 | 2023-04-20 14:38:37 +0200 | [diff] [blame] | 22 | # Internal trusted storage specific components |
Julian Hall | b57aa0d | 2021-07-13 10:34:59 +0100 | [diff] [blame] | 23 | # |
| 24 | #------------------------------------------------------------------------------- |
Gabor Toth | 6df91b5 | 2023-05-15 14:17:16 +0200 | [diff] [blame] | 25 | target_sources(${PROJECT_NAME} PRIVATE |
| 26 | ${TS_ROOT}/deployments/psa-api-test/internal_trusted_storage/its.c |
Julian Hall | b57aa0d | 2021-07-13 10:34:59 +0100 | [diff] [blame] | 27 | ) |
| 28 | |
Gabor Toth | 6df91b5 | 2023-05-15 14:17:16 +0200 | [diff] [blame] | 29 | add_components(TARGET ${PROJECT_NAME} |
| 30 | BASE_DIR ${TS_ROOT} |
| 31 | COMPONENTS |
| 32 | "components/service/common/include" |
| 33 | "components/service/secure_storage/include" |
Julian Hall | b57aa0d | 2021-07-13 10:34:59 +0100 | [diff] [blame] | 34 | ) |
| 35 | |
| 36 | #------------------------------------------------------------------------------- |
| 37 | # Extend with components that are common across all deployments of |
| 38 | # psa-api-test |
| 39 | #------------------------------------------------------------------------------- |
| 40 | include(../../psa-api-test.cmake REQUIRED) |