1#------------------------------------------------------------------------------- 2# Copyright (c) 2022-2024, Arm Limited. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#------------------------------------------------------------------------------- 7 8# IAR is currently not supported for RSE due to a lack of scatter files 9tfm_invalid_config(${CMAKE_C_COMPILER_ID} STREQUAL IAR) 10 11# CPU (Cortex-M55) is only supported in Armclang version 6.14 or newer 12tfm_invalid_config(${CMAKE_C_COMPILER_ID} STREQUAL ARMClang AND ${CMAKE_C_COMPILER_VERSION} VERSION_LESS "6.14") 13 14# Only GCC is supported for using ROM library from SRAM 15tfm_invalid_config(RSE_SUPPORT_ROM_LIB_RELOCATION AND NOT ${CMAKE_C_COMPILER_ID} STREQUAL "GNU") 16tfm_invalid_config(RSE_USE_ROM_LIB_FROM_SRAM AND NOT RSE_SUPPORT_ROM_LIB_RELOCATION) 17 18# RSE requires BL1 and BL2 19tfm_invalid_config(NOT BL1) 20tfm_invalid_config(NOT BL2) 21 22########################## Attestation ######################################### 23 24get_property(TFM_ATTESTATION_SCHEME_LIST CACHE TFM_ATTESTATION_SCHEME PROPERTY STRINGS) 25tfm_invalid_config(NOT TFM_ATTESTATION_SCHEME IN_LIST TFM_ATTESTATION_SCHEME_LIST) 26