From 18764498b00e6fd60c911f31fb30b82ce43f78b9 Mon Sep 17 00:00:00 2001
From: dongheng <930490596@qq.com>
Date: Tue, 19 Mar 2019 15:58:58 +0800
Subject: [PATCH] fix(esp8266): Fix OTA firmware depend error

---
 components/esp8266/Makefile.projbuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/esp8266/Makefile.projbuild b/components/esp8266/Makefile.projbuild
index 690a16f5..b4e74a77 100644
--- a/components/esp8266/Makefile.projbuild
+++ b/components/esp8266/Makefile.projbuild
@@ -118,7 +118,7 @@ endif
 	@echo [GEN] $(OTA_BIN)
 
 ifdef CONFIG_ESP8266_OTA_FROM_OLD
-$(OTA_V2_TO_V3_BIN):
+$(OTA_V2_TO_V3_BIN): all_binaries
 	@python $(IDF_PATH)/tools/pack_fw.py --output $(OTA_V2_TO_V3_BIN) pack3 $(ESPTOOL_ALL_FLASH_ARGS)
 	@echo [GEN] $(OTA_V2_TO_V3_BIN)
 endif