blob: 6cc8e8517a821efaa78d665e3c4266b07830074e [file] [log] [blame]
Raef Coles54940f02022-01-07 12:38:49 +00001#-------------------------------------------------------------------------------
2# Copyright (c) 2022, Arm Limited. All rights reserved.
Chris Brand592c98e2022-05-20 14:46:54 -07003# Copyright (c) 2022 Cypress Semiconductor Corporation (an Infineon company)
4# or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
Raef Coles54940f02022-01-07 12:38:49 +00005#
6# SPDX-License-Identifier: BSD-3-Clause
7#
8#-------------------------------------------------------------------------------
9
10cmake_minimum_required(VERSION 3.13)
11
12if(NOT TEST_BL2 OR NOT BL2)
13 return()
14endif()
15
Chris Brand592c98e2022-05-20 14:46:54 -070016# Reload the compiler options for the secure core, if the NS core differs
17if (EXISTS ${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload_ns.cmake)
Raef Coles54940f02022-01-07 12:38:49 +000018 include(${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload.cmake)
19 tfm_toolchain_reload_compiler()
20endif()
21
22add_subdirectory(mcuboot)