blob: 14b428d7c45a32f209e387e5582fc24f10266b7e [file] [log] [blame]
Gyorgy Szing30fa9872017-12-05 01:08:47 +00001#-------------------------------------------------------------------------------
Mate Toth-Pal65c935e2018-01-17 18:42:13 +01002# Copyright (c) 2017-2018, Arm Limited. All rights reserved.
Gyorgy Szing30fa9872017-12-05 01:08:47 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8#This file holds information of a specific build configuration of this project.
Gyorgy Szing30fa9872017-12-05 01:08:47 +00009
Mate Toth-Pal48fc6a02018-01-24 09:50:14 +010010#Include board specific config (CPU, etc...), select platform specific build
11#system settings file
12if(NOT DEFINED TARGET_PLATFORM)
13 message(FATAL_ERROR "ERROR: TARGET_PLATFORM is not set in command line")
14elseif(${TARGET_PLATFORM} STREQUAL "AN521")
15 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN521.cmake")
Mate Toth-Pal2e94d132018-01-26 17:27:52 +010016elseif(${TARGET_PLATFORM} STREQUAL "AN519")
17 set (PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN519.cmake")
Avinash Mehta788036c2018-03-15 12:38:43 +000018elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
19 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_a.cmake")
Jamie Fox7a4170d2018-08-15 14:13:42 +010020elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
21 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_b1.cmake")
Mate Toth-Pal48fc6a02018-01-24 09:50:14 +010022else()
23 message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
Mate Toth-Pal65c935e2018-01-17 18:42:13 +010024endif()
Gyorgy Szing30fa9872017-12-05 01:08:47 +000025
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.
29set (REGRESSION True)
30set (CORE_TEST False)
Tamas Bandb69d522018-03-01 10:04:41 +000031
Tamas Band90c81b2018-08-15 15:03:42 +010032# TF-M isolation level: 1..3
33set (TFM_LVL 1)
34
Tamas Bandb69d522018-03-01 10:04:41 +000035#BL2 bootloader(MCUBoot) related settings
Oliver Swedef9982442018-08-24 18:37:44 +010036if(NOT DEFINED BL2)
37 set(BL2 True)
38endif()
39
40if(NOT DEFINED MCUBOOT_NO_SWAP)
41 set(MCUBOOT_NO_SWAP False)
42endif()
43
44if(NOT DEFINED MCUBOOT_RAM_LOADING)
45 set(MCUBOOT_RAM_LOADING False)
46endif()
Gyorgy Szing30fa9872017-12-05 01:08:47 +000047
Mate Toth-Pal65c935e2018-01-17 18:42:13 +010048include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake")