Kevin Peng | af60229 | 2020-10-20 17:49:52 +0800 | [diff] [blame^] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | cmake_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. |
| 14 | if (TFM_MULTI_CORE_TOPOLOGY) |
| 15 | include(${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload_ns.cmake) |
| 16 | endif() |
| 17 | |
| 18 | ############################# Ns Log ########################################### |
| 19 | add_library(tfm_ns_log STATIC EXCLUDE_FROM_ALL) |
| 20 | |
| 21 | target_sources(tfm_ns_log |
| 22 | PRIVATE |
| 23 | tfm_log_raw.c |
| 24 | ) |
| 25 | |
| 26 | target_include_directories(tfm_ns_log |
| 27 | PUBLIC |
| 28 | . |
| 29 | ) |
| 30 | |
| 31 | target_link_libraries(tfm_ns_log |
| 32 | PRIVATE |
| 33 | platform_ns |
| 34 | ) |