#------------------------------------------------------------------------------- # Copyright (c) 2020-2022, Arm Limited. All rights reserved. # Copyright (c) 2023 Cypress Semiconductor Corporation (an Infineon company) # or an affiliate of Cypress Semiconductor Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # #------------------------------------------------------------------------------- cmake_minimum_required(VERSION 3.15) add_library(tfm_sprt STATIC) target_include_directories(tfm_sprt PUBLIC $ ${CMAKE_SOURCE_DIR}/secure_fw/include ) target_sources(tfm_sprt PUBLIC $<$:${CMAKE_SOURCE_DIR}/platform/ext/common/syscalls_stub.c> PRIVATE ./crt_memcmp.c ./crt_memmove.c ./crt_strnlen.c ./service_api.c ${CMAKE_SOURCE_DIR}/secure_fw/shared/crt_memcpy.c ${CMAKE_SOURCE_DIR}/secure_fw/shared/crt_memset.c $<$:./sprt_partition_metadata_indicator.c> $<$:./sfn_common_thread.c> $<$:./psa_api_ipc.c> $<$:./tfm_sp_log_raw.c> $<$:${CMAKE_SOURCE_DIR}/platform/ext/common/tfm_hal_sp_logdev_periph.c> ) target_link_libraries(tfm_sprt PUBLIC psa_interface tfm_spm_defs tfm_partition_defs platform_s PRIVATE tfm_spm ) target_compile_definitions(tfm_partition_defs INTERFACE TFM_PARTITION_LOG_LEVEL=${TFM_PARTITION_LOG_LEVEL} $<$:TFM_SP_LOG_RAW_ENABLED> ) target_include_directories(tfm_sprt INTERFACE $:${CMAKE_CURRENT_SOURCE_DIR}/include>> )