PM_DEVICE is not attached to system managed device power management. It is a very common use case targets with device runtime power management that don't want system device power management enabled. We introduce a new symbol (PM_DEVICE_SYSTEM_MANAGED) to explicit control whether or not system device power management should be globally enabled. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
12 lines
399 B
CMake
12 lines
399 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(CONFIG_PM)
|
|
zephyr_sources(pm.c policy.c state.c)
|
|
zephyr_sources_ifdef(CONFIG_PM_STATS pm_stats.c)
|
|
endif()
|
|
|
|
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)
|