blob: 5d6de1bb4674e054f8d702057e1bc294050da8db [file] [log] [blame]
Satish Kumar427923c2021-10-05 07:21:53 +01001#
2# Copyright (c) 2021 Arm Limited. All rights reserved.
3# SPDX-License-Identifier: BSD-3-Clause
4#
5if (NOT DEFINED TFM_PLATFORM)
6 Message(FATAL_ERROR "TFM_PLATFORM not defined.")
7endif()
8
9get_filename_component(TFM_PLATFORM_PATH ${CMAKE_CURRENT_SOURCE_DIR}/target/trusted-firmware-m/platform/${TFM_PLATFORM} ABSOLUTE)
10
11if (NOT EXISTS ${TFM_PLATFORM_PATH})
12 Message(FATAL_ERROR "Platform ${TFM_PLATFORM} not supported.")
13endif()
14
15include(${TFM_PLATFORM_PATH}/config.cmake)
16
17set(PSA_ADAC_QUIET OFF CACHE BOOL "The image will be built to run on QEMU")
18set(PSA_ADAC_DEBUG ON CACHE BOOL "Enable debug")