Edison Ai | 56c4202 | 2018-07-17 16:04:14 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2018, 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 |
| 12 | if(NOT DEFINED TARGET_PLATFORM) |
| 13 | message(FATAL_ERROR "ERROR: TARGET_PLATFORM is not set in command line") |
| 14 | elseif(${TARGET_PLATFORM} STREQUAL "AN521") |
| 15 | set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN521.cmake") |
| 16 | elseif(${TARGET_PLATFORM} STREQUAL "AN519") |
| 17 | set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN519.cmake") |
| 18 | else() |
| 19 | message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.") |
| 20 | endif() |
| 21 | |
| 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. |
| 25 | set (REGRESSION True) |
| 26 | set (CORE_TEST False) |
| 27 | set (CORE_IPC True) |
| 28 | set (BL2 True) |
| 29 | |
| 30 | include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake") |