2018-01-11 21:49:13 -05:00
|
|
|
register_config_only_component()
|
2018-02-01 04:45:41 -05:00
|
|
|
|
2018-10-19 15:02:55 -04:00
|
|
|
string(REPLACE ";" " " ESPTOOLPY_FLASH_PROJECT_OPTIONS "${ESPTOOLPY_ELF2IMAGE_FLASH_OPTIONS}")
|
|
|
|
set(ESPTOOLPY_FLASH_PROJECT_OPTIONS
|
|
|
|
"${ESPTOOLPY_FLASH_PROJECT_OPTIONS} ${BOOTLOADER_OFFSET} bootloader/bootloader.bin"
|
|
|
|
)
|
|
|
|
|
|
|
|
if(CONFIG_SECURE_BOOT_ENABLED)
|
|
|
|
set(ESPTOOLPY_FLASH_PROJECT_OPTIONS "")
|
|
|
|
endif()
|
|
|
|
|
2018-01-23 01:08:28 -05:00
|
|
|
# Generate pre-canned flasher args files suitable for passing to esptool.py
|
2018-05-24 02:05:31 -04:00
|
|
|
foreach(part project app bootloader partition_table)
|
2018-02-26 23:45:30 -05:00
|
|
|
configure_file(
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/flash_${part}_args.in"
|
|
|
|
"${CMAKE_BINARY_DIR}/flash_${part}_args"
|
|
|
|
)
|
2018-01-23 01:08:28 -05:00
|
|
|
endforeach()
|
2018-04-05 03:13:53 -04:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/flasher_args.json.in"
|
|
|
|
"${CMAKE_BINARY_DIR}/flasher_args.json"
|
|
|
|
)
|