mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-03 18:40:59 +02:00
change(examples): enable minimal build for gcov
This commit is contained in:
@@ -8,6 +8,8 @@ cmake_minimum_required(VERSION 3.16)
|
|||||||
file(TO_NATIVE_PATH "$ENV{IDF_PATH}/tools/cmake/project.cmake" _project_path)
|
file(TO_NATIVE_PATH "$ENV{IDF_PATH}/tools/cmake/project.cmake" _project_path)
|
||||||
|
|
||||||
include(${_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)
|
project(gcov_example)
|
||||||
|
|
||||||
file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/coverage_report" _coverage_path)
|
file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/coverage_report" _coverage_path)
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
idf_component_register(SRCS "gcov_example_main.c"
|
idf_component_register(SRCS "gcov_example_main.c"
|
||||||
"gcov_example_func.c"
|
"gcov_example_func.c"
|
||||||
INCLUDE_DIRS ".")
|
INCLUDE_DIRS "."
|
||||||
|
PRIV_REQUIRES "sample" "esp_driver_gpio")
|
||||||
|
|
||||||
set_source_files_properties(gcov_example_main.c
|
set_source_files_properties(gcov_example_main.c
|
||||||
gcov_example_func.c
|
gcov_example_func.c
|
||||||
|
@@ -4,3 +4,5 @@ CONFIG_APPTRACE_ENABLE=y
|
|||||||
CONFIG_APPTRACE_LOCK_ENABLE=y
|
CONFIG_APPTRACE_LOCK_ENABLE=y
|
||||||
CONFIG_APPTRACE_ONPANIC_HOST_FLUSH_TMO=-1
|
CONFIG_APPTRACE_ONPANIC_HOST_FLUSH_TMO=-1
|
||||||
CONFIG_APPTRACE_POSTMORTEM_FLUSH_THRESH=0
|
CONFIG_APPTRACE_POSTMORTEM_FLUSH_THRESH=0
|
||||||
|
|
||||||
|
CONFIG_ESP_GCOV_ENABLE=y
|
||||||
|
Reference in New Issue
Block a user