blob: 5d6de1bb4674e054f8d702057e1bc294050da8db [file] [log] [blame]
#
# Copyright (c) 2021 Arm Limited. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
#
if (NOT DEFINED TFM_PLATFORM)
Message(FATAL_ERROR "TFM_PLATFORM not defined.")
endif()
get_filename_component(TFM_PLATFORM_PATH ${CMAKE_CURRENT_SOURCE_DIR}/target/trusted-firmware-m/platform/${TFM_PLATFORM} ABSOLUTE)
if (NOT EXISTS ${TFM_PLATFORM_PATH})
Message(FATAL_ERROR "Platform ${TFM_PLATFORM} not supported.")
endif()
include(${TFM_PLATFORM_PATH}/config.cmake)
set(PSA_ADAC_QUIET OFF CACHE BOOL "The image will be built to run on QEMU")
set(PSA_ADAC_DEBUG ON CACHE BOOL "Enable debug")