From e160eaf9380f9546e6c9a934e335a9ab14fd36e7 Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Sat, 12 Nov 2016 11:37:48 +1100 Subject: [PATCH] Automatically pick up esp32 toolchain on reinvoke. The NodeMCU toolchain is appended, so overriding toolchain in path is still easy to do. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 26b9bf62..8e4e22df 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ IDF_PATH=$(THIS_DIR)/sdk/esp32-esp-idf all: %: @echo Setting IDF_PATH and re-invoking... - @env IDF_PATH=$(IDF_PATH) $(MAKE) -f $(THIS_MK_FILE) $@ + @env IDF_PATH=$(IDF_PATH) PATH=$(PATH):$(THIS_DIR)/tools/toolchains/esp32/bin/ $(MAKE) -f $(THIS_MK_FILE) $@ else