File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,14 @@ app2-flash-all: app2
119
119
@$(ESPTOOLPY_WRITE_FLASH) $(patsubst $(APP_OFFSET),$(APP2_OFFSET),$(ESPTOOL_ALL_FLASH_ARGS))
120
120
121
121
$(OTA1_BIN): all_binaries
122
+ @cp $(RAW_BIN) $(RAW_BIN).old
122
123
@cp $(RAW_BIN) $(OTA1_BIN)
123
124
@echo [GEN] $(OTA1_BIN)
124
125
125
126
$(OTA2_BIN): $(OTA1_BIN)
126
127
ifdef __COMBILE_OTA_BIN
127
128
@rm -f ./build/esp8266/esp8266_out.ld
128
- @export CFLAGS= && export CXXFLAGS= && make APP_OFFSET=$(APP2_OFFSET) APP_SIZE=$(APP2_SIZE)
129
+ @export CFLAGS= && export CXXFLAGS= && make $(APP_BIN) APP_OFFSET=$(APP2_OFFSET) APP_SIZE=$(APP2_SIZE)
129
130
endif
130
131
@cp $(RAW_BIN) $(OTA2_BIN)
131
132
@echo [GEN] $(OTA2_BIN)
@@ -150,6 +151,8 @@ ifdef CONFIG_ESP8266_OTA_FROM_OLD
150
151
ota: $(OTA_V2_TO_V3_BIN)
151
152
else
152
153
ota: $(OTA_BIN)
154
+ @cp $(RAW_BIN).old $(RAW_BIN)
155
+ @rm $(RAW_BIN).old
153
156
endif
154
157
155
158
ota-clean:
You can’t perform that action at this time.
0 commit comments