mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
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.
This commit is contained in:
parent
f7b8cf018e
commit
2a9bf13ab8
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ ESP32_TOOLCHAIN_DL:=$(THIS_DIR)/cache/toolchain-esp32-$(PLATFORM)-$(TOOLCHAIN_VE
|
|||||||
all: | $(ESP32_GCC)
|
all: | $(ESP32_GCC)
|
||||||
%: | $(ESP32_GCC)
|
%: | $(ESP32_GCC)
|
||||||
@echo Setting IDF_PATH and re-invoking...
|
@echo Setting IDF_PATH and re-invoking...
|
||||||
@env IDF_PATH=$(IDF_PATH) PATH=$(PATH):$(ESP32_BIN) $(MAKE) -f $(THIS_MK_FILE) $@
|
@env IDF_PATH=$(IDF_PATH) PATH="$(PATH):$(ESP32_BIN)" $(MAKE) -f $(THIS_MK_FILE) $@
|
||||||
@if test "$@" = "clean"; then rm -rf $(THIS_DIR)/tools/toolchains/esp32-*; fi
|
@if test "$@" = "clean"; then rm -rf $(THIS_DIR)/tools/toolchains/esp32-*; fi
|
||||||
|
|
||||||
install_toolchain: $(ESP32_GCC)
|
install_toolchain: $(ESP32_GCC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user