21 lines
668 B
Bash
21 lines
668 B
Bash
#!/bin/bash
|
|
# sudo apt update
|
|
# sudo apt install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
|
|
|
|
# unset any esp-idf/-tools envvars
|
|
unset ESPIDFTOOLS_INSTALLDIR
|
|
unset IDF_PATH
|
|
unset ESP_IDF_VERSION
|
|
unset IDF_PYTHON_ENV_PATH
|
|
unset OPENOCD_SCRIPTS
|
|
unset ESP_ROM_ELF_DIR
|
|
unset IDF_DEACTIVATE_FILE_PATH
|
|
unset IDF_TOOLS_INSTALL_CMD
|
|
unset IDF_TOOLS_EXPORT_CMD
|
|
unset ESPPORT
|
|
unset ESPBAUD
|
|
unset ESPTARGET
|
|
|
|
mkdir -p ~/esp
|
|
git clone --recursive https://github.com/PrincessPi3/esp-idf-tools.git ~/esp/esp-idf-tools
|
|
bash ~/esp/esp-idf-tools/esp-idf-tools-cmd.sh # run as default noninteractive mode |