Gyorgy Szing | 30fa987 | 2017-12-05 01:08:47 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Mate Toth-Pal | 65c935e | 2018-01-17 18:42:13 +0100 | [diff] [blame] | 2 | # Copyright (c) 2017-2018, Arm Limited. All rights reserved. |
Gyorgy Szing | 30fa987 | 2017-12-05 01:08:47 +0000 | [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. |
Gyorgy Szing | 30fa987 | 2017-12-05 01:08:47 +0000 | [diff] [blame] | 9 | |
Mate Toth-Pal | 48fc6a0 | 2018-01-24 09:50:14 +0100 | [diff] [blame] | 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") |
Mate Toth-Pal | 2e94d13 | 2018-01-26 17:27:52 +0100 | [diff] [blame] | 16 | elseif(${TARGET_PLATFORM} STREQUAL "AN519") |
| 17 | set (PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN519.cmake") |
Avinash Mehta | 788036c | 2018-03-15 12:38:43 +0000 | [diff] [blame] | 18 | elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A") |
| 19 | set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_a.cmake") |
Jamie Fox | 7a4170d | 2018-08-15 14:13:42 +0100 | [diff] [blame] | 20 | elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1") |
| 21 | set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_b1.cmake") |
Mate Toth-Pal | 48fc6a0 | 2018-01-24 09:50:14 +0100 | [diff] [blame] | 22 | else() |
| 23 | message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.") |
Mate Toth-Pal | 65c935e | 2018-01-17 18:42:13 +0100 | [diff] [blame] | 24 | endif() |
Gyorgy Szing | 30fa987 | 2017-12-05 01:08:47 +0000 | [diff] [blame] | 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 True) |
| 30 | set (CORE_TEST False) |
Tamas Ban | db69d52 | 2018-03-01 10:04:41 +0000 | [diff] [blame] | 31 | |
Tamas Ban | d90c81b | 2018-08-15 15:03:42 +0100 | [diff] [blame] | 32 | # TF-M isolation level: 1..3 |
| 33 | set (TFM_LVL 1) |
| 34 | |
Tamas Ban | db69d52 | 2018-03-01 10:04:41 +0000 | [diff] [blame] | 35 | #BL2 bootloader(MCUBoot) related settings |
Oliver Swede | f998244 | 2018-08-24 18:37:44 +0100 | [diff] [blame] | 36 | if(NOT DEFINED BL2) |
| 37 | set(BL2 True) |
| 38 | endif() |
| 39 | |
| 40 | if(NOT DEFINED MCUBOOT_NO_SWAP) |
| 41 | set(MCUBOOT_NO_SWAP False) |
| 42 | endif() |
| 43 | |
| 44 | if(NOT DEFINED MCUBOOT_RAM_LOADING) |
| 45 | set(MCUBOOT_RAM_LOADING False) |
| 46 | endif() |
Gyorgy Szing | 30fa987 | 2017-12-05 01:08:47 +0000 | [diff] [blame] | 47 | |
Mate Toth-Pal | 65c935e | 2018-01-17 18:42:13 +0100 | [diff] [blame] | 48 | include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake") |