Raef Coles | df3f6ce | 2021-05-26 14:21:07 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2021-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 | df3f6ce | 2021-05-26 14:21:07 +0100 | [diff] [blame] | 5 | # |
| 6 | # SPDX-License-Identifier: BSD-3-Clause |
| 7 | # |
| 8 | #------------------------------------------------------------------------------- |
| 9 | |
| 10 | if(NOT BL1) |
| 11 | return() |
| 12 | endif() |
| 13 | |
Chris Brand | 592c98e | 2022-05-20 14:46:54 -0700 | [diff] [blame] | 14 | # Reload the compiler options for the secure core, if the NS core differs |
| 15 | if (EXISTS ${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload_ns.cmake) |
Raef Coles | df3f6ce | 2021-05-26 14:21:07 +0100 | [diff] [blame] | 16 | include(${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload.cmake) |
| 17 | tfm_toolchain_reload_compiler() |
| 18 | endif() |
| 19 | |
| 20 | add_subdirectory(bl1_1) |
| 21 | add_subdirectory(bl1_2) |