Update component.mk
added configurable spiffs image name
This commit is contained in:
parent
53fa634908
commit
7d7027fe4d
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ SPIFFS_BASE_ADDR ?= 0x300000
|
||||||
SPIFFS_SIZE ?= 0x100000
|
SPIFFS_SIZE ?= 0x100000
|
||||||
SPIFFS_LOG_PAGE_SIZE ?= 256
|
SPIFFS_LOG_PAGE_SIZE ?= 256
|
||||||
SPIFFS_LOG_BLOCK_SIZE ?= 8192
|
SPIFFS_LOG_BLOCK_SIZE ?= 8192
|
||||||
|
SPIFFS_IMAGE_NAME ?= spiffs.bin
|
||||||
|
|
||||||
|
|
||||||
spiffs_CFLAGS += -DSPIFFS_SINGLETON=$(SPIFFS_SINGLETON)
|
spiffs_CFLAGS += -DSPIFFS_SINGLETON=$(SPIFFS_SINGLETON)
|
||||||
|
@ -40,7 +41,7 @@ spiffs_SRC_DIR += $(spiffs_ROOT)
|
||||||
# Example:
|
# Example:
|
||||||
# $(eval $(call make_spiffs_image,files))
|
# $(eval $(call make_spiffs_image,files))
|
||||||
define make_spiffs_image
|
define make_spiffs_image
|
||||||
SPIFFS_IMAGE = $(addprefix $(FIRMWARE_DIR),spiffs.bin)
|
SPIFFS_IMAGE = $(addprefix $(FIRMWARE_DIR),$(SPIFFS_IMAGE_NAME))
|
||||||
MKSPIFFS_DIR = $(ROOT)/extras/spiffs/mkspiffs
|
MKSPIFFS_DIR = $(ROOT)/extras/spiffs/mkspiffs
|
||||||
MKSPIFFS = $$(MKSPIFFS_DIR)/mkspiffs
|
MKSPIFFS = $$(MKSPIFFS_DIR)/mkspiffs
|
||||||
SPIFFS_FILE_LIST = $(shell find $(1))
|
SPIFFS_FILE_LIST = $(shell find $(1))
|
||||||
|
|
Loading…
Reference in a new issue