2022-09-19 05:46:55 -04:00
|
|
|
# The following lines of boilerplate have to be in your project's
|
|
|
|
# CMakeLists in this exact order for cmake to work correctly
|
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
2023-06-12 04:47:16 -04:00
|
|
|
|
|
|
|
#"Trim" the build. Include the minimal set of components, main, and anything it depends on.
|
|
|
|
set(COMPONENTS main)
|
|
|
|
|
2022-09-19 05:46:55 -04:00
|
|
|
project(test_heap)
|
2022-11-04 10:48:09 -04:00
|
|
|
|
2024-03-26 09:45:59 -04:00
|
|
|
string(JOIN "," ignore_refs
|
|
|
|
heap_caps_*/__func__*
|
|
|
|
tlsf_*/__func__*
|
|
|
|
multi_heap_*/__func__*
|
|
|
|
dram_alloc_to_iram_addr/__func__*
|
|
|
|
list_*/__func__*
|
|
|
|
)
|
|
|
|
|
2022-11-04 10:48:09 -04:00
|
|
|
if(CONFIG_COMPILER_DUMP_RTL_FILES)
|
|
|
|
add_custom_target(check_test_app_sections ALL
|
|
|
|
COMMAND ${PYTHON} $ENV{IDF_PATH}/tools/ci/check_callgraph.py
|
2023-06-27 23:29:02 -04:00
|
|
|
--rtl-dirs ${CMAKE_BINARY_DIR}/esp-idf/heap/
|
2022-11-04 10:48:09 -04:00
|
|
|
--elf-file ${CMAKE_BINARY_DIR}/test_heap.elf
|
|
|
|
find-refs
|
|
|
|
--from-sections=.iram0.text
|
|
|
|
--to-sections=.flash.text,.flash.rodata
|
2024-03-26 09:45:59 -04:00
|
|
|
--ignore-refs=${ignore_refs}
|
2022-11-04 10:48:09 -04:00
|
|
|
--exit-code
|
|
|
|
DEPENDS ${elf}
|
|
|
|
)
|
|
|
|
endif()
|