blob: 37a6d4f663bc59ebd0b240783ceaa7e02a4d5ba3 [file] [log] [blame]
Raef Colesdf3f6ce2021-05-26 14:21:07 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2021-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 Colesdf3f6ce2021-05-26 14:21:07 +01005#
6# SPDX-License-Identifier: BSD-3-Clause
7#
8#-------------------------------------------------------------------------------
9
10if(NOT BL1)
11 return()
12endif()
13
Chris Brand592c98e2022-05-20 14:46:54 -070014# Reload the compiler options for the secure core, if the NS core differs
15if (EXISTS ${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload_ns.cmake)
Raef Colesdf3f6ce2021-05-26 14:21:07 +010016 include(${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload.cmake)
17 tfm_toolchain_reload_compiler()
18endif()
19
20add_subdirectory(bl1_1)
21add_subdirectory(bl1_2)