install.sh 642 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. set -e
  3. sudo apt-get update
  4. sudo apt install -y cmake python3-pip check libsubunit-dev wget tar git
  5. git clone -b v3.2.3 --recursive https://github.com/espressif/esp-idf.git $IDF_PATH
  6. cd $IDF_PATH
  7. python -m pip install wheel
  8. python -m pip install --user -r $IDF_PATH/requirements.txt
  9. # See https://docs.espressif.com/projects/esp-idf/en/stable/get-started/linux-setup.html#toolchain-setup
  10. wget -q https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
  11. tar -xf xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz -C $IDF_PATH
  12. rm xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz