added devkitPSP and rearranged scripts in directories by toolchain

This commit is contained in:
Dave Murphy
2005-07-06 04:31:18 +00:00
parent 088eeca46f
commit dd066c3ac6
47 changed files with 7152 additions and 246 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/sh
#---------------------------------------------------------------------------------
# Install and build the pspsdk
#---------------------------------------------------------------------------------
echo "building pspsdk ..."
cd $PSPSDK_SRCDIR
$MAKE
echo "installing pspsdk ..."
$MAKE install
cd $BUILDSCRIPTDIR

View File

@@ -0,0 +1,94 @@
#!/bin/sh
#---------------------------------------------------------------------------------
# Check Parameters
#---------------------------------------------------------------------------------
prefix=$INSTALLDIR/devkitPSP
#---------------------------------------------------------------------------------
# build and install binutils
#---------------------------------------------------------------------------------
#mkdir -p $target/binutils
#cd $target/binutils
../../$BINUTILS_SRCDIR/configure \
--prefix=$prefix --target=$target --disable-nls --disable-shared --disable-debug \
--disable-threads --with-gcc --with-gnu-as --with-gnu-ld --with-stabs \
2>&1 | tee $BUILDSCRIPTDIR/binutils_configure.log
$MAKE 2>&1 | tee binutils_make.log
$MAKE install 2>&1 | tee $BUILDSCRIPTDIR/binutils_install.log
cd $BUILDSCRIPTDIR
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/binutils
rm -fr $BINUTILS_SRCDIR
#---------------------------------------------------------------------------------
# build and install just the c compiler
#---------------------------------------------------------------------------------
mkdir -p $target/gcc
cd $target/gcc
../../$GCC_SRCDIR/configure \
--enable-languages=c,c++ \
--disable-multilib\
--with-gcc --with-gnu-ld --with-gnu-as --with-stabs \
--disable-shared --disable-threads --disable-win32-registry --disable-nls\
--enable-cxx-flags="-G0" \
--target=$target \
--with-newlib \
--prefix=$prefix \
2>&1 | tee $BUILDSCRIPTDIR/gcc_configure.log
$MAKE all-gcc 2>&1| tee $BUILDSCRIPTDIR/gcc_make.log
$MAKE install-gcc 2>&1 | tee $BUILDSCRIPTDIR/gcc_install.log
cd $BUILDSCRIPTDIR
#---------------------------------------------------------------------------------
# build and install newlib
#---------------------------------------------------------------------------------
mkdir -p $target/newlib
cd $target/newlib
$BUILDSCRIPTDIR/$NEWLIB_SRCDIR/configure \
--enable-serial-configure \
--target=$target \
--prefix=$prefix \
| tee $BUILDSCRIPTDIR/newlib_configure.log
mkdir -p etc
$MAKE
$MAKE install
#---------------------------------------------------------------------------------
# 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 | tee $BUILDSCRIPTDIR/gcc_final_make.log 2>&1
$MAKE install | tee $BUILDSCRIPTDIR/gcc_final_install.log 2>&1
cd $BUILDSCRIPTDIR
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/gcc
rm -fr $GCC_SRCDIR