blob: 321befebff7808b56b3223d8b8099a1c2af56683 [file] [log] [blame]
Ken Liue40f9a22019-06-03 16:42:47 +08001#-------------------------------------------------------------------------------
Gabor Abonyide5e8db2020-03-05 13:14:22 +01002# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
Ken Liue40f9a22019-06-03 16:42:47 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8#This file holds information of a specific build configuration of this project.
9
10if(NOT DEFINED TFM_ROOT_DIR)
11 message(FATAL_ERROR "Variable TFM_ROOT_DIR is not set!")
12endif()
13
14#Include board specific config (CPU, etc...), select platform specific build
15#system settings file
16if(NOT DEFINED TARGET_PLATFORM)
17 message(FATAL_ERROR "ERROR: TARGET_PLATFORM is not set in command line")
18elseif(${TARGET_PLATFORM} STREQUAL "AN521")
19 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN521.cmake")
20elseif(${TARGET_PLATFORM} STREQUAL "AN519")
21 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN519.cmake")
Gabor Abonyide5e8db2020-03-05 13:14:22 +010022elseif(${TARGET_PLATFORM} STREQUAL "AN539")
23 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN539.cmake")
Ken Liue40f9a22019-06-03 16:42:47 +080024elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
25 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_a.cmake")
26elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
27 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_b1.cmake")
Gabor Abonyide5e8db2020-03-05 13:14:22 +010028elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_S1")
29 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_s1.cmake")
Tamas Kaman80f17292019-07-30 17:12:11 +020030elseif(${TARGET_PLATFORM} STREQUAL "AN524")
31 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps3AN524.cmake")
Ken Liue40f9a22019-06-03 16:42:47 +080032else()
33 message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
34endif()
35
36#These variables select how the projects are built. Each project will set
37#various project specific settings (e.g. what files to build, macro
38#definitions) based on these.
39set (REGRESSION False)
40set (CORE_TEST False)
41set (CORE_IPC False)
42set (PSA_API_TEST True)
43
Edison Aicb0ecf62019-07-10 18:43:51 +080044#TF-M isolation level: 1
Ken Liue40f9a22019-06-03 16:42:47 +080045set (TFM_LVL 1)
46
47#Service specific configuration for the PSA API Compliance test requirements
48if(PSA_API_TEST_CRYPTO)
49 set(CRYPTO_ENGINE_BUF_SIZE 20480)
50endif()
51
52include ("${TFM_ROOT_DIR}/CommonConfig.cmake")