zephyr/subsys/pm/CMakeLists.txt
Gerard Marull-Paretas 6f4bb118a8 pm: policy: split policy APIs implementations
policy.c has grown organically, it contained many independent pieces of
code. This patch splits each logical unit into its own C file, making it
easier to browse the code.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-10-24 17:50:44 +02:00

13 lines
416 B
CMake

# SPDX-License-Identifier: Apache-2.0
if(CONFIG_PM)
zephyr_sources(pm.c state.c)
zephyr_sources_ifdef(CONFIG_PM_STATS pm_stats.c)
endif()
add_subdirectory(policy)
zephyr_sources_ifdef(CONFIG_PM_DEVICE device.c)
zephyr_sources_ifdef(CONFIG_PM_DEVICE_RUNTIME device_runtime.c)
zephyr_sources_ifdef(CONFIG_PM_DEVICE_SHELL pm_shell.c)
zephyr_sources_ifdef(CONFIG_PM_DEVICE_SYSTEM_MANAGED device_system_managed.c)