|
@@ -1,7 +1,12 @@
|
|
|
#!/bin/bash
|
|
|
-sudo apt-get install wget bzip2 texinfo flex babeltrace python expat bison tk-dev tcl-dev -y
|
|
|
+echo -e "$(tput setaf 10)AVR Toolchain builder prerequises install :$(tput setaf 7)\n"
|
|
|
+sudo apt-get install wget bzip2 texinfo flex babeltrace python expat bison tk-dev tcl-dev pixz pv libtool-bin -y
|
|
|
if ! [ -x "$(command -v swig)" ]
|
|
|
then
|
|
|
+ if ! [ -x "$(command -v pcre-config)" ]
|
|
|
+ then
|
|
|
+ sudo apt-get install libpcre++-dev -y
|
|
|
+ fi
|
|
|
wget -c http://wareck.free.fr/cross_compilation/avr_toolchain/swig-3.0.12.tar.xz
|
|
|
tar xvfJ swig-3.0.12.tar.xz
|
|
|
cd swig-3.0.12
|
|
@@ -19,3 +24,4 @@ if ! grep "/usr/local/avr/bin" ~/.bashrc >/dev/null
|
|
|
source ~/.bashrc
|
|
|
fi
|
|
|
|
|
|
+touch .prereq
|