From 55b7d29767bc78f6575ecc41ab4537adbbe66bc8 Mon Sep 17 00:00:00 2001 From: sheinz Date: Fri, 15 Jul 2016 15:44:22 +0300 Subject: [PATCH] SPIFFS: Fix SPIFFS rebuild if SIZE is changed. --- extras/spiffs/component.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extras/spiffs/component.mk b/extras/spiffs/component.mk index b0b34c1..a0a8928 100644 --- a/extras/spiffs/component.mk +++ b/extras/spiffs/component.mk @@ -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