Last active
October 4, 2015 04:37
-
-
Save akimacho/2736e574d99fd5d47b9c to your computer and use it in GitHub Desktop.
bozos
This file contains 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/sh | |
TROKKO_ENV=$HOME/Projects/trokko | |
mkdir -p $TROKKO_ENV/tools | |
mkdir -p $TROKKO_ENV/build | |
echo "setup binutils ..." | |
cd $TROKKO_ENV/build | |
curl -O http://ftp.gnu.org/gnu/binutils/binutils-2.19.1.tar.bz2 | |
tar jxvf binutils-2.19.1.tar.bz2 | |
cd $TROKKO_ENV/build/binutils-2.19.1 | |
./configure --target=h8300-elf \ | |
--disable-nls \ | |
--disable-werror \ | |
--prefix=$TROKKO_ENV/tools | |
make | |
make install | |
echo "complete ... " | |
echo "setup gmp ..." | |
cd $TROKKO_ENV/build | |
curl -O http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2 | |
tar jxvf gmp-5.0.5.tar.bz2 | |
cd gmp-5.0.5 | |
./configure --prefix=$TROKKO_ENV/tools/gmp | |
make | |
make check | |
make install | |
echo "complete ... " | |
echo "setup mpfr ... "; | |
cd $TROKKO_ENV/build | |
curl -O http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz | |
tar zxvf mpfr-3.1.1.tar.gz | |
cd mpfr-3.1.1 | |
./configure --prefix=$TROKKO_ENV/tools/mpfr \ | |
--with-gmp=$TROKKO_ENV/tools/gmp | |
make | |
make check | |
make install | |
echo "complete ... " | |
echo "setup mpc ... " | |
cd $TROKKO_ENV/build | |
curl -O http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.1.tar.gz | |
tar zxvf mpc-0.9.tar.gz | |
cd mpc-0.9 | |
./configure --prefix=$TROKKO_ENV/tools/mpc \ | |
--with-gmp=$TROKKO_ENV/tools/gmp \ | |
--with-mpfr=$TROKKO_ENV/tools/mpfr | |
make | |
make check | |
make install | |
echo "complete" | |
echo "setup gcc" | |
cd $TROKKO_ENV/build | |
curl -O http://ftp.gnu.org/gnu/gcc/gcc-4.7.1/gcc-4.7.1.tar.gz | |
tar zxvf gcc-4.7.1.tar.gz | |
cd gcc-4.7.1 | |
./configure --target=h8300-elf \ | |
-disable-nls \ | |
--disable-threads \ | |
--disable-shared \ | |
--disable-werror \ | |
--enable-languages=c \ | |
--prefix=$TROKKO_ENV/tools \ | |
--with-gmp=$TROKKO_ENV/tools/gmp \ | |
--with-mpfr=$TROKKO_ENV/tools/mpfr \ | |
--with-mpc=/usr/local/mpc | |
make | |
make install | |
echo "complete ... " | |
echo "setup kz_h8write ..." | |
cd $TROKKO_ENV/build | |
curl -O https://osdn.jp/projects/kz-h8write/downloads/57645/kz_h8write-v0.2.1.zip | |
echo "complete ... "; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment