Build system: Add make erase_flash target

This commit is contained in:
Angus Gratton
2016-12-20 10:00:04 +11:00
parent 1ed584f896
commit 59e0f63d37
5 changed files with 17 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ bootloader: $(BOOTLOADER_BIN)
ESPTOOL_ALL_FLASH_ARGS += $(BOOTLOADER_OFFSET) $(BOOTLOADER_BIN)
bootloader-flash: $(BOOTLOADER_BIN)
bootloader-flash: $(BOOTLOADER_BIN) | erase_flash
$(ESPTOOLPY_WRITE_FLASH) 0x1000 $^
else ifdef CONFIG_SECURE_BOOTLOADER_ONE_TIME_FLASH