esp32/Makefile: Support using IDF_PATH as the env var to the IDF source.
This commit is contained in:
parent
78302f7bb2
commit
0593d6f562
@ -23,8 +23,12 @@ CROSS_COMPILE ?= xtensa-esp32-elf-
|
|||||||
|
|
||||||
# paths to ESP IDF and its components
|
# paths to ESP IDF and its components
|
||||||
ifeq ($(ESPIDF),)
|
ifeq ($(ESPIDF),)
|
||||||
|
ifneq ($(IDF_PATH),)
|
||||||
|
ESPIDF = $(IDF_PATH)
|
||||||
|
else
|
||||||
$(error Please configure the ESPIDF variable)
|
$(error Please configure the ESPIDF variable)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ESPCOMP = $(ESPIDF)/components
|
ESPCOMP = $(ESPIDF)/components
|
||||||
ESPTOOL ?= $(ESPCOMP)/esptool_py/esptool/esptool.py
|
ESPTOOL ?= $(ESPCOMP)/esptool_py/esptool/esptool.py
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user