1#------------------------------------------------------------------------------- 2# Copyright (c) 2020, Nordic Semiconductor ASA. 3# Copyright (c) 2021, Laird Connectivity 4# Copyright (c) 2022, Arm Limited. All rights reserved. 5# 6# SPDX-License-Identifier: BSD-3-Clause 7# 8#------------------------------------------------------------------------------- 9 10cmake_policy(SET CMP0076 NEW) 11set(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}) 12set(NRF_BOARD_SELECTED True) 13 14add_subdirectory(../common/bl5340 bl5340) 15 16target_include_directories(platform_region_defs 17 INTERFACE 18 ../common/bl5340/partition 19) 20 21target_sources(platform_s 22 PRIVATE 23 $<$<BOOL:${TFM_PARTITION_PLATFORM}>:${CMAKE_CURRENT_SOURCE_DIR}/services/src/tfm_platform_system.c> 24) 25 26target_include_directories(platform_s 27 PUBLIC 28 . 29 ../common/bl5340/partition 30 services/include 31) 32 33target_include_directories(platform_ns 34 PUBLIC 35 . 36) 37 38if(BL2) 39 target_include_directories(platform_bl2 40 PUBLIC 41 ../common/bl5340/partition 42 PRIVATE 43 . 44 ) 45endif() 46 47if (TFM_PARTITION_PLATFORM) 48install(FILES services/include/tfm_ioctl_api.h 49 DESTINATION ${INSTALL_INTERFACE_INC_DIR}) 50endif() 51 52#========================= tfm_spm ============================================# 53 54target_sources(tfm_spm 55 PRIVATE 56 tfm_hal_platform.c 57) 58