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 Device/Source/startup_musca.c 17 Device/Source/system_core_init.c 18 Device/Source/device_definition.c 19 Native_Driver/timer_cmsdk_drv.c 20 Driver_USART.c 21 uart_pl011_drv.c 22) 23 24target_include_directories(platform_ns 25 PUBLIC 26 include 27 ext/cmsis/Include 28 ext/cmsis/Include/m-profile 29 ext/common 30 ext/driver 31 Native_Driver 32 Device/Include 33 Device/Config 34 CMSIS_Driver/Config 35 partition 36) 37 38target_compile_definitions(platform_ns 39 PRIVATE 40 $<$<BOOL:${CONFIG_ENABLE_NS_UART_TX_RX_CONTROL}>:UART_TX_RX_CONTROL_ENABLED> 41) 42 43# Include region_defs.h and flash_layout.h 44target_include_directories(platform_region_defs 45 INTERFACE 46 partition 47) 48