1#-------------------------------------------------------------------------------
2# Copyright (c) 2020-2023, Arm Limited. All rights reserved.
3# Copyright (c) 2021-2024 Cypress Semiconductor Corporation (an Infineon
4# company) or an affiliate of Cypress Semiconductor Corporation. All rights
5# reserved.
6# SPDX-License-Identifier: BSD-3-Clause
7#
8#-------------------------------------------------------------------------------
9
10set(BL2                                 OFF         CACHE BOOL      "Whether to build BL2")
11
12set(TFM_NS_CLIENT_IDENTIFICATION        OFF         CACHE BOOL      "Enable NS client identification")
13
14############################ Platform ##########################################
15
16add_compile_definitions(CYB0644ABZI_S2D44)
17
18set(NUM_MAILBOX_QUEUE_SLOT              4           CACHE BOOL      "Number of mailbox queue slots")
19set(TFM_PARTITION_INTERNAL_TRUSTED_STORAGE ON       CACHE BOOL      "Enable Internal Trusted Storage partition")
20set(TFM_PARTITION_PROTECTED_STORAGE     ON          CACHE BOOL      "Enable Protected Storage partition")
21set(TFM_PARTITION_PLATFORM              ON          CACHE BOOL      "Enable Platform partition")
22set(TFM_PARTITION_CRYPTO                ON          CACHE BOOL      "Enable Crypto partition")
23
24################################## Dependencies ################################
25
26set(CY_MTB_PDL_CAT1_LIB_PATH            "DOWNLOAD"  CACHE PATH      "Path to MTB_PDL_CAT1 repo (or DOWNLOAD to fetch automatically")
27set(CY_MTB_PDL_CAT1_LIB_VERSION         "release-v2.0.0" CACHE STRING "The version of MTB_PDL_CAT1 to use")
28set(CY_MTB_PDL_CAT1_LIB_GIT_REMOTE      "https://github.com/Infineon/mtb-pdl-cat1.git" CACHE STRING "The URL (or path) to retrieve MTB_PDL_CAT1 from.")
29set(CY_MTB_PDL_CAT1_FORCE_PATCH         OFF         CACHE BOOL      "Always apply MTB_PDL_CAT1 patches")
30
31set(CY_P64_UTILS_LIB_PATH               "DOWNLOAD"  CACHE PATH      "Path to p64_utils repo (or DOWNLOAD to fetch automatically")
32set(CY_P64_UTILS_LIB_VERSION            "release-v1.0.0" CACHE STRING "The version of p64_utils to use")
33set(CY_P64_UTILS_FORCE_PATCH            OFF         CACHE BOOL      "Always apply p64_utils patches")
34
35# Configure PDL to use RAM interrup vectors. This is required by P64_utils
36add_compile_definitions(RAM_VECTORS_SUPPORT)
37
38# Disable default PDL IPC configuration. Use Cy_Platform_Init() in
39# in psoc6_system_init_cm4.c and psoc6_system_init_cm0p.c instead.
40add_compile_definitions(CY_IPC_DEFAULT_CFG_DISABLE)
41
42# Platform-specific configurations
43set(CONFIG_TFM_USE_TRUSTZONE            OFF)
44set(TFM_MULTI_CORE_TOPOLOGY             ON)
45
46set(PLATFORM_SLIH_IRQ_TEST_SUPPORT      ON)
47set(PLATFORM_FLIH_IRQ_TEST_SUPPORT      ON)
48