Files
esp-idf/components/esp_riscv_trace/project_include.cmake

13 lines
550 B
CMake

idf_build_get_property(target IDF_TARGET)
idf_build_get_property(non_os_build NON_OS_BUILD)
if(IDF_BUILD_V2 AND CONFIG_ESP_RISCV_TRACE_ENABLE
AND NOT non_os_build
AND NOT "${target}" STREQUAL "linux")
# This ensures that the component is added to the build when the trace encoder
# is enabled, even if no other component depends on it.
# This allows users to simply enable it in menuconfig without needing to modify
# their component dependencies.
idf_project_add_default_build_component(esp_riscv_trace)
endif()