Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions frontends/coap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,14 @@ if(CONFIG_ZEPHLETS_COAP)
zephlet_coap_uri.c
)
zephyr_include_directories(include)

# `COAP_SERVICE_DEFINE(zlet_coap_service, ...)` plus each codegen-emitted
# `COAP_RESOURCE_DEFINE(<type>_coap_resource, zlet_coap_service, ...)`
# produces references to `_coap_resource_zlet_coap_service_list_{start,end}`.
# Declare the matching iterable section here so consuming apps don't need
# to replicate the linker glue.
zephyr_linker_sources(DATA_SECTIONS sections-ram.ld)
zephyr_iterable_section(
NAME coap_resource_zlet_coap_service
GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT})
endif()
File renamed without changes.
9 changes: 0 additions & 9 deletions tests/coap_functional/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,3 @@ zephyr_nanopb_sources(app ${LOCAL_PROTO_FILES_LIST})
set(CMAKE_CURRENT_SOURCE_DIR ${_saved_csd})

target_sources(app PRIVATE src/main.c)

# `COAP_SERVICE_DEFINE(zlet_coap_service, ...)` declares an iterable
# section named `coap_resource_zlet_coap_service`. The test app owns
# the linker-side registration: sections-ram.ld covers the pre-link
# pass, zephyr_iterable_section covers the CMake linker generator path.
zephyr_linker_sources(DATA_SECTIONS sections-ram.ld)
zephyr_iterable_section(
NAME coap_resource_zlet_coap_service
GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT})
Loading