mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
11 lines
439 B
CMake
11 lines
439 B
CMake
set(COMPONENT_SRCS "spiffsgen_example_main.c")
|
|
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
|
|
|
register_component()
|
|
|
|
# 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
|
|
# the target with 'idf.py flash'.
|
|
spiffs_create_partition_image(storage ../spiffs_image FLASH_IN_PROJECT)
|