blob: 19934287e87821eaae78c4600b7ff457be2fad56 [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)