2016-09-01 08:27:51 +00:00
|
|
|
# This shell snippet appends useful esp-idf tools to your PATH environment
|
|
|
|
# variable. This means you can run esp-idf tools without needing to give the
|
|
|
|
# full path.
|
|
|
|
#
|
|
|
|
# Use this script like this:
|
|
|
|
#
|
2016-09-12 08:39:13 +00:00
|
|
|
# . ${IDF_PATH}/add_path.sh
|
2016-09-01 08:27:51 +00:00
|
|
|
#
|
|
|
|
if [ -z ${IDF_PATH} ]; then
|
|
|
|
echo "IDF_PATH must be set before including this script."
|
|
|
|
else
|
2018-09-14 14:51:23 +00:00
|
|
|
IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/esptool_py/esptool"
|
|
|
|
IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/espcoredump"
|
|
|
|
IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/partition_table/"
|
|
|
|
IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/tools/"
|
2018-09-27 06:55:37 +00:00
|
|
|
export PATH="${IDF_ADD_PATHS_EXTRAS}:${PATH}"
|
2016-09-01 08:27:51 +00:00
|
|
|
echo "Added to PATH: ${IDF_ADD_PATHS_EXTRAS}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|