diff options
author | Damien George <damien.p.george@gmail.com> | 2017-12-13 14:56:28 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-12-13 14:56:28 +1100 |
commit | 0593d6f5627a75d6d3cc894c4cf421158dc6cedf (patch) | |
tree | 307d24dc74783341f9b1b87c8e54e1144feb2b6b | |
parent | 78302f7bb2b32ce8ad91d9d3a4ef55f5c7f8840e (diff) |
esp32/Makefile: Support using IDF_PATH as the env var to the IDF source.
-rw-r--r-- | ports/esp32/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/esp32/Makefile b/ports/esp32/Makefile index 48d4b9d5c..3f0e47c17 100644 --- a/ports/esp32/Makefile +++ b/ports/esp32/Makefile @@ -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 |