blob: ab6e1790383d31e7c2cfb8a4bd75879d1a3a364f [file] [log] [blame]
Kevin Pengaf602292020-10-20 17:49:52 +08001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8cmake_minimum_required(VERSION 3.13)
9
10# For multi-core projects, the NS app can be run on a different CPU to the
11# Secure code. To facilitate this, we once again reload the compiler to load the
12# setting for the NS CPU. Cmake settings are directory scoped so this affects
13# anything loaded from or declared in this dir.
14if (TFM_MULTI_CORE_TOPOLOGY)
15 include(${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload_ns.cmake)
16endif()
17
18############################# Ns Log ###########################################
19add_library(tfm_ns_log STATIC EXCLUDE_FROM_ALL)
20
21target_sources(tfm_ns_log
22 PRIVATE
23 tfm_log_raw.c
24)
25
26target_include_directories(tfm_ns_log
27 PUBLIC
28 .
29)
30
31target_link_libraries(tfm_ns_log
32 PRIVATE
33 platform_ns
34)
David Hu73f259b2020-12-07 10:58:41 +080035
36################################ S Log #########################################
37add_library(tfm_s_log STATIC EXCLUDE_FROM_ALL)
38
39target_sources(tfm_s_log
40 PRIVATE
41 ${CMAKE_SOURCE_DIR}/interface/src/log/tfm_log_raw.c
42)
43
44target_include_directories(tfm_s_log
45 PUBLIC
46 ${CMAKE_SOURCE_DIR}/interface/include/
47 ${CMAKE_SOURCE_DIR}/interface/include/log
48)
49
50target_link_libraries(tfm_s_log
51 PRIVATE
52 platform_s
53)