fix(check_callgraph): rework --ignore-refs to be more generic

This commit is contained in:
Ivan Grokhotkov
2024-03-26 14:45:59 +01:00
parent 73041ea10a
commit 64757e9fea
2 changed files with 58 additions and 40 deletions

View File

@@ -9,6 +9,14 @@ set(COMPONENTS main)
project(test_heap)
string(JOIN "," ignore_refs
heap_caps_*/__func__*
tlsf_*/__func__*
multi_heap_*/__func__*
dram_alloc_to_iram_addr/__func__*
list_*/__func__*
)
if(CONFIG_COMPILER_DUMP_RTL_FILES)
add_custom_target(check_test_app_sections ALL
COMMAND ${PYTHON} $ENV{IDF_PATH}/tools/ci/check_callgraph.py
@@ -17,7 +25,7 @@ if(CONFIG_COMPILER_DUMP_RTL_FILES)
find-refs
--from-sections=.iram0.text
--to-sections=.flash.text,.flash.rodata
--ignore-symbols=__func__/__assert_func,__func__/heap_caps_alloc_failed
--ignore-refs=${ignore_refs}
--exit-code
DEPENDS ${elf}
)