mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
spiffs: add ability to specify dependencies when dirs themselves are generated
This commit is contained in:
@@ -20,7 +20,7 @@ endif
|
|||||||
define spiffs_create_partition_image
|
define spiffs_create_partition_image
|
||||||
|
|
||||||
|
|
||||||
$(1)_bin: $(PARTITION_TABLE_BIN) | check_python_dependencies
|
$(1)_bin: $(PARTITION_TABLE_BIN) $(DEPENDS) | check_python_dependencies
|
||||||
partition_size=`$(GET_PART_INFO) \
|
partition_size=`$(GET_PART_INFO) \
|
||||||
--partition-table-file $(PARTITION_TABLE_BIN) \
|
--partition-table-file $(PARTITION_TABLE_BIN) \
|
||||||
get_partition_info --partition-name $(1) --info size`; \
|
get_partition_info --partition-name $(1) --info size`; \
|
||||||
|
@@ -4,7 +4,8 @@
|
|||||||
# have the created image flashed using `idf.py flash`
|
# have the created image flashed using `idf.py flash`
|
||||||
function(spiffs_create_partition_image partition base_dir)
|
function(spiffs_create_partition_image partition base_dir)
|
||||||
set(options FLASH_IN_PROJECT)
|
set(options FLASH_IN_PROJECT)
|
||||||
cmake_parse_arguments(arg "${options}" "" "" "${ARGN}")
|
set(multi DEPENDS)
|
||||||
|
cmake_parse_arguments(arg "${options}" "" "${multi}" "${ARGN}")
|
||||||
|
|
||||||
idf_build_get_property(idf_path IDF_PATH)
|
idf_build_get_property(idf_path IDF_PATH)
|
||||||
set(spiffsgen_py ${PYTHON} ${idf_path}/components/spiffs/spiffsgen.py)
|
set(spiffsgen_py ${PYTHON} ${idf_path}/components/spiffs/spiffsgen.py)
|
||||||
@@ -33,6 +34,7 @@ function(spiffs_create_partition_image partition base_dir)
|
|||||||
--meta-len=${CONFIG_SPIFFS_META_LENGTH}
|
--meta-len=${CONFIG_SPIFFS_META_LENGTH}
|
||||||
${use_magic}
|
${use_magic}
|
||||||
${use_magic_len}
|
${use_magic_len}
|
||||||
|
DEPENDS ${arg_DEPENDS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" APPEND PROPERTY
|
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" APPEND PROPERTY
|
||||||
|
Reference in New Issue
Block a user