blob: 52de0e95b1ba7d8b61720006a10186985cc6e04e [file] [log] [blame]
Satish Kumar427923c2021-10-05 07:21:53 +01001#
Maulik Patel6f50cd72024-11-13 10:41:33 +00002# Copyright (c) 2021-2024 Arm Limited. All rights reserved.
Satish Kumar427923c2021-10-05 07:21:53 +01003# 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")
Maulik Patel6f50cd72024-11-13 10:41:33 +000019set(PSA_ADAC_AS_TFM_RUNTIME_SERVICE OFF CACHE BOOL "Integrate ADAC as TF-M runtime service")