fix(pm): Use Zephyr created device slots.

* Avoid overwriting random memory by using
  iterable section created by Zephyr PM.
This commit is contained in:
Peter Johanson
2024-03-25 09:37:14 +00:00
committed by Pete Johanson
parent d0e0ecb4e3
commit 41d81801ed
3 changed files with 3 additions and 16 deletions

View File

@@ -8,10 +8,6 @@ set(ZEPHYR_EXTRA_MODULES "${ZMK_EXTRA_MODULES};${CMAKE_CURRENT_SOURCE_DIR}/modul
find_package(Zephyr REQUIRED HINTS ../zephyr)
project(zmk)
if(CONFIG_ZMK_PM_DEVICE_SUSPEND_RESUME)
zephyr_linker_sources(SECTIONS include/linker/zmk-pm-devices.ld)
endif()
zephyr_linker_sources(SECTIONS include/linker/zmk-behaviors.ld)
zephyr_linker_sources(RODATA include/linker/zmk-events.ld)