Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2022, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | cmake_minimum_required(VERSION 3.18 FATAL_ERROR) |
| 8 | set(TS_PLATFORM "arm/fvp/fvp_base_revc-2xaemv8a" CACHE STRING "Target platform location.") |
| 9 | include(../../deployment.cmake REQUIRED) |
| 10 | include(${TS_ROOT}/environments/opteesp/env.cmake) |
| 11 | |
| 12 | project(trusted-services LANGUAGES C ASM) |
| 13 | add_executable(spm-test3) |
| 14 | |
Gyorgy Szing | 3e3db70 | 2023-07-21 14:18:19 +0200 | [diff] [blame] | 15 | set(SP_BIN_UUID_CANON "23eb0100-e32a-4497-9052-2f11e584afa6") |
Jelle Sels | 4960c41 | 2023-02-01 09:43:24 +0100 | [diff] [blame] | 16 | set(SP_FFA_UUID_CANON "${SP_BIN_UUID_CANON}") |
| 17 | set(SP_FFA_UUID_CANON "23eb0100-e32a-4497-9052-2f11e584afa6") |
Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 18 | set(SP_NUMBER 3) |
Gyorgy Szing | 8a1e7f4 | 2023-07-26 18:26:48 +0200 | [diff] [blame] | 19 | set(SP_HEAP_SIZE "32 * 1024" CACHE STRING "SP heap size in bytes") |
| 20 | set(TRACE_PREFIX "SPM-TEST${SP_NUMBER}" CACHE STRING "Trace prefix") |
| 21 | |
Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 22 | #------------------------------------------------------------------------------- |
| 23 | # Components that are spm-test specific to deployment in the opteesp |
| 24 | # environment. |
| 25 | #------------------------------------------------------------------------------- |
| 26 | add_components(TARGET "spm-test${SP_NUMBER}" |
| 27 | BASE_DIR ${TS_ROOT} |
| 28 | COMPONENTS |
Jelle Sels | 4960c41 | 2023-02-01 09:43:24 +0100 | [diff] [blame] | 29 | "environments/opteesp" |
Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 30 | "components/common/fdt" |
| 31 | "components/common/trace" |
| 32 | "components/common/utils" |
| 33 | "components/config/loader/sp" |
| 34 | "components/messaging/ffa/libsp" |
Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 35 | ) |
Gyorgy Szing | 8a1e7f4 | 2023-07-26 18:26:48 +0200 | [diff] [blame] | 36 | |
| 37 | include(${TS_ROOT}/components/service/spm_test/spm_test.cmake) |