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