blob: 29dd236add043a1212e2bb4f021e65413f5015ce [file] [log] [blame]
David Hu9b6a1fe2020-12-21 15:16:09 +08001#-------------------------------------------------------------------------------
Kevin Peng76c0c162022-02-09 22:49:06 +08002# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Chris Brandfbf3f462022-06-23 15:27:20 -07003# Copyright (c) 2022 Cypress Semiconductor Corporation (an Infineon company)
4# or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
David Hu9b6a1fe2020-12-21 15:16:09 +08005#
6# SPDX-License-Identifier: BSD-3-Clause
7#
8#-------------------------------------------------------------------------------
9
10############################ Partitions ########################################
11
Kevin Peng76c0c162022-02-09 22:49:06 +080012set(CONFIG_TFM_SPM_BACKEND_IPC ON)
13set(CONFIG_TFM_SPM_BACKEND_SFN OFF)
Summer Qin596f5552022-01-27 18:04:06 +080014set(CONFIG_TFM_PARTITION_META ON)
Chris Brandfbf3f462022-06-23 15:27:20 -070015# Derive ns_agent partitions
16if (TFM_MULTI_CORE_TOPOLOGY)
17 set(TFM_PARTITION_NS_AGENT_MAILBOX ON CACHE BOOL "Enable Non-Secure Mailbox Agent partition")
18else()
19 set(TFM_PARTITION_NS_AGENT_MAILBOX OFF CACHE BOOL "Enable Non-Secure Mailbox Agent partition")
20endif()
21if (CONFIG_TFM_USE_TRUSTZONE)
22 set(TFM_PARTITION_NS_AGENT_TZ ON CACHE BOOL "Enable Non-Secure TrustZone Agent partition")
23else()
24 set(TFM_PARTITION_NS_AGENT_TZ OFF CACHE BOOL "Enable Non-Secure TrustZone Agent partition")
25endif()