Add make httpflash command for commandline ota flashing

This commit is contained in:
Jeroen Domburg
2016-05-26 15:20:11 +08:00
parent d129c04e87
commit fbca81d76f
+5
View File
@@ -89,3 +89,8 @@ flash: $(TARGET_OUT) $(FW_BASE)
blankflash:
$(Q) $(ESPTOOL) $(ESPTOOL_OPTS) write_flash $(ESPTOOL_FLASHDEF) $(BLANKPOS) $(SDK_BASE)/bin/blank.bin $(INITDATAPOS) $(SDK_BASE)/bin/esp_init_data_default.bin
httpflash: $(FW_BASE)
$(Q) curl -X POST --data-binary '@build/httpd.ota' $(ESPIP)/flash/upload > /dev/null
$(Q) curl $(ESPIP)/flash/reboot
$(Q) echo -e '\nDone'