mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-19 23:45:28 +02:00
spiffs: follow symlinks feature during partition in spiffsgen
This commit is contained in:
committed by
Renz Christian Bagaporo
parent
d77a7c23da
commit
6153a0ab62
@@ -25,6 +25,10 @@ function(spiffs_create_partition_image partition base_dir)
|
||||
set(use_magic_len "--use-magic-len")
|
||||
endif()
|
||||
|
||||
if(CONFIG_SPIFFS_FOLLOW_SYMLINKS)
|
||||
set(follow_symlinks "--follow-symlinks")
|
||||
endif()
|
||||
|
||||
# Execute SPIFFS image generation; this always executes as there is no way to specify for CMake to watch for
|
||||
# contents of the base dir changing.
|
||||
add_custom_target(spiffs_${partition}_bin ALL
|
||||
@@ -32,6 +36,7 @@ function(spiffs_create_partition_image partition base_dir)
|
||||
--page-size=${CONFIG_SPIFFS_PAGE_SIZE}
|
||||
--obj-name-len=${CONFIG_SPIFFS_OBJ_NAME_LEN}
|
||||
--meta-len=${CONFIG_SPIFFS_META_LENGTH}
|
||||
${follow_symlinks}
|
||||
${use_magic}
|
||||
${use_magic_len}
|
||||
DEPENDS ${arg_DEPENDS}
|
||||
@@ -46,4 +51,4 @@ function(spiffs_create_partition_image partition base_dir)
|
||||
else()
|
||||
esptool_py_flash_project_args(${partition} ${offset} ${image_file})
|
||||
endif()
|
||||
endfunction()
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user