diff options
author | Peter Johanson <[email protected]> | 2024-02-20 00:10:15 -0800 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2024-03-27 20:59:26 -0700 |
commit | bb94a7aafeb3d3d2f4165f58a654e79f8f6e6c9f (patch) | |
tree | 7a484d188cb743293da31e28feb50a35907ab4e8 | |
parent | cac999b1d6f09cb9f11fbdb832bed64b888baef5 (diff) | |
download | zmk-bb94a7aafeb3d3d2f4165f58a654e79f8f6e6c9f.tar.gz zmk-bb94a7aafeb3d3d2f4165f58a654e79f8f6e6c9f.zip |
fix: Fixes for building soft off without deep sleep.
-rw-r--r-- | app/CMakeLists.txt | 2 | ||||
-rw-r--r-- | app/Kconfig | 2 |
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)" |