blob: 1383fb4e8c50c4e63d47d871c36a0e9d592bad5c [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")
Marton Berke6fd21f12019-07-02 13:43:07 +020022elseif(${TARGET_PLATFORM} STREQUAL "AN539")
23 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps2AN539.cmake")
Kevin Peng0a142112018-09-21 10:42:22 +080024elseif(${TARGET_PLATFORM} STREQUAL "AN524")
25 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/Mps3AN524.cmake")
Ken Liue40f9a22019-06-03 16:42:47 +080026elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
27 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_a.cmake")
28elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
29 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_b1.cmake")
Bence Kaposzta9076e822019-10-08 09:44:17 +020030elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_S1")
31 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/musca_s1.cmake")
Chris Brandb42fed52019-12-02 16:10:17 -080032elseif(${TARGET_PLATFORM} STREQUAL "psoc64")
33 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/psoc64.cmake")
Marton Berkee9803662019-11-11 14:11:05 +010034elseif(${TARGET_PLATFORM} STREQUAL "SSE-200_AWS")
35 set(PLATFORM_CMAKE_FILE "${TFM_ROOT_DIR}/platform/ext/SSE-200_AWS.cmake")
Ken Liue40f9a22019-06-03 16:42:47 +080036else()
37 message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
38endif()
39
David Huf2cfa122019-08-27 15:32:38 +080040# Select IPC model
41set (CORE_IPC True)
42
Ken Liue40f9a22019-06-03 16:42:47 +080043##These variables select how the projects are built. Each project will set
44#various project specific settings (e.g. what files to build, macro
45#definitions) based on these.
46set (REGRESSION True)
Mate Toth-Pal6569a592019-06-07 12:09:50 +020047set (CORE_TEST True)
David Huf2cfa122019-08-27 15:32:38 +080048set (IPC_TEST True)
Ken Liue40f9a22019-06-03 16:42:47 +080049set (PSA_API_TEST False)
50
Edison Aicb0ecf62019-07-10 18:43:51 +080051# TF-M isolation level: 1, 2
Ken Liue40f9a22019-06-03 16:42:47 +080052set (TFM_LVL 2)
53
54#BL2 bootloader(MCUBoot) related settings
55if(NOT DEFINED BL2)
56 set(BL2 True)
57endif()
58
59if(NOT DEFINED MCUBOOT_NO_SWAP)
60 set(MCUBOOT_NO_SWAP False)
61endif()
62
63if(NOT DEFINED MCUBOOT_RAM_LOADING)
64 set(MCUBOOT_RAM_LOADING False)
65endif()
66
67include ("${TFM_ROOT_DIR}/CommonConfig.cmake")