CMakeLists.txt 531 B

123456789101112
  1. # Do not generate flash file when building bootloader or is in early expansion of the build
  2. if(CMAKE_BUILD_EARLY_EXPANSION OR BOOTLOADER_BUILD)
  3. return()
  4. endif()
  5. # Set values used in flash_bootloader_args.in and generate flash file
  6. # for bootloader
  7. set(BOOTLOADER_OFFSET 0x1000)
  8. esptool_py_flash_project_args(bootloader ${BOOTLOADER_OFFSET}
  9. ${BOOTLOADER_BUILD_DIR}/bootloader.bin
  10. FLASH_IN_PROJECT
  11. FLASH_FILE_TEMPLATE flash_bootloader_args.in)