blob: d6402b02c895d9f10d0582fda55a1caf730a8f8b [file] [log] [blame]
Gyorgy Szing30fa9872017-12-05 01:08:47 +00001#-------------------------------------------------------------------------------
Mate Toth-Pal65c935e2018-01-17 18:42:13 +01002# Copyright (c) 2017-2018, Arm Limited. All rights reserved.
Gyorgy Szing30fa9872017-12-05 01:08:47 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8#This file holds information of a specific build configuration of this project.
Mate Toth-Pal65c935e2018-01-17 18:42:13 +01009
Mate Toth-Pal48fc6a02018-01-24 09:50:14 +010010#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")
Mate Toth-Pal2e94d132018-01-26 17:27:52 +010016elseif(${TARGET_PLATFORM} STREQUAL "AN519")
17 set (PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN519.cmake")
Mate Toth-Pal48fc6a02018-01-24 09:50:14 +010018else()
19 message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
Mate Toth-Pal65c935e2018-01-17 18:42:13 +010020endif()
Gyorgy Szing30fa9872017-12-05 01:08:47 +000021
22##These variables select how the projects are built. Each project will set
23#various project specific settings (e.g. what files to build, macro
24#definitions) based on these.
25set (REGRESSION False)
26set (CORE_TEST True)
Tamas Bandb69d522018-03-01 10:04:41 +000027
28#BL2 bootloader(MCUBoot) related settings
Tamas Ban581034a2017-12-19 19:54:37 +000029set (BL2 True)
Tamas Bandb69d522018-03-01 10:04:41 +000030set (MCUBOOT_NO_SWAP False)
Gyorgy Szing30fa9872017-12-05 01:08:47 +000031
Mate Toth-Pal65c935e2018-01-17 18:42:13 +010032include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake")