2018-01-12 02:49:13 +00:00
|
|
|
register_config_only_component()
|
2018-02-01 09:45:41 +00:00
|
|
|
|
2018-10-19 19:02:55 +00: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-11-11 07:36:10 +00:00
|
|
|
if(IDF_BUILD_ARTIFACTS)
|
|
|
|
# Generate pre-canned flasher args files suitable for passing to esptool.py
|
|
|
|
foreach(part project app bootloader partition_table)
|
|
|
|
configure_file(
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/flash_${part}_args.in"
|
|
|
|
"${IDF_BUILD_ARTIFACTS_DIR}/flash_${part}_args"
|
|
|
|
)
|
|
|
|
endforeach()
|
|
|
|
|
2018-02-27 04:45:30 +00:00
|
|
|
configure_file(
|
2018-11-11 07:36:10 +00:00
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/flasher_args.json.in"
|
|
|
|
"${IDF_BUILD_ARTIFACTS_DIR}/flasher_args.json"
|
2018-02-27 04:45:30 +00:00
|
|
|
)
|
2018-11-11 07:36:10 +00:00
|
|
|
endif()
|
2018-04-05 07:13:53 +00:00
|
|
|
|