Ken Liu | e40f9a2 | 2019-06-03 16:42:47 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 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 | |
| 10 | if(NOT DEFINED TFM_ROOT_DIR) |
| 11 | message(FATAL_ERROR "Variable TFM_ROOT_DIR is not set!") |
| 12 | endif() |
| 13 | |
| 14 | #Include board specific config (CPU, etc...), select platform specific build |
| 15 | #system settings file |
| 16 | if(NOT DEFINED TARGET_PLATFORM) |
| 17 | message(FATAL_ERROR "ERROR: TARGET_PLATFORM is not set in command line") |
| 18 | elseif(${TARGET_PLATFORM} STREQUAL "AN521") |
| 19 | set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN521.cmake") |
| 20 | elseif(${TARGET_PLATFORM} STREQUAL "AN519") |
| 21 | set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN519.cmake") |
| 22 | elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A") |
| 23 | set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_a.cmake") |
| 24 | elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1") |
| 25 | set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_b1.cmake") |
| 26 | else() |
| 27 | message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.") |
| 28 | endif() |
| 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. |
| 33 | set (REGRESSION False) |
| 34 | set (CORE_TEST False) |
| 35 | set (CORE_IPC False) |
| 36 | set (PSA_API_TEST True) |
| 37 | |
| 38 | #TF-M isolation level: 1..3 |
| 39 | set (TFM_LVL 1) |
| 40 | |
| 41 | #Service specific configuration for the PSA API Compliance test requirements |
| 42 | if(PSA_API_TEST_CRYPTO) |
| 43 | set(CRYPTO_ENGINE_BUF_SIZE 20480) |
| 44 | endif() |
| 45 | |
| 46 | include ("${TFM_ROOT_DIR}/CommonConfig.cmake") |