1# 2# Arm SCP/MCP Software 3# Copyright (c) 2022, Arm Limited and Contributors. All rights reserved. 4# 5# SPDX-License-Identifier: BSD-3-Clause 6# 7 8# 9# Create the firmware target. 10# 11 12add_executable(rdfremont-lcp-bl2) 13 14target_include_directories( 15 rdfremont-lcp-bl2 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../include" 16 "${CMAKE_CURRENT_SOURCE_DIR}") 17 18# cmake-lint: disable=E1122 19 20target_sources( 21 rdfremont-lcp-bl2 22 PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/config_armv8m_mpu.c" 23 "${CMAKE_CURRENT_SOURCE_DIR}/config_pl011.c" 24 "${CMAKE_CURRENT_SOURCE_DIR}/config_transport.c" 25 "${CMAKE_CURRENT_SOURCE_DIR}/config_mhu3.c") 26 27# 28# Some of our firmware includes require CMSIS. 29# 30 31target_link_libraries(rdfremont-lcp-bl2 PUBLIC cmsis::core-m) 32 33# 34# We explicitly add the CMSIS include directories to our interface include 35# directories. Each module target adds these include directories to their own, 36# allowing them to include any firmware includes we expose. 37# 38 39target_include_directories(rdfremont-lcp-bl2 40 PUBLIC $<TARGET_PROPERTY:cmsis::core-m,INTERFACE_INCLUDE_DIRECTORIES>) 41