1#------------------------------------------------------------------------------- 2# Copyright (c) 2023-2024, Arm Limited. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#------------------------------------------------------------------------------- 7 8# This file is exported to NS side during CMake installation phase and renamed 9# to CMakeLists.txt. It instructs how to build a platform on non-secture side. 10# The structure and sources list are fully platform specific. 11 12add_library(platform_ns) 13 14target_sources(platform_ns 15 PRIVATE 16 arm_uart_drv.c 17 timer_cmsdk.c 18 Driver_USART.c 19 cmsis_core/startup_an519.c 20 cmsis_core/system_core_init.c 21 retarget/platform_retarget_dev.c 22) 23 24target_include_directories(platform_ns 25 PRIVATE 26 retarget 27 PUBLIC 28 include 29 ext/cmsis/Include 30 ext/cmsis/Include/m-profile 31 cmsis_core 32 ext/common 33) 34 35target_compile_definitions(platform_ns 36 PRIVATE 37 $<$<BOOL:${CONFIG_ENABLE_NS_UART_TX_RX_CONTROL}>:UART_TX_RX_CONTROL_ENABLED> 38) 39 40# Include region_defs.h and flash_layout.h 41target_include_directories(platform_region_defs 42 INTERFACE 43 partition 44) 45