forked from thunderace/Esp8266-Arduino-Makefile
/
install-i686-pc-linux-gnu.sh
executable file
·32 lines (23 loc) · 1.11 KB
/
install-i686-pc-linux-gnu.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
declare ESP8266_VER=2.2.0
declare MKSPIFFS_VER=0.1.2
declare ESPTOOL_VER=0.4.8
declare DOWNLOAD_CACHE=./download
mkdir $DOWNLOAD_CACHE
# Get MKSPIFFS Tool
wget --no-clobber https://github.com/igrr/mkspiffs/releases/download/$MKSPIFFS_VER/mkspiffs-$MKSPIFFS_VER-linux32.tar.gz -P $DOWNLOAD_CACHE
tar xvfz $DOWNLOAD_CACHE/mkspiffs-$MKSPIFFS_VER-linux32.tar.gz -C ./bin --strip=1
chmod +x bin/mkspiffs
# Get ESPTOOL
wget --no-clobber https://github.com/igrr/esptool-ck/releases/download/$ESPTOOL_VER/esptool-$ESPTOOL_VER-linux32.tar.gz -P $DOWNLOAD_CACHE
tar xvfv $DOWNLOAD_CACHE/esptool-$ESPTOOL_VER-linux32.tar.gz -C ./bin --strip=1
chmod +x bin/esptool
# Get Xtensa GCC Compiler
wget --no-clobber http://arduino.esp8266.com/linux32-xtensa-lx106-elf.tar.gz -P $DOWNLOAD_CACHE
tar xvfz $DOWNLOAD_CACHE/linux32-xtensa-lx106-elf.tar.gz
# Get Arduino core for ESP8266 chip
wget --no-clobber https://github.com/esp8266/Arduino/releases/download/$ESP8266_VER/esp8266-$ESP8266_VER.zip -P $DOWNLOAD_CACHE
unzip $DOWNLOAD_CACHE/esp8266-$ESP8266_VER.zip
rm -f esp8266
ln -s esp8266-$ESP8266_VER esp8266
#cleanup
rm -fr $DOWNLOAD_CACHE