Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Don't write blankfs.bin if SPIFFS is disabled. (SmingHub#1603)
Browse files Browse the repository at this point in the history
Reimplementation of PR SmingHub#1586 

Credits: fooker
  • Loading branch information
slaff authored and fooker committed Feb 16, 2019
1 parent 519fa2b commit 3b84486
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sming/Makefile-rboot.mk
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,11 @@ terminal:
flashinit:
$(vecho) "Flash init data default and blank data."
$(ESPTOOL) -p $(COM_PORT) -b $(COM_SPEED_ESPTOOL) erase_flash
ifeq ($(DISABLE_SPIFFS), 1)
$(ESPTOOL) -p $(COM_PORT) -b $(COM_SPEED_ESPTOOL) write_flash $(flashimageoptions) $(INIT_BIN_ADDR) $(SDK_BASE)/bin/esp_init_data_default.bin $(BLANK_BIN_ADDR) $(SDK_BASE)/bin/blank.bin
else
$(ESPTOOL) -p $(COM_PORT) -b $(COM_SPEED_ESPTOOL) write_flash $(flashimageoptions) $(INIT_BIN_ADDR) $(SDK_BASE)/bin/esp_init_data_default.bin $(BLANK_BIN_ADDR) $(SDK_BASE)/bin/blank.bin $(RBOOT_SPIFFS_0) $(SMING_HOME)/compiler/data/blankfs.bin
endif

rebuild: clean all

Expand Down

0 comments on commit 3b84486

Please sign in to comment.