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