- improved tool chain

git-svn-id: http://moon:8086/svn/mips@95 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2017-01-17 20:34:55 +00:00
parent 71b53945b5
commit 1a58dcf524
4 changed files with 33 additions and 35 deletions
+12 -10
View File
@@ -1,5 +1,5 @@
#!/bin/sh
TARGET=mipsel-elf
TARGET=mips-elf
PREFIX=$(pwd)/install
SRC_BINUTILS=binutils-2.24
@@ -32,7 +32,7 @@ if [ ! -e ./$SRC_BINUTILS-build ]; then
mkdir -p $SRC_BINUTILS-build
cd $SRC_BINUTILS-build
../$SRC_BINUTILS/configure --target=$TARGET --prefix=$PREFIX || exit 1
make || exit 1
make -j4 || exit 1
make install || exit 1
cd ..
else
@@ -61,7 +61,7 @@ if [ ! -e ./$SRC_GMP-build ]; then
mkdir -p $SRC_GMP-build
cd $SRC_GMP-build
../$SRC_GMP/configure --prefix=$PREFIX || exit 1
make || exit 1
make -j4 || exit 1
make check || exit 1
make install || exit 1
cd ..
@@ -91,7 +91,7 @@ if [ ! -e ./$SRC_MPFR-build ]; then
mkdir -p $SRC_MPFR-build
cd $SRC_MPFR-build
../$SRC_MPFR/configure --prefix=$PREFIX --with-gmp=$PREFIX || exit 1
make || exit 1
make -j4 || exit 1
make check || exit 1
make install || exit 1
cd ..
@@ -121,7 +121,7 @@ if [ ! -e ./$SRC_MPC-build ]; then
mkdir -p $SRC_MPC-build
cd $SRC_MPC-build
../$SRC_MPC/configure --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX || exit 1
make || exit 1
make -j4 || exit 1
make check || exit 1
make install || exit 1
cd ..
@@ -171,13 +171,15 @@ if [ ! -e ./$SRC_GCC-build ]; then
echo Building $SRC_GCC
mkdir -p $SRC_GCC-build
cd $SRC_GCC-build
../$SRC_GCC/configure --target=$TARGET --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX --with-mpc=$PREFIX --with-float=soft --with-newlib --verbose --enable-languages="c,c++" || exit 1
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PREFIX/lib make all || exit 1
../$SRC_GCC/configure --target=$TARGET --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX --with-mpc=$PREFIX --with-float=soft --with-newlib --verbose --enable-languages="c,c++" --with-gnu-as --with-gnu-ld || exit 1
make -j4 all || exit 1
make info || exit 1
make install || exit 1
cd ..
echo $PREFIX/lib >>/etc/ld.so.conf.d/local.conf
ldconfig
echo $PREFIX/lib >local.conf
echo $PREFIX/$TARGET/lib >>local.conf
sudo mv local.conf /etc/ld.so.conf.d/local.conf
sudo ldconfig
else
echo $SRC_GCC is already built.
fi
@@ -185,7 +187,7 @@ fi
# ---------------------------------------------------------------
# 50. GDB bauen und installieren
# ---------------------------------------------------------------
if [ ! -e $SRC_GDB.tar.bz2 ]; then
if [ ! -e $SRC_GDB.tar.xz ]; then
echo Downloading $SRC_GDB
wget ftp://ftp.gnu.org/gnu/gdb/$SRC_GDB.tar.xz || exit 1
else