blob: 17d6d90bca5fd4c05dce719d804a90ade693cf14 [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
32##These variables select how the projects are built. Each project will set
33#various project specific settings (e.g. what files to build, macro
34#definitions) based on these.
35set (REGRESSION True)
36set (CORE_TEST False)
37set (CORE_IPC True)
38set (PSA_API_TEST False)
39
40# TF-M isolation level: 1..3
41set (TFM_LVL 2)
42
43#BL2 bootloader(MCUBoot) related settings
44if(NOT DEFINED BL2)
45 set(BL2 True)
46endif()
47
48if(NOT DEFINED MCUBOOT_NO_SWAP)
49 set(MCUBOOT_NO_SWAP False)
50endif()
51
52if(NOT DEFINED MCUBOOT_RAM_LOADING)
53 set(MCUBOOT_RAM_LOADING False)
54endif()
55
56include ("${TFM_ROOT_DIR}/CommonConfig.cmake")