blob: 992e6aef8b8482e2196bb8a75692cdcb9b3fc1f1 [file] [log] [blame]
Ken Liue40f9a22019-06-03 16:42:47 +08001#-------------------------------------------------------------------------------
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
10if(NOT DEFINED TFM_ROOT_DIR)
11 message(FATAL_ERROR "Variable TFM_ROOT_DIR is not set!")
12endif()
13
14#Include board specific config (CPU, etc...), select platform specific build
15#system settings file
16if(NOT DEFINED TARGET_PLATFORM)
17 message(FATAL_ERROR "ERROR: TARGET_PLATFORM is not set in command line")
18elseif(${TARGET_PLATFORM} STREQUAL "AN521")
19 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN521.cmake")
20elseif(${TARGET_PLATFORM} STREQUAL "AN519")
21 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN519.cmake")
Kevin Peng0a142112018-09-21 10:42:22 +080022elseif(${TARGET_PLATFORM} STREQUAL "AN524")
23 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps3AN524.cmake")
Ken Liue40f9a22019-06-03 16:42:47 +080024elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
25 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_a.cmake")
26elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
27 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_b1.cmake")
28else()
29 message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
30endif()
31
David Huf2cfa122019-08-27 15:32:38 +080032# Select IPC model
33set (CORE_IPC True)
34
Ken Liue40f9a22019-06-03 16:42:47 +080035##These variables select how the projects are built. Each project will set
36#various project specific settings (e.g. what files to build, macro
37#definitions) based on these.
38set (REGRESSION True)
Mate Toth-Pal6569a592019-06-07 12:09:50 +020039set (CORE_TEST True)
David Huf2cfa122019-08-27 15:32:38 +080040set (IPC_TEST True)
Ken Liue40f9a22019-06-03 16:42:47 +080041set (PSA_API_TEST False)
42
Edison Aicb0ecf62019-07-10 18:43:51 +080043# TF-M isolation level: 1, 2
Ken Liue40f9a22019-06-03 16:42:47 +080044set (TFM_LVL 2)
45
46#BL2 bootloader(MCUBoot) related settings
47if(NOT DEFINED BL2)
48 set(BL2 True)
49endif()
50
51if(NOT DEFINED MCUBOOT_NO_SWAP)
52 set(MCUBOOT_NO_SWAP False)
53endif()
54
55if(NOT DEFINED MCUBOOT_RAM_LOADING)
56 set(MCUBOOT_RAM_LOADING False)
57endif()
58
59include ("${TFM_ROOT_DIR}/CommonConfig.cmake")