blob: 130e8acd1abbdaf47e1ffbcc66542148f075c6cb [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")
22elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
23 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_a.cmake")
24elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
25 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_b1.cmake")
26else()
27 message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
28endif()
29
30##These variables select how the projects are built. Each project will set
31#various project specific settings (e.g. what files to build, macro
32#definitions) based on these.
33set (REGRESSION True)
34set (CORE_TEST False)
35set (CORE_IPC True)
36set (PSA_API_TEST False)
37
38# TF-M isolation level: 1..3
39set (TFM_LVL 2)
40
41#BL2 bootloader(MCUBoot) related settings
42if(NOT DEFINED BL2)
43 set(BL2 True)
44endif()
45
46if(NOT DEFINED MCUBOOT_NO_SWAP)
47 set(MCUBOOT_NO_SWAP False)
48endif()
49
50if(NOT DEFINED MCUBOOT_RAM_LOADING)
51 set(MCUBOOT_RAM_LOADING False)
52endif()
53
54include ("${TFM_ROOT_DIR}/CommonConfig.cmake")