Jamie Fox | 17c30bb | 2019-01-10 13:39:33 +0000 | [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 | #Include board specific config (CPU, etc...), select platform specific build |
| 11 | #system settings file |
| 12 | if(NOT DEFINED TARGET_PLATFORM) |
| 13 | message(FATAL_ERROR "ERROR: TARGET_PLATFORM is not set in command line") |
| 14 | elseif(${TARGET_PLATFORM} STREQUAL "AN521") |
| 15 | set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN521.cmake") |
| 16 | elseif(${TARGET_PLATFORM} STREQUAL "AN519") |
Antonio de Angelis | 4743e67 | 2019-04-11 11:38:48 +0100 | [diff] [blame] | 17 | set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN519.cmake") |
Jamie Fox | 17c30bb | 2019-01-10 13:39:33 +0000 | [diff] [blame] | 18 | elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A") |
| 19 | set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_a.cmake") |
| 20 | elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1") |
| 21 | set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_b1.cmake") |
| 22 | else() |
| 23 | message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.") |
| 24 | endif() |
| 25 | |
| 26 | #These variables select how the projects are built. Each project will set |
| 27 | #various project specific settings (e.g. what files to build, macro |
| 28 | #definitions) based on these. |
| 29 | set (REGRESSION False) |
| 30 | set (CORE_TEST False) |
Antonio de Angelis | 4743e67 | 2019-04-11 11:38:48 +0100 | [diff] [blame] | 31 | set (CORE_IPC False) |
Jamie Fox | 17c30bb | 2019-01-10 13:39:33 +0000 | [diff] [blame] | 32 | set (PSA_API_TEST True) |
| 33 | |
| 34 | #TF-M isolation level: 1..3 |
| 35 | set (TFM_LVL 1) |
| 36 | |
Jamie Fox | 17c30bb | 2019-01-10 13:39:33 +0000 | [diff] [blame] | 37 | #Service specific configuration for the PSA API Compliance test requirements |
| 38 | if(PSA_API_TEST_CRYPTO) |
Antonio de Angelis | 25e2b2d | 2019-04-25 14:49:50 +0100 | [diff] [blame] | 39 | set(CRYPTO_ENGINE_BUF_SIZE 20480) |
Jamie Fox | 17c30bb | 2019-01-10 13:39:33 +0000 | [diff] [blame] | 40 | endif() |
| 41 | |
| 42 | include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake") |