Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions fwk/spf/modules/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,13 @@ config SH_MEM_PUSH_MODE
tristate "Enable SH_MEM_PUSH_MODE Library"
default y

config IRM
bool "Enable Integrated Resource Monitor (IRM)"
default y
help
Enable the Integrated Resource Monitor module for tracking and
managing system resources. The IRM module provides real-time monitoring
capabilities

When disabled, stub implementation is compiled.
endmenu
7 changes: 7 additions & 0 deletions fwk/spf/modules/irm/build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ set (lib_incs_list
)

#Add the source files

if (${CONFIG_IRM} MATCHES "y")
set (lib_srcs_list
${LIB_ROOT}/src/irm.c
${LIB_ROOT}/src/irm_apm_if_utils.c
Expand All @@ -28,6 +30,11 @@ set (lib_srcs_list
${LIB_ROOT}/src/irm_static_module_utils.c
${LIB_ROOT}/src/irm_sim_utils.c
)
else()
set (lib_srcs_list
${LIB_ROOT}/stub_src/irm_stub.c
)
endif()

#Call spf_build_static_library to generate the static library
spf_build_static_library(irm
Expand Down
Loading