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