From 4491644168b5c8ca0376611c187a8c3acaba40c4 Mon Sep 17 00:00:00 2001 From: Yuanyao Zhong <82843247+yyzhong-g@users.noreply.github.com> Date: Thu, 11 Nov 2021 16:51:11 -0500 Subject: [PATCH] Add a ld file in all-cluster-app/esp32 for tracing (#11657) pw_trace_tokenized backend depends on pw_tokenizer which requires this ld file. --- examples/all-clusters-app/esp32/main/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/all-clusters-app/esp32/main/CMakeLists.txt b/examples/all-clusters-app/esp32/main/CMakeLists.txt index a29e7a7ee086f3..6728949965494a 100644 --- a/examples/all-clusters-app/esp32/main/CMakeLists.txt +++ b/examples/all-clusters-app/esp32/main/CMakeLists.txt @@ -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 "$/protocol_buffer/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_rpc/protos.proto_library/nanopb_rpc"