Skip to content

Commit

Permalink
cmake: mod_sid
Browse files Browse the repository at this point in the history
This change adds CMake build support for module/sid

Change-Id: Ib009ea1d8f4438ab41180fa8ee7ad155af86439d
Signed-off-by: Chris Kay <[email protected]>
Signed-off-by: Joel Goddard <[email protected]>
Signed-off-by: Girish Pathak <[email protected]>
  • Loading branch information
CJKay authored and nicola-mazzucato-arm committed Mar 11, 2021
1 parent c241a86 commit d4367bc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ list(APPEND SCP_MODULE_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/scmi_sensor")
list(APPEND SCP_MODULE_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/scmi_system_power")
list(APPEND SCP_MODULE_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/sds")
list(APPEND SCP_MODULE_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/sensor")
list(APPEND SCP_MODULE_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/sid")
list(APPEND SCP_MODULE_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/stdio")

foreach(source_dir IN LISTS SCP_MODULE_PATHS)
Expand Down
17 changes: 17 additions & 0 deletions module/sid/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# 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_sid.c")

target_link_libraries(${SCP_MODULE_TARGET} PRIVATE module-pcid
module-system-info)
9 changes: 9 additions & 0 deletions module/sid/Module.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Arm SCP/MCP Software
# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#

set(SCP_MODULE "sid")
set(SCP_MODULE_TARGET "module-sid")

0 comments on commit d4367bc

Please sign in to comment.