CMakeLists.txt 729 B

123456789101112131415161718
  1. # The following lines of boilerplate have to be in your project's
  2. # CMakeLists in this exact order for cmake to work correctly
  3. cmake_minimum_required(VERSION 3.16)
  4. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  5. set(COMPONENTS main)
  6. project(test_build)
  7. add_custom_target(check_bootloader_sections ALL
  8. COMMAND ${PYTHON} $ENV{IDF_PATH}/tools/ci/check_callgraph.py
  9. --rtl-dirs ${CMAKE_BINARY_DIR}/bootloader
  10. --elf-file ${CMAKE_BINARY_DIR}/bootloader/bootloader.elf
  11. find-refs
  12. --from-sections=.iram_loader.text
  13. --to-sections=.iram.text
  14. --exit-code
  15. DEPENDS bootloader
  16. )