Skip to content

Commit 0593d6f

Browse files
committed
esp32/Makefile: Support using IDF_PATH as the env var to the IDF source.
1 parent 78302f7 commit 0593d6f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ports/esp32/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ CROSS_COMPILE ?= xtensa-esp32-elf-
2323

2424
# paths to ESP IDF and its components
2525
ifeq ($(ESPIDF),)
26+
ifneq ($(IDF_PATH),)
27+
ESPIDF = $(IDF_PATH)
28+
else
2629
$(error Please configure the ESPIDF variable)
2730
endif
31+
endif
2832
ESPCOMP = $(ESPIDF)/components
2933
ESPTOOL ?= $(ESPCOMP)/esptool_py/esptool/esptool.py
3034

0 commit comments

Comments
 (0)