Merge branch 'bugfix/fix_combine_binary_overwrite_check' into 'master'

Fix combine binary overwrite checking

See merge request sdk/ESP8266_RTOS_SDK!779
This commit is contained in:
Dong Heng
2019-03-01 14:13:07 +08:00
5 changed files with 56 additions and 9 deletions

View File

@ -217,7 +217,7 @@ config ESP8266_OTA_FROM_OLD
bool "(**Expected**)ESP8266 update from old SDK by OTA"
default n
depends on IDF_TARGET_ESP8266
select ESP8266_BOOT_COPY_APP
select ESP8266_BOOT_COPY_APP if ESPTOOLPY_FLASHSIZE_1MB
help
The function is not released.

View File

@ -134,7 +134,7 @@ ifdef CONFIG_ESP8266_OTA_FROM_OLD
$(OTA_V2_TO_V3_BIN): $(OTA_BIN)
@cp $(RAW_BIN) $(RAW_BIN).tmp.bak
@cp $(OTA1_BIN) $(RAW_BIN)
@python $(IDF_PATH)/tools/pack_fw.py --output $(OTA_V2_TO_V3_BIN) pack3 $(ESPTOOL_ALL_FLASH_ARGS)
@python $(IDF_PATH)/tools/pack_fw.py --output $(OTA_V2_TO_V3_BIN) --app $(PROJECT_NAME).bin pack3 $(ESPTOOL_ALL_FLASH_ARGS)
@cp $(RAW_BIN).tmp.bak $(RAW_BIN)
@echo [GEN] $(OTA_V2_TO_V3_BIN)
endif