1#-------------------------------------------------------------------------------
2# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
3# Copyright (c) 2021-2023 Cypress Semiconductor Corporation (an Infineon company)
4# or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
5#
6# SPDX-License-Identifier: BSD-3-Clause
7#
8#-------------------------------------------------------------------------------
9
10if (NOT CONFIG_TFM_FLIH_API AND NOT CONFIG_TFM_SLIH_API AND
11    NOT TFM_MULTI_CORE_TOPOLOGY)
12    return()
13endif()
14
15cmake_minimum_required(VERSION 3.21)
16
17target_sources(tfm_spm
18    PRIVATE
19        idle_partition.c
20)
21
22target_sources(tfm_partitions
23    INTERFACE
24        ${CMAKE_CURRENT_SOURCE_DIR}/load_info_idle_sp.c
25)
26
27target_compile_definitions(tfm_config
28    INTERFACE
29        TFM_PARTITION_IDLE
30)
31