From: Ivan Grokhotkov Date: Mon, 7 Oct 2019 11:28:38 +0000 (+0200) Subject: examples/restful_server: fix Makefile syntax for flashing SPIFFS X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75f2948e02a498711b7080b094795ae2956ce866;p=esp-idf examples/restful_server: fix Makefile syntax for flashing SPIFFS Closes https://github.com/espressif/esp-idf/issues/4050 --- diff --git a/examples/protocols/http_server/restful_server/Makefile b/examples/protocols/http_server/restful_server/Makefile index c07edffd2a..ba534aed17 100644 --- a/examples/protocols/http_server/restful_server/Makefile +++ b/examples/protocols/http_server/restful_server/Makefile @@ -7,7 +7,8 @@ include $(IDF_PATH)/make/project.mk ifdef CONFIG_EXAMPLE_WEB_DEPLOY_SF WEB_SRC_DIR = $(shell pwd)/front/web-demo ifneq ($(wildcard $(WEB_SRC_DIR)/dist/.*),) -$(eval $(call spiffs_create_partition_image,www,$(WEB_SRC_DIR)/dist,FLASH_IN_PROJECT)) +SPIFFS_IMAGE_FLASH_IN_PROJECT := 1 +$(eval $(call spiffs_create_partition_image,www,$(WEB_SRC_DIR)/dist)) else $(error $(WEB_SRC_DIR)/dist doesn't exist. Please run 'npm run build' in $(WEB_SRC_DIR)) endif