forked from espressif/esp-adf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexport.sh
executable file
·27 lines (23 loc) · 835 Bytes
/
export.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
if [ -z "$ADF_PATH" ]; then
basedir=$(dirname "$0")
export ADF_PATH=$(cd "${basedir}"; pwd)
fi
if [ -z "$IDF_PATH" ]; then
export IDF_PATH=$ADF_PATH/esp-idf
fi
echo "ADF_PATH: $ADF_PATH"
echo "IDF_PATH: $IDF_PATH"
source ${IDF_PATH}/export.sh || return $?
source "${IDF_PATH}/tools/detect_python.sh"
"${ESP_PYTHON}" "${ADF_PATH}/tools/adf_install_patches.py" apply-patch
echo -e "\nThe following command can be executed now to view detailed usage:"
echo -e ""
echo -e " idf.py --help"
echo -e "\nCompilation example (The commands highlighted in yellow below are optional: Configure the chip and project settings separately)"
echo -e ""
echo -e " cd $ADF_PATH/examples/cli"
echo -e " \033[33midf.py set-target esp32\033[0m"
echo -e " \033[33midf.py menuconfig\033[0m"
echo -e " idf.py build"
echo -e ""