Merge branch 'feature/flash_binary_partition_with_name' into 'master'

buildsystem: flash binary to a named partition

Closes IDF-2387

See merge request espressif/esp-idf!11342
This commit is contained in:
Angus Gratton
2020-12-10 06:24:15 +08:00
3 changed files with 215 additions and 22 deletions
+5 -3
View File
@@ -49,13 +49,15 @@ function(spiffs_create_partition_image partition base_dir)
idf_component_get_property(main_args esptool_py FLASH_ARGS)
idf_component_get_property(sub_args esptool_py FLASH_SUB_ARGS)
esptool_py_flash_target(${partition}-flash "${main_args}" "${sub_args}")
esptool_py_flash_target_image(${partition}-flash "${partition}" "${offset}" "${image_file}")
# Last (optional) parameter is the encryption for the target. In our
# case, spiffs is not encrypt so pass FALSE to the function.
esptool_py_flash_target(${partition}-flash "${main_args}" "${sub_args}" ALWAYS_PLAINTEXT)
esptool_py_flash_to_partition(${partition}-flash "${partition}" "${image_file}")
add_dependencies(${partition}-flash spiffs_${partition}_bin)
if(arg_FLASH_IN_PROJECT)
esptool_py_flash_target_image(flash "${partition}" "${offset}" "${image_file}")
esptool_py_flash_to_partition(flash "${partition}" "${image_file}")
add_dependencies(flash spiffs_${partition}_bin)
endif()
else()