blob: 3b41679d9c1d569bc3cc6149f800f302025d338f [file] [log] [blame]
Edison Aiec109cd2018-07-17 16:04:14 +08001#-------------------------------------------------------------------------------
Edison Ai7d6cb3b2018-09-19 16:41:50 +08002# Copyright (c) 2018-2019, Arm Limited. All rights reserved.
Edison Aiec109cd2018-07-17 16:04:14 +08003#
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
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")
16elseif(${TARGET_PLATFORM} STREQUAL "AN519")
17 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN519.cmake")
18elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
19 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_a.cmake")
20elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
21 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_b1.cmake")
22else()
23 message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
24endif()
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.
Edison Ai1a40a402019-05-23 09:50:24 +080029set (REGRESSION False)
Mate Toth-Pal0101fd32019-03-26 10:19:53 +010030set (CORE_TEST False)
Edison Aiec109cd2018-07-17 16:04:14 +080031set (CORE_IPC True)
Antonio de Angelis4743e672019-04-11 11:38:48 +010032set (PSA_API_TEST False)
Edison Aiec109cd2018-07-17 16:04:14 +080033
34# TF-M isolation level: 1..3
35set (TFM_LVL 1)
36
Edison Aiec109cd2018-07-17 16:04:14 +080037include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake")