blob: ed77ad3df8b0766cc3d184488f1c215cab7d50cc [file] [log] [blame]
Antonio de Angelisad2baa42019-05-09 11:48:45 +01001#-------------------------------------------------------------------------------
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
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")
16elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
17 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_a.cmake")
18elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
19 set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_b1.cmake")
20else()
21 message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
22endif()
23
24#These variables select how the projects are built. Each project will set
25#various project specific settings (e.g. what files to build, macro
26#definitions) based on these.
27set (REGRESSION False)
28set (CORE_TEST False)
29set (CORE_IPC True)
30set (PSA_API_TEST True)
31
32# TF-M isolation level: 1..3
33set (TFM_LVL 2)
34
35#BL2 bootloader(MCUBoot) related settings
36if(NOT DEFINED BL2)
37 set(BL2 True)
38endif()
39
40if(NOT DEFINED MCUBOOT_NO_SWAP)
41 set(MCUBOOT_NO_SWAP False)
42endif()
43
44if(NOT DEFINED MCUBOOT_RAM_LOADING)
45 set(MCUBOOT_RAM_LOADING False)
46endif()
47
48#Service specific configuration for the PSA API Compliance test requirements
49if(PSA_API_TEST_CRYPTO)
50 set(CRYPTO_ENGINE_BUF_SIZE 20480)
51endif()
52
53include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake")