Raef Coles | 54940f0 | 2022-01-07 12:38:49 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2022, Arm Limited. All rights reserved. |
Chris Brand | 592c98e | 2022-05-20 14:46:54 -0700 | [diff] [blame] | 3 | # Copyright (c) 2022 Cypress Semiconductor Corporation (an Infineon company) |
| 4 | # or an affiliate of Cypress Semiconductor Corporation. All rights reserved. |
Raef Coles | 54940f0 | 2022-01-07 12:38:49 +0000 | [diff] [blame] | 5 | # |
| 6 | # SPDX-License-Identifier: BSD-3-Clause |
| 7 | # |
| 8 | #------------------------------------------------------------------------------- |
| 9 | |
| 10 | cmake_minimum_required(VERSION 3.13) |
| 11 | |
| 12 | if(NOT TEST_BL2 OR NOT BL2) |
| 13 | return() |
| 14 | endif() |
| 15 | |
Chris Brand | 592c98e | 2022-05-20 14:46:54 -0700 | [diff] [blame] | 16 | # Reload the compiler options for the secure core, if the NS core differs |
| 17 | if (EXISTS ${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload_ns.cmake) |
Raef Coles | 54940f0 | 2022-01-07 12:38:49 +0000 | [diff] [blame] | 18 | include(${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload.cmake) |
| 19 | tfm_toolchain_reload_compiler() |
| 20 | endif() |
| 21 | |
| 22 | add_subdirectory(mcuboot) |