Skip to content

Commit f5750e8

Browse files
committed
esp8266/Makefile: Produce OTA firmware as firmware-ota.bin.
1 parent 86d2109 commit f5750e8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

esp8266/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ FROZEN_MPY_DIR = modules
1414
# include py core make definitions
1515
include ../py/py.mk
1616

17+
FWBIN = $(BUILD)/firmware-combined.bin
1718
PORT ?= /dev/ttyACM0
1819
BAUD ?= 115200
1920
FLASH_MODE ?= qio
@@ -159,7 +160,7 @@ SRC_QSTR += $(SRC_C) $(STM_SRC_C) $(EXTMOD_SRC_C) $(DRIVERS_SRC_C)
159160
# Append any auto-generated sources that are needed by sources listed in SRC_QSTR
160161
SRC_QSTR_AUTO_DEPS +=
161162

162-
all: $(BUILD)/libaxtls.a $(BUILD)/firmware-combined.bin
163+
all: $(BUILD)/libaxtls.a $(FWBIN)
163164

164165
CONFVARS_FILE = $(BUILD)/confvars
165166

@@ -187,7 +188,7 @@ erase:
187188
reset:
188189
echo -e "\r\nimport machine; machine.reset()\r\n" >$(PORT)
189190

190-
$(BUILD)/firmware-combined.bin: $(BUILD)/firmware.elf
191+
$(FWBIN): $(BUILD)/firmware.elf
191192
$(ECHO) "Create $@"
192193
$(Q)esptool.py elf2image $^
193194
$(Q)$(PYTHON) makeimg.py $(BUILD)/firmware.elf-0x00000.bin $(BUILD)/firmware.elf-0x[0-5][1-f]000.bin $@
@@ -202,7 +203,7 @@ $(BUILD)/firmware.elf: $(OBJ)
202203

203204
ota:
204205
rm -f $(BUILD)/firmware.elf $(BUILD)/firmware.elf*.bin
205-
$(MAKE) LDSCRIPT=esp8266_ota.ld
206+
$(MAKE) LDSCRIPT=esp8266_ota.ld FWBIN=firmware-ota.bin
206207

207208
#MAKE_PINS = boards/make-pins.py
208209
#BOARD_PINS = boards/$(BOARD)/pins.csv

0 commit comments

Comments
 (0)