Kevin Peng | 76c0c16 | 2022-02-09 22:49:06 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2022, Arm Limited. All rights reserved. |
Chris Brand | fbf3f46 | 2022-06-23 15:27:20 -0700 | [diff] [blame^] | 3 | # Copyright (c) 2022 Cypress Semiconductor Corporation (an Infineon company) |
| 4 | # or an affiliate of Cypress Semiconductor Corporation. All rights reserved. |
Kevin Peng | 76c0c16 | 2022-02-09 22:49:06 +0800 | [diff] [blame] | 5 | # |
| 6 | # SPDX-License-Identifier: BSD-3-Clause |
| 7 | # |
| 8 | #------------------------------------------------------------------------------- |
| 9 | |
| 10 | ############################ Partitions ######################################## |
| 11 | |
| 12 | set(TFM_PSA_API ON CACHE BOOL "Use PSA API instead of secure library model") |
Kevin Peng | 613b417 | 2022-02-15 14:41:44 +0800 | [diff] [blame] | 13 | set(CONFIG_TFM_DOORBELL_API OFF CACHE BOOL "Enable the doorbell APIs") |
Kevin Peng | 76c0c16 | 2022-02-09 22:49:06 +0800 | [diff] [blame] | 14 | set(CONFIG_TFM_SPM_BACKEND_IPC OFF) |
| 15 | set(CONFIG_TFM_SPM_BACKEND_SFN ON) |
Kevin Peng | 0f91bc9 | 2022-02-22 15:15:34 +0800 | [diff] [blame] | 16 | set(CONFIG_TFM_PARTITION_META OFF) |
Chris Brand | fbf3f46 | 2022-06-23 15:27:20 -0700 | [diff] [blame^] | 17 | # Derive ns_agent partitions |
| 18 | if (TFM_MULTI_CORE_TOPOLOGY) |
| 19 | set(TFM_PARTITION_NS_AGENT_MAILBOX ON CACHE BOOL "Enable Non-Secure Mailbox Agent partition") |
| 20 | else() |
| 21 | set(TFM_PARTITION_NS_AGENT_MAILBOX OFF CACHE BOOL "Enable Non-Secure Mailbox Agent partition") |
| 22 | endif() |
| 23 | if (CONFIG_TFM_USE_TRUSTZONE) |
| 24 | set(TFM_PARTITION_NS_AGENT_TZ ON CACHE BOOL "Enable Non-Secure TrustZone Agent partition") |
| 25 | else() |
| 26 | set(TFM_PARTITION_NS_AGENT_TZ OFF CACHE BOOL "Enable Non-Secure TrustZone Agent partition") |
| 27 | endif() |