|
| 1 | +#!/bin/sh |
| 2 | + |
| 3 | +############### |
| 4 | +# INSTALLATION |
| 5 | +############### |
| 6 | + |
| 7 | +# change into root template directory |
| 8 | +cd extras/ci/espidf || exit |
| 9 | + |
| 10 | +echo "installing esp-idf..." |
| 11 | +if [ ! -d "esp-idf" ] ; then |
| 12 | + git clone https://github.com/espressif/esp-idf.git |
| 13 | +fi |
| 14 | +( |
| 15 | + cd esp-idf || exit |
| 16 | + git checkout 1d7068e4b |
| 17 | + git submodule update --init --recursive |
| 18 | + ./install.sh |
| 19 | +) |
| 20 | + |
| 21 | +echo "esp-idf installed" |
| 22 | + |
| 23 | +if [ ! -d "components" ] ; then |
| 24 | + mkdir -p components |
| 25 | +fi |
| 26 | + |
| 27 | +echo "installing arduino-esp32" |
| 28 | +( |
| 29 | + cd components || exit |
| 30 | + if [ ! -d "arduino" ] ; then |
| 31 | + git clone https://github.com/espressif/arduino-esp32.git arduino |
| 32 | + fi |
| 33 | + ( |
| 34 | + cd arduino || exit |
| 35 | + git checkout master #21947eb |
| 36 | + git submodule update --init --recursive |
| 37 | + ) |
| 38 | +) |
| 39 | +echo "arduino-esp32 installed" |
| 40 | + |
| 41 | +echo "installing ArduinoJson" |
| 42 | +( |
| 43 | + cd components || exit |
| 44 | + if [ ! -d "ArduinoJson" ] ; then |
| 45 | + git clone https://github.com/qt1/ArduinoJson.git |
| 46 | + # TODO: must be switched (after PR merge) to: https://github.com/bblanchon/ArduinoJson.git |
| 47 | + fi |
| 48 | + ( |
| 49 | + cd ArduinoJson || exit |
| 50 | + git checkout master |
| 51 | + git submodule update --init --recursive |
| 52 | + ) |
| 53 | +) |
| 54 | +echo "ArduinoJson installed" |
| 55 | + |
| 56 | +echo "installing Ethernet" |
| 57 | +( |
| 58 | + cd components || exit |
| 59 | + if [ ! -d "Ethernet" ] ; then |
| 60 | + git clone https://github.com/andreaskuster/Ethernet.git |
| 61 | + # TODO: must be switched to (after PR merge): https://github.com/arduino-libraries/Ethernet.git |
| 62 | + fi |
| 63 | + ( |
| 64 | + cd Ethernet || exit |
| 65 | + git checkout master |
| 66 | + git submodule update --init --recursive |
| 67 | + ) |
| 68 | +) |
| 69 | +echo "Ethernet installed" |
| 70 | + |
| 71 | +# set env variables |
| 72 | +. ./esp-idf/export.sh |
| 73 | + |
| 74 | +cd ../../.. |
| 75 | + |
0 commit comments