Skip to content

Commit 2a9bf13

Browse files
author
David Thornley
committed
Address build error when path contains whitespace
The path environment under Windows Subsystem for Linux typically contains paths with spaces. Error Manifests as: - Setting IDF_PATH and re-invoking... /bin/sh: 1: Syntax error: "(" unexpected Makefile:21: recipe for target 'flash' failed Tested on Ubuntu 18.04 both on Linux proper and WSL.
1 parent f7b8cf0 commit 2a9bf13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ESP32_TOOLCHAIN_DL:=$(THIS_DIR)/cache/toolchain-esp32-$(PLATFORM)-$(TOOLCHAIN_VE
1919
all: | $(ESP32_GCC)
2020
%: | $(ESP32_GCC)
2121
@echo Setting IDF_PATH and re-invoking...
22-
@env IDF_PATH=$(IDF_PATH) PATH=$(PATH):$(ESP32_BIN) $(MAKE) -f $(THIS_MK_FILE) $@
22+
@env IDF_PATH=$(IDF_PATH) PATH="$(PATH):$(ESP32_BIN)" $(MAKE) -f $(THIS_MK_FILE) $@
2323
@if test "$@" = "clean"; then rm -rf $(THIS_DIR)/tools/toolchains/esp32-*; fi
2424

2525
install_toolchain: $(ESP32_GCC)

0 commit comments

Comments
 (0)