2019-04-28 03:38:23 -04:00
|
|
|
idf_component_register(SRC_DIRS "."
|
2020-03-22 06:30:24 -04:00
|
|
|
PRIV_INCLUDE_DIRS "."
|
2022-10-14 08:15:32 -04:00
|
|
|
PRIV_REQUIRES cmock test_utils heap spi_flash)
|
2022-01-31 13:45:31 -05:00
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
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
|
|
|
|
--exit-code
|
|
|
|
DEPENDS ${elf_file_name}
|
|
|
|
)
|
|
|
|
endif()
|