aboutsummaryrefslogtreecommitdiff
path: root/esp8266/Makefile
diff options
context:
space:
mode:
authorPaul Sokolovsky2016-12-14 17:44:05 +0300
committerPaul Sokolovsky2016-12-14 17:44:05 +0300
commitee7ad7e8be5c866410eb5e690da33f8c18e20349 (patch)
treed18da745de50b55a6dea092ae83e5ec1820bfe75 /esp8266/Makefile
parente8f2db7da3f0e60901b09ee6eada99a9e875497f (diff)
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.
Diffstat (limited to 'esp8266/Makefile')
-rw-r--r--esp8266/Makefile5
1 files changed, 4 insertions, 1 deletions
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="<mpconfigport_512k.h>"' 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