julhal01 | 37e1aea | 2021-02-09 15:22:20 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Imre Kis | d0ed5c2 | 2021-12-15 17:05:47 +0100 | [diff] [blame^] | 2 | # Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved. |
julhal01 | 37e1aea | 2021-02-09 15:22:20 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | #------------------------------------------------------------------------------- |
| 9 | # The base build file shared between deployments of 'env-test' for |
| 10 | # different environments. Used for running tests that validate hardwarw |
| 11 | # backed services available from within a secure execution environment. |
| 12 | #------------------------------------------------------------------------------- |
| 13 | |
| 14 | #------------------------------------------------------------------------------- |
julhal01 | 1260f10 | 2021-02-15 17:34:08 +0000 | [diff] [blame] | 15 | # Components that are common across all deployments |
julhal01 | 37e1aea | 2021-02-09 15:22:20 +0000 | [diff] [blame] | 16 | # |
| 17 | #------------------------------------------------------------------------------- |
| 18 | add_components( |
Julian Hall | 7048d30 | 2021-06-03 16:07:28 +0100 | [diff] [blame] | 19 | TARGET "env-test" |
julhal01 | 37e1aea | 2021-02-09 15:22:20 +0000 | [diff] [blame] | 20 | BASE_DIR ${TS_ROOT} |
| 21 | COMPONENTS |
Imre Kis | d0ed5c2 | 2021-12-15 17:05:47 +0100 | [diff] [blame^] | 22 | "components/common/fdt" |
julhal01 | 37e1aea | 2021-02-09 15:22:20 +0000 | [diff] [blame] | 23 | "components/common/tlv" |
| 24 | "components/config/ramstore" |
| 25 | "components/rpc/common/interface" |
| 26 | "components/rpc/common/caller" |
Julian Hall | a7e76c8 | 2021-04-14 11:12:11 +0100 | [diff] [blame] | 27 | "components/service/common/include" |
Julian Hall | 99a57e3 | 2021-07-28 14:18:50 +0100 | [diff] [blame] | 28 | "components/service/common/client" |
julhal01 | 37e1aea | 2021-02-09 15:22:20 +0000 | [diff] [blame] | 29 | "components/service/common/provider" |
| 30 | "components/service/test_runner/provider" |
| 31 | "components/service/test_runner/provider/serializer/packed-c" |
| 32 | "components/service/test_runner/provider/backend/null" |
| 33 | "components/service/test_runner/provider/backend/simple_c" |
Julian Hall | 9061e6c | 2021-06-29 14:24:20 +0100 | [diff] [blame] | 34 | "components/service/crypto/backend/mbedcrypto" |
| 35 | "components/service/crypto/backend/mbedcrypto/trng_adapter/platform" |
| 36 | "components/service/crypto/backend/mbedcrypto/trng_adapter/test" |
Julian Hall | a7e76c8 | 2021-04-14 11:12:11 +0100 | [diff] [blame] | 37 | "components/service/secure_storage/include" |
julhal01 | 1260f10 | 2021-02-15 17:34:08 +0000 | [diff] [blame] | 38 | "components/service/secure_storage/frontend/psa/its" |
| 39 | "components/service/secure_storage/backend/secure_storage_client" |
julhal01 | 37e1aea | 2021-02-09 15:22:20 +0000 | [diff] [blame] | 40 | "protocols/rpc/common/packed-c" |
| 41 | ) |
| 42 | |
| 43 | #------------------------------------------------------------------------------- |
Imre Kis | d0ed5c2 | 2021-12-15 17:05:47 +0100 | [diff] [blame^] | 44 | # Deployment specific source files |
| 45 | #------------------------------------------------------------------------------- |
| 46 | target_sources(env-test PRIVATE |
| 47 | ${CMAKE_CURRENT_LIST_DIR}/common/env_test.c |
| 48 | ${CMAKE_CURRENT_LIST_DIR}/common/env_test_tests.c |
| 49 | ) |
| 50 | |
| 51 | target_include_directories(env-test PRIVATE |
| 52 | ${TS_ROOT} |
| 53 | ${TS_ROOT}/components |
| 54 | ) |
| 55 | |
| 56 | #------------------------------------------------------------------------------- |
julhal01 | 37e1aea | 2021-02-09 15:22:20 +0000 | [diff] [blame] | 57 | # Components used from external projects |
| 58 | # |
| 59 | #------------------------------------------------------------------------------- |
| 60 | |
Imre Kis | 23583e3 | 2021-10-22 14:54:51 +0200 | [diff] [blame] | 61 | # Get libc include dir |
| 62 | get_property(LIBC_INCLUDE_PATH TARGET c PROPERTY INTERFACE_INCLUDE_DIRECTORIES) |
| 63 | |
Balint Dobszay | 3c52ce6 | 2021-05-10 16:27:18 +0200 | [diff] [blame] | 64 | # Mbed TLS provides libmbedcrypto |
Imre Kis | 23583e3 | 2021-10-22 14:54:51 +0200 | [diff] [blame] | 65 | list(APPEND MBEDTLS_EXTRA_INCLUDES ${LIBC_INCLUDE_PATH}) |
Balint Dobszay | 3c52ce6 | 2021-05-10 16:27:18 +0200 | [diff] [blame] | 66 | include(${TS_ROOT}/external/MbedTLS/MbedTLS.cmake) |
Julian Hall | 7048d30 | 2021-06-03 16:07:28 +0100 | [diff] [blame] | 67 | target_link_libraries(env-test PRIVATE mbedcrypto) |