nodemcu-firmware/tools/update_spiffs.sh
Philip Gladstone af39a0bc25 Upgrade to latest SPIFFS and add building of file systems (#1226)
Fixes #1164 and thus also #1150, #1149, #1147 and #898.

* Move to latest version of SPIFFS
* Add SPIFFS porting layer for NodeMCU
* Add option to delete output if it doesn't fit
* Change FLASHSIZE to be in bits by default: default 4mb 32mb
* Add SPIFFS_MAX_FILESYSTEM_SIZE override
* Add notes on SPIFFS_FIXED_LOCATION
* Add 1M boundary
* Include the current version of the LICENSE
2016-06-05 23:10:58 +02:00

16 lines
302 B
Bash
Executable File

#!/bin/sh
# This script updates the SPIFFS code from the master repository
if [ ! -e ../tools/update_spiffs.sh ]; then
echo Must run from the tools directory
exit 1
fi
git clone https://github.com/pellepl/spiffs
cp spiffs/src/*.[ch] ../app/spiffs
cp spiffs/LICENSE ../app/spiffs
rm -fr spiffs