blob: 2235d6ab5cd93ee907c33b13b5e57df9c5357e5e [file] [log] [blame]
Kevin Peng76c0c162022-02-09 22:49:06 +08001#-------------------------------------------------------------------------------
2# Copyright (c) 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.
Kevin Peng76c0c162022-02-09 22:49:06 +08005#
6# SPDX-License-Identifier: BSD-3-Clause
7#
8#-------------------------------------------------------------------------------
9
10############################ Partitions ########################################
11
David Hu372b45c2022-11-16 10:06:28 +080012set(CONFIG_TFM_SPM_BACKEND "SFN" CACHE STRING "The SPM backend [IPC, SFN]")
Kevin Peng76c0c162022-02-09 22:49:06 +080013set(CONFIG_TFM_SPM_BACKEND_IPC OFF)
14set(CONFIG_TFM_SPM_BACKEND_SFN ON)
Kevin Peng0f91bc92022-02-22 15:15:34 +080015set(CONFIG_TFM_PARTITION_META OFF)
Chris Brandfbf3f462022-06-23 15:27:20 -070016# Derive ns_agent partitions
17if (TFM_MULTI_CORE_TOPOLOGY)
18 set(TFM_PARTITION_NS_AGENT_MAILBOX ON CACHE BOOL "Enable Non-Secure Mailbox Agent partition")
19else()
20 set(TFM_PARTITION_NS_AGENT_MAILBOX OFF CACHE BOOL "Enable Non-Secure Mailbox Agent partition")
21endif()
22if (CONFIG_TFM_USE_TRUSTZONE)
23 set(TFM_PARTITION_NS_AGENT_TZ ON CACHE BOOL "Enable Non-Secure TrustZone Agent partition")
24else()
25 set(TFM_PARTITION_NS_AGENT_TZ OFF CACHE BOOL "Enable Non-Secure TrustZone Agent partition")
26endif()