blob: a98ba273b1288eea2e4abdd4061b2951a180430e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#
# Arm SCP/MCP Software
# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
add_library(${SCP_MODULE_TARGET} SCP_MODULE)
target_include_directories(${SCP_MODULE_TARGET}
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_sources(
${SCP_MODULE_TARGET}
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/mod_scmi_power_domain.c")
# Device tree module configuration
if(SCP_MODULE IN_LIST SCP_DT_CONFIG_MODULES_ALL)
target_sources(${SCP_MODULE_TARGET}
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/config_dt_scmi_power_domain.c")
# no header files needed for dt include
endif()
target_link_libraries(${SCP_MODULE_TARGET} PRIVATE module-power-domain
module-scmi)
if("resource-perms" IN_LIST SCP_MODULES)
target_link_libraries(${SCP_MODULE_TARGET} PRIVATE module-resource-perms)
endif()
if("debug" IN_LIST SCP_MODULES)
target_link_libraries(${SCP_MODULE_TARGET} PRIVATE module-debug)
endif()
|