1#-------------------------------------------------------------------------------
2# Copyright (c) 2020-2024, Arm Limited. All rights reserved.
3# Copyright (c) 2022 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
10list(APPEND TFM_EXTRA_GENERATED_FILE_LIST_PATH ${CMAKE_CURRENT_LIST_DIR}/generated_file_list.yaml)
11
12if(BL2)
13    set(BL2_TRAILER_SIZE 0x10000 CACHE STRING "Trailer size")
14else()
15    #No header if no bootloader, but keep IMAGE_CODE_SIZE the same
16    set(BL2_TRAILER_SIZE 0x10400 CACHE STRING "Trailer size")
17endif()
18
19# Platform-specific configurations
20
21set(CONFIG_TFM_USE_TRUSTZONE          ON)
22set(TFM_MULTI_CORE_TOPOLOGY           OFF)
23
24set(PLATFORM_HAS_ISOLATION_L3_SUPPORT ON)
25
26set(MCUBOOT_USE_PSA_CRYPTO            ON               CACHE BOOL      "Enable the cryptographic abstraction layer to use PSA Crypto APIs")
27set(MCUBOOT_SIGNATURE_TYPE            "EC-P256"        CACHE STRING    "Algorithm to use for signature validation [RSA-2048, RSA-3072, EC-P256, EC-P384]")
28set(MCUBOOT_HW_KEY                    OFF              CACHE BOOL      "Whether to embed the entire public key in the image metadata instead of the hash only")
29set(MCUBOOT_BUILTIN_KEY               ON               CACHE BOOL      "Use builtin key(s) for validation, no public key data is embedded into the image metadata")
30