blob: 76af7c116e8afd946c8a5ed21a062a3acced0bbd [file] [log] [blame]
Ken Liue40f9a22019-06-03 16:42:47 +08001#-------------------------------------------------------------------------------
2# Copyright (c) 2019, Arm Limited. All rights reserved.
3#
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")
22elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
23 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_a.cmake")
24elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
25 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_b1.cmake")
26else()
27 message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
28endif()
29
30#These variables select how the projects are built. Each project will set
31#various project specific settings (e.g. what files to build, macro
32#definitions) based on these.
33set (REGRESSION False)
34set (CORE_TEST False)
35set (CORE_IPC False)
36set (PSA_API_TEST True)
37
38#TF-M isolation level: 1..3
39set (TFM_LVL 1)
40
41#Service specific configuration for the PSA API Compliance test requirements
42if(PSA_API_TEST_CRYPTO)
43 set(CRYPTO_ENGINE_BUF_SIZE 20480)
44endif()
45
46include ("${TFM_ROOT_DIR}/CommonConfig.cmake")