Last active
May 21, 2018 05:38
-
-
Save Shidfar/3584e5b8b1c0053ebb272a97dad491d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PREFIX="/usr/local/avr" | |
export EXTRAS="/usr/local/extras" | |
export INITIALDIR="/path/to/dev/folder/avr" | |
mkdir $PREFIX | |
mkdir $EXTRAS | |
# -------------- Binutils | |
cd $INITIALDIR | |
tar xzf binutils-*.tar.xz - | |
cd binutils-* | |
mkdir build-avr | |
cd build-avr | |
../configure --prefix=$PREFIX --target=avr --disable-nls | |
make | |
make install | |
# -------------- GCC | |
cd $INITIALDIR | |
tar xf gcc-*.tar.xz - | |
cd gcc-* | |
mkdir build-avr | |
./contrib/download_prerequisites | |
cd build-avr | |
../configure --prefix=$PREFIX --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --with-dwarf2 | |
make | |
make install | |
# -------------- Autoconf | |
cd $INITIALDIR | |
tar xzf autoconf-*.tar.gz | |
cd autoconf-* | |
./configure --prefix=$PREFIX | |
make | |
make install | |
# -------------- Automake | |
cd $INITIALDIR | |
tar xf automake-*.tar.xz | |
cd automake-* | |
mkdir build | |
cd build | |
../configure --prefix=$PREFIX | |
make | |
make install | |
# -------------- AVR-LibC | |
cd $INITIALDIR | |
tar xf avr-libc-*.tar.bz2 - | |
cd avr-libc-* | |
./bootstrap | |
mkdir build | |
cd build | |
../configure --prefix=$PREFIX --build=`./config.guess` --host=avr | |
make | |
make install | |
# -------------- AVRDUDE | |
cd $INITIALDIR | |
tar xzf avrdude-* | |
cd avrdude-* | |
mkdir build | |
cd build | |
../configure --prefix=$PREFIX | |
make | |
make install | |
## TODO: ACRGDB AND SIMULATOR | |
cd $INITIALDIR | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment