fix(esp8266): Fix github issues 174
Use "$CONFIG_PYTHON" to generate firmware.
Closes
Merges
@@ -86,7 +86,9 @@ ifeq ($(ESPTOOLPY_FLASHFREQ),"80m")
ESP8266_FREQDIV ?= 15
endif
-ESP8266_BINSCRIPT ?= python $(IDF_PATH)/tools/gen_appbin.py
+PYTHON ?= $(call dequote,$(CONFIG_PYTHON))
+
+ESP8266_BINSCRIPT ?= $(PYTHON) $(IDF_PATH)/tools/gen_appbin.py
ifdef DEBUG_BIN_PARAM
$(info mode:$(ESP8266_BOOTMODE) flash:$(ESP8266_FLASHMODE) freqdiv:$(ESP8266_FREQDIV), size_map:$(ESP8266_SIZEMAP))
@@ -110,7 +112,6 @@ CONFIG_ESPTOOLPY_COMPRESSED ?= y
CONFIG_ESPTOOLPY_BEFORE_RESET ?=y
CONFIG_ESPTOOLPY_AFTER_RESET ?=y
-PYTHON ?= $(call dequote,$(CONFIG_PYTHON))
ESPTOOLPY_SRC := $(IDF_PATH)/components/esptool_py/esptool/esptool.py
CHIP ?= esp8266
