Skip to content

Commit

Permalink
Add a ld file in all-cluster-app/esp32 for tracing (#11657)
Browse files Browse the repository at this point in the history
pw_trace_tokenized backend depends on pw_tokenizer which requires
this ld file.
  • Loading branch information
yyzhong-g authored and pull[bot] committed Mar 10, 2022
1 parent 7d947dc commit 1763828
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/all-clusters-app/esp32/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ target_link_libraries(${COMPONENT_LIB} PUBLIC
pw_trace_tokenized.protos.nanopb_rpc
)

target_link_options(${COMPONENT_LIB}
PUBLIC
"-T${PIGWEED_ROOT}/pw_tokenizer/pw_tokenizer_linker_sections.ld"
)

set_property(TARGET ${chip_lib} APPEND PROPERTY LINK_LIBRARIES ${COMPONENT_LIB})
target_include_directories(${chip_lib} PUBLIC
"$<TARGET_FILE_DIR:${chip_lib}>/protocol_buffer/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_rpc/protos.proto_library/nanopb_rpc"
Expand Down

0 comments on commit 1763828

Please sign in to comment.