1#------------------------------------------------------------------------------- 2# Copyright (c) 2020-2023, 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 10set(CRYPTO_HW_ACCELERATOR ON CACHE BOOL "Whether to enable the crypto hardware accelerator on supported platforms") 11 12set(PLATFORM_GPLED_ENABLED OFF CACHE BOOL "Use the general purpose LEDs on the platform board") 13 14list(APPEND TFM_EXTRA_GENERATED_FILE_LIST_PATH ${CMAKE_CURRENT_LIST_DIR}/generated_file_list.yaml) 15 16if(BL2) 17 set(BL2_TRAILER_SIZE 0x800 CACHE STRING "Trailer size") 18else() 19 #No header if no bootloader, but keep IMAGE_CODE_SIZE the same 20 set(BL2_TRAILER_SIZE 0xC00 CACHE STRING "Trailer size") 21endif() 22 23set(PLATFORM_DEFAULT_SYSTEM_RESET_HALT OFF CACHE BOOL "Use default system reset/halt implementation") 24 25# Platform-specific configurations 26set(CONFIG_TFM_USE_TRUSTZONE ON) 27set(TFM_MULTI_CORE_TOPOLOGY OFF) 28 29set(PLATFORM_HAS_ISOLATION_L3_SUPPORT ON) 30 31set(PLATFORM_HAS_FIRMWARE_UPDATE_SUPPORT ON) 32set(MCUBOOT_DATA_SHARING ON) 33