From ee7ad7e8be5c866410eb5e690da33f8c18e20349 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 14 Dec 2016 17:44:05 +0300 Subject: esp8266: Add "ota" target to produce firmware binary for use with yaota8266. https://github.com/pfalcon/yaota8266 is a (WIP) OTA-enabled bootloader which doesn't require reserving space 2x size of a firmware. --- esp8266/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'esp8266/Makefile') diff --git a/esp8266/Makefile b/esp8266/Makefile index 61b7c9b56..ebf5fc95b 100644 --- a/esp8266/Makefile +++ b/esp8266/Makefile @@ -186,7 +186,7 @@ reset: $(BUILD)/firmware-combined.bin: $(BUILD)/firmware.elf $(ECHO) "Create $@" $(Q)esptool.py elf2image $^ - $(Q)$(PYTHON) makeimg.py $(BUILD)/firmware.elf-0x00000.bin $(BUILD)/firmware.elf-0x0[1-f]000.bin $@ + $(Q)$(PYTHON) makeimg.py $(BUILD)/firmware.elf-0x00000.bin $(BUILD)/firmware.elf-0x[0-5][1-f]000.bin $@ $(BUILD)/firmware.elf: $(OBJ) $(ECHO) "LINK $@" @@ -196,6 +196,9 @@ $(BUILD)/firmware.elf: $(OBJ) 512k: $(MAKE) LDSCRIPT=esp8266_512k.ld CFLAGS_EXTRA='-DMP_CONFIGFILE=""' MICROPY_FATFS=0 MICROPY_PY_BTREE=0 +ota: + $(MAKE) LDSCRIPT=esp8266_ota.ld + #MAKE_PINS = boards/make-pins.py #BOARD_PINS = boards/$(BOARD)/pins.csv #AF_FILE = boards/stm32f4xx_af.csv -- cgit v1.2.3