esp32/Makefile: Support using IDF_PATH as the env var to the IDF source.

This commit is contained in:
Damien George 2017-12-13 14:56:28 +11:00
parent 78302f7bb2
commit 0593d6f562
1 changed files with 4 additions and 0 deletions

View File

@ -23,8 +23,12 @@ CROSS_COMPILE ?= xtensa-esp32-elf-
# paths to ESP IDF and its components
ifeq ($(ESPIDF),)
ifneq ($(IDF_PATH),)
ESPIDF = $(IDF_PATH)
else
$(error Please configure the ESPIDF variable)
endif
endif
ESPCOMP = $(ESPIDF)/components
ESPTOOL ?= $(ESPCOMP)/esptool_py/esptool/esptool.py