Lines Matching full:idf_path
33 if [ -z "${IDF_PATH}" ]
35 # IDF_PATH not set in the environment.
36 # If using bash or zsh, try to guess IDF_PATH from script location.
47 echo "Could not detect IDF_PATH. Please set it before sourcing this script:"
48 echo " export IDF_PATH=(add path here)"
63 export IDF_PATH="${script_dir}"
64 echo "Setting IDF_PATH to '${IDF_PATH}'"
66 # IDF_PATH came from the environment, check if the path is valid
67 if [ ! -d "${IDF_PATH}" ]
69 echo "IDF_PATH is set to '${IDF_PATH}', but it is not a valid directory."
70 echo "If you have set IDF_PATH manually, check if the path is correct."
74 if [ ! -f "${IDF_PATH}/tools/idf.py" ] || [ ! -f "${IDF_PATH}/tools/idf_tools.py" ]
76 echo "IDF_PATH is set to '${IDF_PATH}', but it doesn't look like an ESP-IDF directory."
77 echo "If you have set IDF_PATH manually, check if the path is correct."
82 export IDF_PATH="${IDF_PATH}"
88 . "${IDF_PATH}/tools/detect_python.sh"
92 export IDF_TOOLS_EXPORT_CMD=${IDF_PATH}/export.sh
93 export IDF_TOOLS_INSTALL_CMD=${IDF_PATH}/install.sh
94 idf_exports=$("$ESP_PYTHON" "${IDF_PATH}/tools/idf_tools.py" export) || return 1
99 python "${IDF_PATH}/tools/check_python_dependencies.py" || return 1
103 # ${IDF_PATH}/tools is already added by 'idf_tools.py export'
104 IDF_ADD_PATHS_EXTRAS="${IDF_PATH}/components/esptool_py/esptool"
105 IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/espcoredump"
106 IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/partition_table"
107 IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/app_update"