mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-01 06:08:27 +08:00
chore(script): add script to add path of useful SDK tools
This commit is contained in:
19
add_path.sh
Executable file
19
add_path.sh
Executable file
@ -0,0 +1,19 @@
|
||||
# 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:
|
||||
#
|
||||
# . ${IDF_PATH}/add_path.sh
|
||||
#
|
||||
if [ -z ${IDF_PATH} ]; then
|
||||
echo "IDF_PATH must be set before including this script."
|
||||
else
|
||||
IDF_ADD_PATHS_EXTRAS="${IDF_PATH}/components/esptool_py/esptool"
|
||||
IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/partition_table/"
|
||||
IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/tools/"
|
||||
export PATH="${IDF_ADD_PATHS_EXTRAS}:${PATH}"
|
||||
echo "Added to PATH: ${IDF_ADD_PATHS_EXTRAS}"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user