Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Jelle Sels | 6c19b4f | 2022-10-18 16:40:43 +0200 | [diff] [blame] | 2 | # Copyright (c) 2022-2023, Arm Limited and Contributors. All rights reserved. |
Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 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-test2) |
| 14 | |
Gyorgy Szing | 3e3db70 | 2023-07-21 14:18:19 +0200 | [diff] [blame] | 15 | set(SP_BIN_UUID_CANON "7817164c-c40c-4d1a-867a-9bb2278cf41a") |
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 "7817164c-c40c-4d1a-867a-9bb2278cf41a") |
Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 18 | set(SP_NUMBER 2) |
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") |
Gabor Toth | 1b0c11a | 2024-04-05 11:43:55 +0200 | [diff] [blame] | 20 | set(SP_BOOT_ORDER "0" CACHE STRING "Boot order of the SP") |
Gyorgy Szing | 8a1e7f4 | 2023-07-26 18:26:48 +0200 | [diff] [blame] | 21 | set(TRACE_PREFIX "SPM-TEST${SP_NUMBER}" CACHE STRING "Trace prefix") |
Imre Kis | 033d51a | 2024-01-15 17:19:36 +0100 | [diff] [blame] | 22 | # SPM test SP2 is set to use FF-A v1.0 to cover v1.0 support as well |
| 23 | set(FFA_VERSION 0x00010000 CACHE STRING "The supported FF-A protocol's version: (major << 16) | minor") |
Gyorgy Szing | 8a1e7f4 | 2023-07-26 18:26:48 +0200 | [diff] [blame] | 24 | |
Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 25 | #------------------------------------------------------------------------------- |
| 26 | # Components that are spm-test specific to deployment in the opteesp |
| 27 | # environment. |
| 28 | #------------------------------------------------------------------------------- |
| 29 | add_components(TARGET "spm-test${SP_NUMBER}" |
| 30 | BASE_DIR ${TS_ROOT} |
| 31 | COMPONENTS |
Jelle Sels | 4960c41 | 2023-02-01 09:43:24 +0100 | [diff] [blame] | 32 | "environments/opteesp" |
Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 33 | "components/common/fdt" |
| 34 | "components/common/trace" |
| 35 | "components/common/utils" |
Jelle Sels | 6c19b4f | 2022-10-18 16:40:43 +0200 | [diff] [blame] | 36 | "components/config/ramstore" |
Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 37 | "components/config/loader/sp" |
| 38 | "components/messaging/ffa/libsp" |
Jelle Sels | 0375666 | 2021-05-20 10:41:57 +0200 | [diff] [blame] | 39 | ) |
Gyorgy Szing | 8a1e7f4 | 2023-07-26 18:26:48 +0200 | [diff] [blame] | 40 | |
| 41 | include(${TS_ROOT}/components/service/spm_test/spm_test.cmake) |