Merge branch 'limit_gcov_build' into 'master'

change(examples): enable minimal build for gcov

Closes IDF-13857

See merge request espressif/esp-idf!41376
This commit is contained in:
Erhan Kurubas
2025-08-25 10:01:18 +02:00
3 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ cmake_minimum_required(VERSION 3.22)
file(TO_NATIVE_PATH "$ENV{IDF_PATH}/tools/cmake/project.cmake" _project_path)
include(${_project_path})
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(gcov_example)
file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/coverage_report" _coverage_path)

View File

@@ -1,6 +1,7 @@
idf_component_register(SRCS "gcov_example_main.c"
"gcov_example_func.c"
INCLUDE_DIRS ".")
INCLUDE_DIRS "."
PRIV_REQUIRES "sample" "esp_driver_gpio")
set_source_files_properties(gcov_example_main.c
gcov_example_func.c

View File

@@ -4,3 +4,5 @@ CONFIG_APPTRACE_ENABLE=y
CONFIG_APPTRACE_LOCK_ENABLE=y
CONFIG_APPTRACE_ONPANIC_HOST_FLUSH_TMO=-1
CONFIG_APPTRACE_POSTMORTEM_FLUSH_THRESH=0
CONFIG_ESP_GCOV_ENABLE=y