fix: Fixes for building soft off without deep sleep.

This commit is contained in:
Peter Johanson 2024-02-20 00:10:15 -08:00 committed by Pete Johanson
parent cac999b1d6
commit bb94a7aafe
2 changed files with 3 additions and 1 deletions

View File

@ -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()

View File

@ -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)"