buildsystem: flash binary to a named partition

Changed optional value parameter 'encrypted' to a named parameter
called 'ALWAYS_PLAINTEXT'. This flag can be passed to:
- esptool_py_flash_target
- esptool_py_flash_target_image
Fix wrong identation.
This commit is contained in:
Omar Chebib
2020-11-26 12:19:41 +08:00
parent ccaee8ce88
commit 02ddecb69f
2 changed files with 123 additions and 122 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ function(spiffs_create_partition_image partition base_dir)
idf_component_get_property(sub_args esptool_py FLASH_SUB_ARGS)
# 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}" FALSE)
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)