aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/CMakeLists.txt2
-rw-r--r--app/Kconfig2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index 2abf943fb3..2744f53d59 100644
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -8,7 +8,7 @@ set(ZEPHYR_EXTRA_MODULES "${ZMK_EXTRA_MODULES};${CMAKE_CURRENT_SOURCE_DIR}/modul
find_package(Zephyr REQUIRED HINTS ../zephyr)
project(zmk)
-if(CONFIG_ZMK_SLEEP)
+if(CONFIG_ZMK_PM_DEVICE_SUSPEND_RESUME)
zephyr_linker_sources(SECTIONS include/linker/zmk-pm-devices.ld)
endif()
diff --git a/app/Kconfig b/app/Kconfig
index 5068e91fdf..8f2fe83731 100644
--- a/app/Kconfig
+++ b/app/Kconfig
@@ -433,9 +433,11 @@ config ZMK_PM_DEVICE_SUSPEND_RESUME
config ZMK_PM_SOFT_OFF
bool "Soft-off support"
+ depends on HAS_POWEROFF
select ZMK_PM
select PM_DEVICE
select ZMK_PM_DEVICE_SUSPEND_RESUME
+ select POWEROFF
config ZMK_GPIO_KEY_WAKEUP_TRIGGER
bool "Hardware supported wakeup (GPIO)"