From 14bfabd6e9e23c255dd0bec229d923b19f5d7407 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Tue, 10 Jan 2023 22:12:56 +0100 Subject: [PATCH] dist/tools/esptools/export.sh: fix IDF_TOOL_PATH default setting --- dist/tools/esptools/export.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dist/tools/esptools/export.sh b/dist/tools/esptools/export.sh index f3ab4d58f4..19dee95036 100755 --- a/dist/tools/esptools/export.sh +++ b/dist/tools/esptools/export.sh @@ -5,6 +5,10 @@ ESP32_GCC_VERSION_DIR="8.4.0" ESP32_OPENOCD_VERSION="v0.11.0-esp32-20211220" +if [ -z ${IDF_TOOLS_PATH} ]; then + IDF_TOOLS_PATH=${HOME}/.espressif +fi + TOOLS_PATH=${IDF_TOOLS_PATH}/tools export_arch()