2019-04-28 15:38:46 +08:00
|
|
|
idf_component_register(SRCS "spiffsgen_example_main.c"
|
2024-09-24 14:22:10 +02:00
|
|
|
PRIV_REQUIRES spiffs mbedtls
|
|
|
|
|
INCLUDE_DIRS ".")
|
2019-01-31 19:54:45 +08:00
|
|
|
|
|
|
|
|
# Create a SPIFFS image from the contents of the 'spiffs_image' directory
|
|
|
|
|
# that fits the partition named 'storage'. FLASH_IN_PROJECT indicates that
|
|
|
|
|
# the generated image should be flashed when the entire project is flashed to
|
2020-11-10 18:40:01 +11:00
|
|
|
# the target with 'idf.py -p PORT flash'.
|
2019-01-31 19:54:45 +08:00
|
|
|
spiffs_create_partition_image(storage ../spiffs_image FLASH_IN_PROJECT)
|