mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-23 10:54:02 -05:00
added devkitPSP and rearranged scripts in directories by toolchain
This commit is contained in:
26
dkppc/scripts/build-crtls.sh
Normal file
26
dkppc/scripts/build-crtls.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
DEVKITPPC=$INSTALLDIR/devkitPPC
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# Install and build the gamecube crt and libogc
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
echo "installing specs ..."
|
||||
cp `pwd`/dkppc/crtls/gcn* $DEVKITPPC/$target/lib/
|
||||
cp `pwd`/dkpppc/crtls/ogc.ld $DEVKITPPC/$target/lib/
|
||||
cp `pwd`/dkppc/crtls/specs $DEVKITPPC/lib/gcc/$target/$GCC_VER/specs
|
||||
|
||||
echo "building libogc ..."
|
||||
cd $LIBOGC_SRCDIR
|
||||
$MAKE
|
||||
echo "installing libogc ..."
|
||||
$MAKE install
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# copy base rulesets
|
||||
#---------------------------------------------------------------------------------
|
||||
cd $BUILDSCRIPTDIR
|
||||
cp dkp-rules/* $DEVKITPPC
|
||||
|
||||
|
||||
93
dkppc/scripts/build-gcc.sh
Normal file
93
dkppc/scripts/build-gcc.sh
Normal file
@@ -0,0 +1,93 @@
|
||||
#!/bin/sh
|
||||
#---------------------------------------------------------------------------------
|
||||
# Check Parameters
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
prefix=$INSTALLDIR/devkitPPC
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install binutils
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
mkdir -p $target/binutils
|
||||
cd $target/binutils
|
||||
|
||||
../../$BINUTILS_SRCDIR/configure \
|
||||
--prefix=$prefix --target=$target --disable-nls --disable-shared --disable-debug \
|
||||
--with-gcc --with-gnu-as --with-gnu-ld --with-stabs \
|
||||
2>&1 | tee binutils_configure.log
|
||||
|
||||
|
||||
$MAKE | tee binutils_make.log 2>&1
|
||||
$MAKE install | tee binutils_install.log 2>&1
|
||||
|
||||
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++ \
|
||||
--with-cpu=750\
|
||||
--with-gcc --with-gnu-ld --with-gnu-as --with-stabs \
|
||||
--with-included-gettext --without-headers\
|
||||
--disable-nls --disable-shared --enable-threads --disable-multilib\
|
||||
--disable-win32-registry\
|
||||
--target=$target \
|
||||
--with-newlib \
|
||||
--prefix=$prefix -v\
|
||||
2>&1 | tee gcc_configure.log
|
||||
|
||||
$MAKE all-gcc | tee gcc_make.log 2>&1
|
||||
$MAKE install-gcc | tee gcc_install.log 2>&1
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install newlib
|
||||
#---------------------------------------------------------------------------------
|
||||
cd $BUILDSCRIPTDIR
|
||||
mkdir -p $target/newlib
|
||||
cd $target/newlib
|
||||
mkdir -p etc
|
||||
|
||||
$BUILDSCRIPTDIR/$NEWLIB_SRCDIR/configure --target=$target \
|
||||
--prefix=$prefix \
|
||||
--enable-serial-configure \
|
||||
| tee newlib_configure.log 2>&1
|
||||
|
||||
$MAKE all | tee newlib_make.log
|
||||
$MAKE install | tee newlib_install.log
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# remove temp stuff to conserve disc space
|
||||
#---------------------------------------------------------------------------------
|
||||
rm -fr $target/newlib
|
||||
rm -fr $NEWLIB_SRCDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install the final compiler
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
cd $target/gcc
|
||||
|
||||
$MAKE | tee gcc_final_make.log 2>&1
|
||||
$MAKE install | tee gcc_final_install.log 2>&1
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# remove temp stuff to conserve disc space
|
||||
#---------------------------------------------------------------------------------
|
||||
rm -fr $target/gcc
|
||||
rm -fr $GCC_SRCDIR
|
||||
Reference in New Issue
Block a user