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
|
2017-02-12 22:48:41 +00:00
|
|
|
IDF_ADD_PATHS_EXTRAS="${IDF_PATH}/components/esptool_py/esptool:${IDF_PATH}/components/espcoredump:${IDF_PATH}/components/partition_table/"
|
2016-09-01 08:27:51 +00:00
|
|
|
export PATH="${PATH}:${IDF_ADD_PATHS_EXTRAS}"
|
|
|
|
echo "Added to PATH: ${IDF_ADD_PATHS_EXTRAS}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|