mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-19 07:45:22 +00:00
This set of functions seem to be there just because of historical reasons, stemming from Kbuild. They are non-obvious and prone to errors, so remove them in favor of the `_ifdef()` ones with an explicit `CONFIG_` condition. Script used: git grep -l _if_kconfig | xargs sed -E -i "s/_if_kconfig\(\s*(\w*)/_ifdef(CONFIG_\U\1\E \1/g" Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
9 lines
355 B
CMake
9 lines
355 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_sources_ifdef(CONFIG_SYS_POWER_MANAGEMENT power.c)
|
|
zephyr_sources_ifdef(CONFIG_DEVICE_POWER_MANAGEMENT device.c)
|
|
zephyr_sources_ifdef(CONFIG_SYS_PM_STATE_LOCK pm_ctrl.c)
|
|
zephyr_sources_ifdef(CONFIG_DEVICE_IDLE_PM device_pm.c)
|
|
zephyr_sources_ifdef(CONFIG_REBOOT reboot.c)
|
|
add_subdirectory(policy)
|