From 7d7027fe4d42099856551a49203820e63a3b9185 Mon Sep 17 00:00:00 2001 From: stellarshenson Date: Fri, 20 Sep 2019 10:00:17 +0200 Subject: [PATCH] Update component.mk added configurable spiffs image name --- extras/spiffs/component.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/spiffs/component.mk b/extras/spiffs/component.mk index c5c60c3..8e20402 100644 --- a/extras/spiffs/component.mk +++ b/extras/spiffs/component.mk @@ -7,6 +7,7 @@ SPIFFS_BASE_ADDR ?= 0x300000 SPIFFS_SIZE ?= 0x100000 SPIFFS_LOG_PAGE_SIZE ?= 256 SPIFFS_LOG_BLOCK_SIZE ?= 8192 +SPIFFS_IMAGE_NAME ?= spiffs.bin spiffs_CFLAGS += -DSPIFFS_SINGLETON=$(SPIFFS_SINGLETON) @@ -40,7 +41,7 @@ spiffs_SRC_DIR += $(spiffs_ROOT) # Example: # $(eval $(call make_spiffs_image,files)) 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 = $$(MKSPIFFS_DIR)/mkspiffs SPIFFS_FILE_LIST = $(shell find $(1))