Anton Komlev | c0ad604 | 2023-08-29 18:23:26 +0100 | [diff] [blame^] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2023, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | # |
| 8 | # This CMake script used in a split build only. In the legacy 'sinlge' build |
| 9 | # this file is ignoed. Please don't be confused. |
| 10 | # |
| 11 | cmake_minimum_required(VERSION 3.15) |
| 12 | |
| 13 | # This is important to add this SPE subdirectory at first as it |
| 14 | # brings configuration from TF-M build |
| 15 | add_subdirectory(${CONFIG_SPE_PATH} ${CMAKE_BINARY_DIR}/spe) |
| 16 | |
| 17 | add_subdirectory(log) |
| 18 | add_subdirectory(CMSIS) |
| 19 | add_subdirectory(os_wrapper) |
| 20 | |
| 21 | add_library(tfm_test_broker STATIC |
| 22 | main_ns.c |
| 23 | ) |
| 24 | |
| 25 | target_include_directories(tfm_test_broker PUBLIC .) |
| 26 | |
| 27 | target_link_libraries(tfm_test_broker |
| 28 | PUBLIC |
| 29 | tfm_api_ns |
| 30 | tfm_log |
| 31 | os_wrapper |
| 32 | ) |
| 33 | |
| 34 | add_subdirectory(nsid_manager) |
| 35 | target_link_libraries(tfm_test_broker PUBLIC tfm_nsid_manager) |
| 36 | |
| 37 | if (TFM_PARTITION_NS_AGENT_MAILBOX) |
| 38 | add_subdirectory(multi_core) |
| 39 | target_link_libraries(tfm_test_broker PUBLIC ns_multi_core) |
| 40 | endif() |
| 41 | |
| 42 | # platform_region_defs needed by PS tests |
| 43 | add_library(platform_region_defs INTERFACE) |
| 44 | |
| 45 | |
| 46 | |