fix(esp8266): Fix OTA firmware generation command
@@ -117,9 +117,11 @@ ifdef __COMBILE_OTA_BIN
endif
@echo [GEN] $(OTA_BIN)
+PYTHON ?= $(call dequote,$(CONFIG_PYTHON))
+
ifdef CONFIG_ESP8266_OTA_FROM_OLD
$(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)
+ @$(PYTHON) $(IDF_PATH)/tools/pack_fw.py --output $(OTA_V2_TO_V3_BIN) --app $(PROJECT_NAME).bin pack3 $(ESPTOOL_ALL_FLASH_ARGS)
@echo [GEN] $(OTA_V2_TO_V3_BIN)
endif
