*** empty log message ***

This commit is contained in:
Dave Murphy
2007-12-11 00:22:27 +00:00
parent 854bae61c8
commit 299b89be03
5 changed files with 111 additions and 409 deletions

View File

@@ -7,9 +7,7 @@ DEVKITPPC=$TOOLPATH/devkitPPC
#---------------------------------------------------------------------------------
echo "installing specs ..."
powerpc-gekko-gcc -dumpspecs $DEVKITPPC/lib/gcc/$target/$GCC_VER/specs
cp `pwd`/dkppc/crtls/gcn* $DEVKITPPC/$target/lib/
cp `pwd`/dkppc/crtls/specs $DEVKITPPC/lib/gcc/$target/$GCC_VER/specs
#---------------------------------------------------------------------------------
# copy base rulesets
#---------------------------------------------------------------------------------

View File

@@ -12,21 +12,28 @@ prefix=$INSTALLDIR/devkitPPC
mkdir -p $target/binutils
cd $target/binutils
../../$BINUTILS_SRCDIR/configure \
if [ ! -f configured-binutils ]
then
../../$BINUTILS_SRCDIR/configure \
--prefix=$prefix --target=$target --disable-nls --disable-shared --disable-debug \
--with-gcc --with-gnu-as --with-gnu-ld \
|| { echo "Error configuing ppc binutils"; exit 1; }
touch configured-binutils
fi
if [ ! -f built-binutils ]
then
$MAKE || { echo "Error building ppc binutils"; exit 1; }
touch built-binutils
fi
$MAKE || { echo "Error building ppc binutils"; exit 1; }
$MAKE install || { echo "Error installing ppc binutils"; exit 1; }
if [ ! -f installed-binutils ]
then
$MAKE install || { echo "Error installing ppc binutils"; exit 1; }
touch installed-binutils
fi
cd $BUILDSCRIPTDIR
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/binutils
#---------------------------------------------------------------------------------
# build and install mn10200 binutils
@@ -35,14 +42,26 @@ rm -fr $target/binutils
mkdir -p mn10200/binutils
cd mn10200/binutils
../../$BINUTILS_SRCDIR/configure \
if [ ! -f configured-binutils ]
then
../../$BINUTILS_SRCDIR/configure \
--prefix=$prefix --target=mn10200 --disable-nls --disable-shared --disable-debug \
--with-gcc --with-gnu-as --with-gnu-ld \
|| { echo "Error configuing mn10200 binutils"; exit 1; }
touch configured-binutils
fi
if [ ! -f built-binutils ]
then
$MAKE || { echo "Error building mn10200 binutils"; exit 1; }
touch built-binutils
fi
$MAKE || { echo "Error building mn10200 binutils"; exit 1; }
$MAKE install || { echo "Error installing mn10200 binutils"; exit 1; }
if [ ! -f installed-binutils ]
then
$MAKE install || { echo "Error installing mn10200 binutils"; exit 1; }
touch installed-binutils
fi
for f in $INSTALLDIR/devkitPPC/mn10200/bin/*
do
@@ -51,21 +70,15 @@ done
cd $BUILDSCRIPTDIR
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr mn10200
rm -fr $BINUTILS_SRCDIR
#---------------------------------------------------------------------------------
# build and install just the c compiler
#---------------------------------------------------------------------------------
mkdir -p $target/gcc
cd $target/gcc
CFLAGS=-D__USE_MINGW_ACCESS ../../$GCC_SRCDIR/configure \
if [ ! -f configured-gcc ]
then
CFLAGS=-D__USE_MINGW_ACCESS ../../$GCC_SRCDIR/configure \
--enable-languages=c,c++ \
--with-cpu=750\
--with-gcc --with-gnu-ld --with-gnu-as --with-stabs \
@@ -76,11 +89,20 @@ CFLAGS=-D__USE_MINGW_ACCESS ../../$GCC_SRCDIR/configure \
--with-newlib \
--prefix=$prefix\
2>&1 | tee gcc_configure.log
touch configured-gcc
fi
mkdir -p libiberty libcpp fixincludes
if [ ! -f built-gcc ]
then
$MAKE all-gcc || { echo "Error building gcc"; exit 1; }
touch built-gcc
fi
$MAKE all-gcc || { echo "Error building gcc"; exit 1; }
$MAKE install-gcc || { echo "Error installing gcc"; exit 1; }
if [ ! -f installed-gcc ]
then
$MAKE install-gcc || { echo "Error installing gcc"; exit 1; }
touch installed-gcc
fi
#---------------------------------------------------------------------------------
# build and install newlib
@@ -88,38 +110,75 @@ $MAKE install-gcc || { echo "Error installing gcc"; exit 1; }
cd $BUILDSCRIPTDIR
mkdir -p $target/newlib
cd $target/newlib
mkdir -p etc
$BUILDSCRIPTDIR/$NEWLIB_SRCDIR/configure \
if [ ! -f configured-newlib ]
then
$BUILDSCRIPTDIR/$NEWLIB_SRCDIR/configure \
--target=$target \
--prefix=$prefix \
--enable-newlib-mb \
--disable-debug \
|| { echo "Error configuring newlib"; exit 1; }
touch configured-newlib
fi
$MAKE || { echo "Error building newlib"; exit 1; }
$MAKE install || { echo "Error installing newlib"; exit 1; }
if [ ! -f built-newlib ]
then
$MAKE || { echo "Error building newlib"; exit 1; }
touch built-newlib
fi
if [ ! -f installed-newlib ]
then
$MAKE install || { echo "Error installing newlib"; exit 1; }
touch installed-newlib
fi
cd $BUILDSCRIPTDIR
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/newlib
rm -fr $NEWLIB_SRCDIR
#---------------------------------------------------------------------------------
# build and install the final compiler
#---------------------------------------------------------------------------------
cd $BUILDSCRIPTDIR
cd $target/gcc
$MAKE || { echo "Error building g++"; exit 1; }
$MAKE install || { echo "Error installing g++"; exit 1; }
if [ ! -f built-gpp ]
then
$MAKE || { echo "Error building g++"; exit 1; }
touch built-gpp
fi
if [ ! -f installed-gpp ]
then
$MAKE install || { echo "Error installing g++"; exit 1; }
touch installed-gpp
fi
cd $BUILDSCRIPTDIR
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
# build and install the debugger
#---------------------------------------------------------------------------------
rm -fr $target/gcc
rm -fr $GCC_SRCDIR
mkdir -p $target/gdb
cd $target/gdb
if [ ! -f configured-gdb ]
then
../../$GDB_SRCDIR/configure \
--disable-nls --prefix=$prefix --target=$target \
|| { echo "Error configuring gdb"; exit 1; }
touch configured-gdb
fi
if [ ! -f built-gdb ]
then
$MAKE || { echo "Error building gdb"; exit 1; }
touch built-gdb
fi
if [ ! -f installed-gdb ]
then
$MAKE install || { echo "Error installing gdb"; exit 1; }
touch installed-gdb
fi