2016-09-01 04:27:51 -04: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 04:39:13 -04:00
|
|
|
# . ${IDF_PATH}/add_path.sh
|
2016-09-01 04:27:51 -04:00
|
|
|
#
|
|
|
|
if [ -z ${IDF_PATH} ]; then
|
|
|
|
echo "IDF_PATH must be set before including this script."
|
|
|
|
else
|
2018-09-14 10:51:23 -04: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 02:55:37 -04:00
|
|
|
export PATH="${IDF_ADD_PATHS_EXTRAS}:${PATH}"
|
2016-09-01 04:27:51 -04:00
|
|
|
echo "Added to PATH: ${IDF_ADD_PATHS_EXTRAS}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|