automate/020_esp-idf.sh

22 lines
386 B
Bash

# Fetch the dependencies
sudo apt -y install git wget flex bison gperf python3 python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
USER=default
sudo usermod -a -G dialout $USER
# Get ESP-IDF
mkdir -p ~/esp
cd ~/esp
git clone --recursive https://github.com/espressif/esp-idf.git
# Set up the tools
cd ~/esp/esp-idf
./install.sh esp32
. ./export.sh