Tamas Ban | d90c81b | 2018-08-15 15:03:42 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Jamie Fox | 17c30bb | 2019-01-10 13:39:33 +0000 | [diff] [blame] | 2 | # Copyright (c) 2017-2019, Arm Limited. All rights reserved. |
Tamas Ban | d90c81b | 2018-08-15 15:03:42 +0100 | [diff] [blame] | 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 | |
Ken Liu | e40f9a2 | 2019-06-03 16:42:47 +0800 | [diff] [blame^] | 10 | if(NOT DEFINED TFM_ROOT_DIR) |
| 11 | message(FATAL_ERROR "Variable TFM_ROOT_DIR is not set!") |
| 12 | endif() |
| 13 | |
Tamas Ban | d90c81b | 2018-08-15 15:03:42 +0100 | [diff] [blame] | 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") |
Ken Liu | e40f9a2 | 2019-06-03 16:42:47 +0800 | [diff] [blame^] | 19 | set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN521.cmake") |
Tamas Ban | d90c81b | 2018-08-15 15:03:42 +0100 | [diff] [blame] | 20 | elseif(${TARGET_PLATFORM} STREQUAL "AN519") |
Ken Liu | e40f9a2 | 2019-06-03 16:42:47 +0800 | [diff] [blame^] | 21 | set (PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN519.cmake") |
Tamas Ban | d90c81b | 2018-08-15 15:03:42 +0100 | [diff] [blame] | 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. |
Ken Liu | e40f9a2 | 2019-06-03 16:42:47 +0800 | [diff] [blame^] | 29 | set (REGRESSION False) |
| 30 | set (CORE_TEST True) |
Edison Ai | 1a40a40 | 2019-05-23 09:50:24 +0800 | [diff] [blame] | 31 | set (CORE_IPC False) |
Jamie Fox | 17c30bb | 2019-01-10 13:39:33 +0000 | [diff] [blame] | 32 | set (PSA_API_TEST False) |
Tamas Ban | d90c81b | 2018-08-15 15:03:42 +0100 | [diff] [blame] | 33 | |
| 34 | # TF-M isolation level: 1..3 |
| 35 | set (TFM_LVL 3) |
| 36 | |
Ken Liu | e40f9a2 | 2019-06-03 16:42:47 +0800 | [diff] [blame^] | 37 | include ("${TFM_ROOT_DIR}/CommonConfig.cmake") |