2019-04-28 03:38:23 -04:00
|
|
|
idf_component_register(SRC_DIRS "."
|
2020-03-22 06:30:24 -04:00
|
|
|
PRIV_INCLUDE_DIRS "."
|
2020-08-04 22:16:32 -04:00
|
|
|
PRIV_REQUIRES cmock test_utils heap)
|
2022-11-04 10:48:09 -04:00
|
|
|
|
|
|
|
if(CONFIG_COMPILER_DUMP_RTL_FILES)
|
|
|
|
idf_build_get_property(elf_file_name EXECUTABLE GENERATOR_EXPRESSION)
|
|
|
|
add_custom_target(check_test_app_sections ALL
|
|
|
|
COMMAND ${PYTHON} $ENV{IDF_PATH}/tools/ci/check_callgraph.py
|
|
|
|
--rtl-dir ${CMAKE_BINARY_DIR}/esp-idf/heap/
|
|
|
|
--elf-file ${CMAKE_BINARY_DIR}/${elf_file_name}
|
|
|
|
find-refs
|
|
|
|
--from-sections=.iram0.text
|
|
|
|
--to-sections=.flash.text,.flash.rodata
|
2022-11-09 04:46:18 -05:00
|
|
|
--ignore-symbols=__func__/__assert_func,__func__/heap_caps_alloc_failed
|
2022-11-04 10:48:09 -04:00
|
|
|
--exit-code
|
|
|
|
DEPENDS ${elf_file_name}
|
|
|
|
)
|
|
|
|
endif()
|