blob: b0f07874f29fda5cb6cabe16df2b65a4b31f2b90 [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")
Mingyang Sun30ed65d2019-04-29 16:21:28 +080016elseif(${TARGET_PLATFORM} STREQUAL "AN519")
17 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN519.cmake")
Edison Ai3428adf2019-04-09 17:45:20 +080018elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
19 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_a.cmake")
Edison Aib22af9a2019-04-26 10:44:18 +080020elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
21 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_b1.cmake")
Edison Aie53408d2019-01-22 11:38:37 +080022else()
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.
29set (REGRESSION False)
30set (CORE_TEST False)
31set (CORE_IPC True)
32
33# TF-M isolation level: 1..3
34set (TFM_LVL 2)
35
36#BL2 bootloader(MCUBoot) related settings
37if(NOT DEFINED BL2)
38 set(BL2 True)
39endif()
40
41if(NOT DEFINED MCUBOOT_NO_SWAP)
42 set(MCUBOOT_NO_SWAP False)
43endif()
44
45if(NOT DEFINED MCUBOOT_RAM_LOADING)
46 set(MCUBOOT_RAM_LOADING False)
47endif()
48
49include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake")