Julian Hall | 2feec56 | 2022-09-07 09:22:45 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Balint Dobszay | ff8e0cd | 2022-08-11 15:07:52 +0200 | [diff] [blame] | 2 | # Copyright (c) 2022-2023, Arm Limited and Contributors. All rights reserved. |
Julian Hall | 2feec56 | 2022-09-07 09:22:45 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | # Baremetal driver test cases to test paltform driver operation from within |
| 7 | # a secure execution environment. |
| 8 | #------------------------------------------------------------------------------- |
| 9 | |
| 10 | #------------------------------------------------------------------------------- |
| 11 | # Components-under-test and test cases baremetal platform tests. |
| 12 | # |
| 13 | #------------------------------------------------------------------------------- |
| 14 | add_components(TARGET "env-test" |
| 15 | BASE_DIR ${TS_ROOT} |
| 16 | COMPONENTS |
Julian Hall | 82ce62a | 2022-09-13 09:00:45 +0100 | [diff] [blame] | 17 | "components/common/uuid" |
Julian Hall | 2feec56 | 2022-09-07 09:22:45 +0100 | [diff] [blame] | 18 | "components/service/crypto/backend/mbedcrypto" |
| 19 | "components/service/crypto/backend/mbedcrypto/trng_adapter/platform" |
| 20 | "components/service/crypto/backend/mbedcrypto/trng_adapter/test" |
| 21 | "components/service/secure_storage/include" |
| 22 | "components/service/secure_storage/frontend/psa/its" |
| 23 | "components/service/secure_storage/backend/secure_storage_client" |
| 24 | "components/config/test/sp" |
Imre Kis | 4fe0c10 | 2023-07-05 18:14:21 +0200 | [diff] [blame] | 25 | "components/rpc/common/caller" |
Julian Hall | 82ce62a | 2022-09-13 09:00:45 +0100 | [diff] [blame] | 26 | "components/service/block_storage/block_store" |
| 27 | "components/service/block_storage/block_store/device" |
| 28 | "components/service/block_storage/block_store/device/semihosting" |
| 29 | "components/service/block_storage/block_store/device/semihosting/test" |
Gabor Ambrus | 385cfff | 2023-08-14 22:48:37 +0200 | [diff] [blame^] | 30 | "components/service/log/backend/uart" |
| 31 | "components/service/log/backend/uart/uart_adapter/platform" |
| 32 | "components/service/log/backend/uart/uart_adapter/test" |
Julian Hall | 2feec56 | 2022-09-07 09:22:45 +0100 | [diff] [blame] | 33 | ) |
| 34 | |
| 35 | target_sources(env-test PRIVATE |
| 36 | ${CMAKE_CURRENT_LIST_DIR}/registration/baremetal_tests.c |
| 37 | ) |
| 38 | |
| 39 | #------------------------------------------------------------------------------- |
| 40 | # Components used from external projects |
| 41 | # |
| 42 | #------------------------------------------------------------------------------- |
| 43 | |
| 44 | # Mbed TLS provides libmbedcrypto |
Gabor Toth | d199b93 | 2024-02-06 08:23:35 +0100 | [diff] [blame] | 45 | set(MBEDTLS_USER_CONFIG_FILE "${TS_ROOT}/external/MbedTLS/config/libmbed_only.h" |
| 46 | CACHE STRING "Configuration file for Mbed TLS" FORCE) |
Julian Hall | 2feec56 | 2022-09-07 09:22:45 +0100 | [diff] [blame] | 47 | include(${TS_ROOT}/external/MbedTLS/MbedTLS.cmake) |
Balint Dobszay | ff8e0cd | 2022-08-11 15:07:52 +0200 | [diff] [blame] | 48 | target_link_libraries(env-test PRIVATE MbedTLS::mbedcrypto) |
Julian Hall | 2feec56 | 2022-09-07 09:22:45 +0100 | [diff] [blame] | 49 | |
Balint Dobszay | ecaf44c | 2024-04-02 17:13:38 +0200 | [diff] [blame] | 50 | # Provide the config path to mbedtls |
| 51 | target_compile_definitions(env-test |
| 52 | PRIVATE |
| 53 | MBEDTLS_USER_CONFIG_FILE="${MBEDTLS_USER_CONFIG_FILE}" |
| 54 | ) |
| 55 | |
Julian Hall | 2feec56 | 2022-09-07 09:22:45 +0100 | [diff] [blame] | 56 | #------------------------------------------------------------------------------- |
| 57 | # This test suite depends on platform specific drivers |
| 58 | # |
| 59 | #------------------------------------------------------------------------------- |
Julian Hall | 82ce62a | 2022-09-13 09:00:45 +0100 | [diff] [blame] | 60 | add_platform(TARGET "env-test") |