esp-open-rtos/extras/spiffs/mkspiffs
sheinz d69b8390d4 SPIFFS: Fix PR review comments.
* Enable SPIFFS_USE_MAGIC
 * Enable SPIFFS_USE_MAGIC_LENGTH
 * Enable SPIFFS_FILEHDL_OFFSET
 * Rebuild mkspiffs if spiffs_config.h is changed
 * Emulate NOR flash in mkspiffs
 * Build spiffs image in 'flash' and 'test' targets
2016-07-27 10:12:59 +03:00
..
Makefile SPIFFS: Fix PR review comments. 2016-07-27 10:12:59 +03:00
mkspiffs.c SPIFFS: Fix PR review comments. 2016-07-27 10:12:59 +03:00
README.md Create SPIFFS image and flash it. 2016-07-14 14:49:34 +03:00

mkspiffs Create spiffs image

mkspiffs is a command line utility to create an image of SPIFFS in order to write to flash.

Usage

mkspiffs will be built automatically if you include the following line in your makefile:

$(eval $(call make_spiffs_image,files))

where files is the directory with files that should go into SPIFFS image.

Or you can build mkspiffs manually with:

make SPIFFS_SIZE=0x100000

mkspiffs cannot be built without specifying SPIFFS size because it uses the same SPIFFS sources as the firmware. And for the firmware SPIFFS size is compile time defined.

Please note that if you change SPIFFS_SIZE you need to rebuild mkspiffs. The easiest way is to run make clean for you project.

To manually generate SPIFFS image from directory, run:

mkspiffs DIRECTORY IMAGE_NAME