forked from sudomesh/disaster-radio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfetch_deps.sh
executable file
·84 lines (74 loc) · 2.28 KB
/
fetch_deps.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/bash
set -e
DEFAULT_BOARD="esp32"
DEFAULT_UPDATE="all"
BOARD=${1:-DEFAULT_BOARD}
UPDATE=${2:-DEFAULT_UPDATE}
if [ -d libs ]; then rm -rf libs; fi
mkdir -p libs
if [ $UPDATE != "libs" ]; then
if [ -d makeEspArduino ]; then rm -rf makeEspArduino; fi
if [ -d esp8266-arduino ]; then rm -rf esp8266-arduino; fi
if [ -d arduino-esp32 ]; then rm -rf arduino-esp32; fi
# get makeEspArduino
git clone https://github.com/plerup/makeEspArduino
cd makeEspArduino
git checkout tags/4.18.0
cp makeEspArduino.mk ../Makefile
cd ../
if [ -d makeEspArduino ]; then rm -rf makeEspArduino; fi
fi
if [ $BOARD == "esp8266" ]; then
if [ $UPDATE != "libs" ]; then
cp config.mk.esp8266 config.mk
# install esp8266-arduino build environment
git clone https://github.com/esp8266/Arduino.git esp8266-arduino
cd esp8266-arduino/
git checkout tags/2.4.0-rc1
cd tools/
python get.py
cd ../../
fi
# install ESPAsyncTCP
cd libs/
git clone https://github.com/me-no-dev/ESPAsyncTCP
cd ESPAsyncTCP/
git checkout 991f855109d8038ed2cf0b5fb89792fcfa23549c
cd ../../
fi
if [ $BOARD == "esp32" ]; then
if [ $UPDATE != "libs" ]; then
cp config.mk.esp32 config.mk
# install arduino-esp32 build environment
git clone https://github.com/espressif/arduino-esp32 arduino-esp32
cd arduino-esp32/
git checkout tags/1.0.4
cd tools/
python get.py
cd ../../
fi
# install ESPAsyncTCP
cd libs/
git clone https://github.com/me-no-dev/AsyncTCP
# see https://community.platformio.org/t/compile-error-when-trying-to-use-the-asynctcp-library/8460
cd AsyncTCP/
git checkout c9df7cdda6302f509db9c09d9a514a45f9392105
cd ../../
fi
cd libs/
git clone https://github.com/me-no-dev/ESPAsyncWebServer
cd ESPAsyncWebServer/
git checkout f13685ee97675be2ac9502d177d3024ebc49c1e0
cd ../
git clone https://github.com/sandeepmistry/arduino-LoRa
cd arduino-LoRa/
git checkout tags/0.6.1
cd ../
git clone https://github.com/sudomesh/LoRaLayer2
cd LoRaLayer2/
git checkout 8509821d2a04b5edccaaaab7a6ef3260aa7b2cba
cd ../
git clone https://github.com/paidforby/AsyncSDServer
cd AsyncSDServer/
git checkout 13375c6be978cb34180378ecf4042a3a4a1f5eab
cd ../../