Skip to content

Commit e662d77

Browse files
tejlmandjhedberg
authored andcommitted
cmake: add net_socket_service_desc to common-rom.cmake
Commit eff5d02 added `net_socket_service_desc` to common-rom ld snippet but not to common-rom CMake linker generator equivalent. Bring common-rom.cmake up-to-date to ensure `net_socket_service_desc` works correctly with the linker generator. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent c0c3fee commit e662d77

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/linker_script/common/common-rom.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,13 @@ if (CONFIG_NET_MGMT)
234234
zephyr_iterable_section(NAME net_mgmt_event_static_handler KVMA RAM_REGION GROUP RODATA_REGION)
235235
endif()
236236

237+
if(CONFIG_NET_SOCKETS_SERVICE)
238+
zephyr_iterable_section(NAME net_socket_service_desc
239+
KVMA RAM_REGION GROUP RODATA_REGION
240+
SUBALIGN ${CONFIG_LINKER_ITERABLE_SUBALIGN}
241+
)
242+
endif()
243+
237244
if(CONFIG_INPUT)
238245
zephyr_iterable_section(NAME input_callback KVMA RAM_REGION GROUP RODATA_REGION)
239246
endif()

0 commit comments

Comments
 (0)