Julian Hall | b1d5d5f | 2020-11-23 18:23:48 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Julian Hall | f7d55ff | 2021-11-22 13:57:54 +0000 | [diff] [blame] | 2 | # Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. |
Julian Hall | b1d5d5f | 2020-11-23 18:23:48 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | cmake_minimum_required(VERSION 3.16) |
| 8 | include(../../deployment.cmake REQUIRED) |
| 9 | |
| 10 | #------------------------------------------------------------------------------- |
| 11 | # The CMakeLists.txt for building the libts deployment for arm-linux |
| 12 | # |
| 13 | # Used for building the libts library for the arm-linux enviroment. Used for |
| 14 | # locating and accessing services from a Linux userspace client. Service |
| 15 | # instances can be located in any supported secure processing enviroment. |
| 16 | #------------------------------------------------------------------------------- |
| 17 | include(${TS_ROOT}/environments/arm-linux/env_shared_lib.cmake) |
| 18 | project(trusted-services LANGUAGES CXX C) |
| 19 | add_library(ts SHARED) |
| 20 | target_include_directories(ts PRIVATE "${TOP_LEVEL_INCLUDE_DIRS}") |
| 21 | |
| 22 | #------------------------------------------------------------------------------- |
| 23 | # Components that are specific to deployment in the arm-linux environment. |
| 24 | # |
| 25 | #------------------------------------------------------------------------------- |
| 26 | add_components( |
| 27 | TARGET "ts" |
| 28 | BASE_DIR ${TS_ROOT} |
| 29 | COMPONENTS |
Julian Hall | f7d55ff | 2021-11-22 13:57:54 +0000 | [diff] [blame] | 30 | "components/common/utils" |
Julian Hall | b1d5d5f | 2020-11-23 18:23:48 +0100 | [diff] [blame] | 31 | "components/rpc/ffarpc/caller/linux" |
Julian Hall | f7d55ff | 2021-11-22 13:57:54 +0000 | [diff] [blame] | 32 | "components/rpc/mm_communicate/caller/linux" |
Julian Hall | b1d5d5f | 2020-11-23 18:23:48 +0100 | [diff] [blame] | 33 | "components/service/locator/linux" |
| 34 | "components/service/locator/linux/ffa" |
Julian Hall | 51c8aa8 | 2021-11-23 09:13:35 +0000 | [diff] [blame] | 35 | "components/service/locator/linux/mm_communicate" |
Julian Hall | b1d5d5f | 2020-11-23 18:23:48 +0100 | [diff] [blame] | 36 | "components/common/uuid" |
| 37 | ) |
| 38 | |
| 39 | #------------------------------------------------------------------------------- |
| 40 | # Extend with components that are common across all deployments of |
| 41 | # libts |
| 42 | # |
| 43 | #------------------------------------------------------------------------------- |
| 44 | include(../libts.cmake REQUIRED) |
| 45 | |
| 46 | #------------------------------------------------------------------------------- |
| 47 | # Define library options and dependencies. |
| 48 | # |
| 49 | #------------------------------------------------------------------------------- |
| 50 | env_set_link_options(TGT ts) |
Julian Hall | f7d55ff | 2021-11-22 13:57:54 +0000 | [diff] [blame] | 51 | target_link_libraries(ts PRIVATE gcc) |