Skip to content

Commit

Permalink
input: move the listener section in common-rom
Browse files Browse the repository at this point in the history
Move the input listener section declaration in common-rom-misc.ld
instead of using a custom input.ld file. This seems to be the common
practice for upstream iterable sections and seems to solve a
compatibility issue where the section was getting allocated incorrectly
on esp32 based platforms.

Signed-off-by: Fabio Baltieri <[email protected]>
  • Loading branch information
fabiobaltieri authored and mbolivar-nordic committed Mar 20, 2023
1 parent d4ed0d7 commit 9889e8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions include/zephyr/linker/common-rom/common-rom-misc.ld
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
ITERABLE_SECTION_ROM(mcumgr_handler, 4)
#endif

#if defined(CONFIG_INPUT)
ITERABLE_SECTION_ROM(input_listener, 4)
#endif

#if defined(CONFIG_EMUL)
SECTION_DATA_PROLOGUE(emulators_section,,)
{
Expand Down
2 changes: 0 additions & 2 deletions subsys/input/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
zephyr_library()

zephyr_library_sources(input.c)

zephyr_linker_sources(SECTIONS input.ld)
1 change: 0 additions & 1 deletion subsys/input/input.ld

This file was deleted.

0 comments on commit 9889e8e

Please sign in to comment.