1# 2# Arm SCP/MCP Software 3# Copyright (c) 2021, 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(rdv1-mcp-bl1) 13 14target_include_directories( 15 rdv1-mcp-bl1 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../include" 16 "${CMAKE_CURRENT_SOURCE_DIR}") 17 18# cmake-lint: disable=E1122 19 20target_sources( 21 rdv1-mcp-bl1 22 PRIVATE "config_clock.c" "config_bootloader.c" 23 "config_pl011.c") 24 25# 26# Some of our firmware includes require CMSIS. 27# 28 29target_link_libraries(rdv1-mcp-bl1 PUBLIC cmsis::core-m) 30 31# 32# We explicitly add the CMSIS include directories to our interfaceinclude 33# directories. Each module target adds these include directories totheir own, 34# allowing them to include any firmware includes we expose. 35# 36 37target_include_directories(rdv1-mcp-bl1 38 PUBLIC $<TARGET_PROPERTY:cmsis::core-m,INTERFACE_INCLUDE_DIRECTORIES>) 39