blob: 5397ad9348f95f44b3d9108ba9453ab9d01ae7d0 [file] [log] [blame]
Edison Aie53408d2019-01-22 11:38:37 +08001#-------------------------------------------------------------------------------
2# Copyright (c) 2018-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
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")
16else()
17 message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
18endif()
19
20##These variables select how the projects are built. Each project will set
21#various project specific settings (e.g. what files to build, macro
22#definitions) based on these.
23set (REGRESSION False)
24set (CORE_TEST False)
25set (CORE_IPC True)
26
27# TF-M isolation level: 1..3
28set (TFM_LVL 2)
29
30#BL2 bootloader(MCUBoot) related settings
31if(NOT DEFINED BL2)
32 set(BL2 True)
33endif()
34
35if(NOT DEFINED MCUBOOT_NO_SWAP)
36 set(MCUBOOT_NO_SWAP False)
37endif()
38
39if(NOT DEFINED MCUBOOT_RAM_LOADING)
40 set(MCUBOOT_RAM_LOADING False)
41endif()
42
43include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake")