fix(esp8266): Fix github issues 174

Use "$CONFIG_PYTHON" to generate firmware.
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/174
Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/185
This commit is contained in:
Dong Heng
2018-05-11 11:27:11 +08:00
committed by Wu Jian Gang
parent f076399d45
commit 5876cc6bc6

View File

@ -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