SPIFFS: Fix SPIFFS rebuild if SIZE is changed.
This commit is contained in:
parent
924860a78f
commit
55b7d29767
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue