SPIFFS: Fix SPIFFS rebuild if SIZE is changed.

This commit is contained in:
sheinz 2016-07-15 15:44:22 +03:00
parent 924860a78f
commit 55b7d29767

View file

@ -36,6 +36,10 @@ clean: clean_spiffs_img clean_mkspiffs
$$(SPIFFS_IMAGE): $$(MKSPIFFS) $$(SPIFFS_FILE_LIST)
$$< $(1) $$@
# Rebuild SPIFFS if Makefile is changed, where SPIFF_SIZE is defined
$$(spiffs_ROOT)spiffs_config.h: Makefile
$$(Q) touch $$@
# if SPIFFS_SIZE in Makefile is changed rebuild mkspiffs
$$(MKSPIFFS): Makefile
$$(MAKE) -C $$(MKSPIFFS_DIR) clean