SPIFFS: Selectable configuration of SPIFFS
This commit is contained in:
parent
964a2f850a
commit
5051c5c528
10 changed files with 199 additions and 101 deletions
|
@ -1,16 +1,3 @@
|
|||
# Check if SPIFFS_SIZE defined only if not cleaning
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifndef SPIFFS_SIZE
|
||||
define ERROR_MSG
|
||||
Variable SPIFFS_SIZE is not defined.
|
||||
Cannot build mkspiffs without SPIFFS_SIZE.
|
||||
Please specify it in your application Makefile.
|
||||
|
||||
endef
|
||||
$(error $(ERROR_MSG))
|
||||
endif
|
||||
endif
|
||||
|
||||
# explicitly use gcc as in xtensa build environment it might be set to
|
||||
# cross compiler
|
||||
CC = gcc
|
||||
|
@ -27,8 +14,7 @@ OBJECTS := $(SOURCES:.c=.o)
|
|||
VPATH = ../spiffs/src
|
||||
|
||||
CFLAGS += -I..
|
||||
CFLAGS += -DSPIFFS_BASE_ADDR=0 # for image base addr is start of the image
|
||||
CFLAGS += -DSPIFFS_SIZE=$(SPIFFS_SIZE)
|
||||
CFLAGS += -DSPIFFS_SINGLETON=0
|
||||
|
||||
all: mkspiffs
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue