mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-21 17:44:41 -05:00
*** empty log message ***
This commit is contained in:
parent
04eaad79a2
commit
64394409de
|
|
@ -24,10 +24,11 @@ Downloading the source packages
|
|||
When you run the build script it will ask you to choose from one of two options, one for if you have already downloaded the source packages and another for if you want it to download them for you (using wget). If you choose option one and want to get the source packages for yourself then you can find them at the urls listed below;
|
||||
|
||||
binutils 2.15 - http://ftp.gnu.org/gnu/binutils/binutils-2.15.tar.bz2
|
||||
gcc-core 3.4.2 - ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-3.4.3/gcc-core-3.4.3.tar.bz2
|
||||
gcc-g++ 3.4.2 - ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-3.4.3/gcc-g++-3.4.3.tar.bz2
|
||||
gcc-core 3.4.3 - http://ftp.gnu.org/gnu/gcc/gcc-3.4.3/gcc-core-3.4.3.tar.bz2
|
||||
gcc-g++ 3.4.3 - http://ftp.gnu.org/gnu/gcc/gcc-3.4.3/gcc-g++-3.4.3.tar.bz2
|
||||
newlib 1.13.0 - ftp://sources.redhat.com/pub/newlib/newlib-1.13.0.tar.gz
|
||||
|
||||
libogc, libgba and libnds can be found
|
||||
The top level shell script has now been unified and offers the option of devkitARM or devkitPPC.
|
||||
|
||||
Building devkitARM
|
||||
|
|
|
|||
|
|
@ -10,17 +10,23 @@ BINUTILS_VER=2.15
|
|||
GCC_VER=3.4.3
|
||||
NEWLIB_VER=1.13.0
|
||||
LIBOGC_VER=20050419
|
||||
LIBGBA_VER=20050505
|
||||
LIBNDS_VER=20050505
|
||||
|
||||
BINUTILS="binutils-$BINUTILS_VER.tar.bz2"
|
||||
GCC_CORE="gcc-core-$GCC_VER.tar.bz2"
|
||||
GCC_GPP="gcc-g++-$GCC_VER.tar.bz2"
|
||||
NEWLIB="newlib-$NEWLIB_VER.tar.gz"
|
||||
LIBOGC="libogc-src-$LIBOGC_VER.tar.bz2"
|
||||
LIBGBA="libgba-src-$LIBGBA_VER.tar.bz2"
|
||||
LIBNDS="libnds-src-$LIBNDS_VER.tar.bz2"
|
||||
|
||||
BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/$BINUTILS"
|
||||
GCC_CORE_URL="http://ftp.gnu.org/gnu/gcc/gcc-$GCC_VER/$GCC_CORE"
|
||||
GCC_GPP_URL="http://ftp.gnu.org/gnu/gcc/gcc-$GCC_VER/$GCC_GPP"
|
||||
LIBOGC_URL="http://osdn.dl.sourceforge.net/sourceforge/devkitpro/$LIBOGC"
|
||||
LIBGBA_URL="http://osdn.dl.sourceforge.net/sourceforge/devkitpro/$LIBGBA"
|
||||
LIBNDS_URL="http://osdn.dl.sourceforge.net/sourceforge/devkitpro/$LIBNDS"
|
||||
NEWLIB_URL="ftp://sources.redhat.com/pub/newlib/$NEWLIB"
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
|
@ -81,6 +87,8 @@ done
|
|||
echo
|
||||
echo "Please enter the directory where you would like '$package' to be installed:"
|
||||
echo "for mingw/msys you must use <drive>:/<install path> or you will have include path problems"
|
||||
echo "this is the top level directory for devkitpro"
|
||||
|
||||
read INSTALLDIR
|
||||
echo
|
||||
|
||||
|
|
@ -92,7 +100,7 @@ then
|
|||
while [ $FOUND -eq 0 ]
|
||||
do
|
||||
echo
|
||||
echo "Please enter the full path to the directory that contains the source packages:"
|
||||
echo "Please enter the path to the directory that contains the source packages:"
|
||||
read SRCDIR
|
||||
|
||||
if [ ! -f $SRCDIR/$BINUTILS ]
|
||||
|
|
@ -169,25 +177,42 @@ else
|
|||
then
|
||||
echo "Error: Failed to download "$NEWLIB
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $VERSION -eq 2 ]
|
||||
then
|
||||
wget -c $LIBOGC_URL
|
||||
if [ ! -f $LIBOGC ]
|
||||
then
|
||||
echo "Error: Failed to download "$LIBOGC
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
if [ $VERSION -eq 2 ]
|
||||
then
|
||||
wget -c $LIBOGC_URL
|
||||
if [ ! -f $LIBOGC ]
|
||||
then
|
||||
echo "Error: Failed to download "$LIBOGC
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
SRCDIR=`pwd`
|
||||
if [ $VERSION -eq 1 ]
|
||||
then
|
||||
wget -c $LIBNDS_URL
|
||||
if [ ! -f $LIBNDS ]
|
||||
then
|
||||
echo "Error: Failed to download "$LIBNDS
|
||||
exit
|
||||
fi
|
||||
wget -c $LIBGBA_URL
|
||||
if [ ! -f $LIBGBA ]
|
||||
then
|
||||
echo "Error: Failed to download "$LIBGBA
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
SRCDIR=`pwd`
|
||||
fi
|
||||
|
||||
BINUTILS_SRCDIR="binutils-$BINUTILS_VER"
|
||||
GCC_SRCDIR="gcc-$GCC_VER"
|
||||
NEWLIB_SRCDIR="newlib-$NEWLIB_VER"
|
||||
LIBOGC_SRCDIR="libogc-$LIBOGC_VER"
|
||||
LIBGBA_SRCDIR="libgba-$LIBGBA_VER"
|
||||
LIBNDS_SRCDIR="libnds-$LIBNDS_VER"
|
||||
|
||||
echo
|
||||
echo 'Ready to install '$package' in '$INSTALLDIR
|
||||
|
|
@ -238,6 +263,17 @@ then
|
|||
bzip2 -cd $SRCDIR/$LIBOGC | tar -xv -C $LIBOGC_SRCDIR
|
||||
fi
|
||||
|
||||
if [ $VERSION -eq 1 ]
|
||||
then
|
||||
echo "Extracting $LIBNDS"
|
||||
mkdir -p $LIBNDS_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$LIBNDS | tar -xv -C $LIBNDS_SRCDIR
|
||||
echo "Extracting $LIBGBA"
|
||||
mkdir -p $LIBGBA_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$LIBGBA | tar -xv -C $LIBGBA_SRCDIR
|
||||
fi
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# apply patches
|
||||
#---------------------------------------------------------------------------------
|
||||
|
|
@ -268,20 +304,19 @@ export DEBUG_FLAGS=''
|
|||
# Add installed devkit to the path, adjusting path on minsys
|
||||
#---------------------------------------------------------------------------------
|
||||
TOOLPATH=$(echo $INSTALLDIR | sed -e 's/^\([a-zA-Z]\):/\/\1/')
|
||||
export PATH=$PATH:$TOOLPATH/bin
|
||||
export PATH=$PATH:$TOOLPATH/$package/bin
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# Build and install devkit components
|
||||
#---------------------------------------------------------------------------------
|
||||
if [ -f $scriptdir/build-gcc.sh ]; then . $scriptdir/build-gcc.sh ; cd $BUILDSCRIPTDIR; fi
|
||||
#if [ -f $scriptdir/build-gcc.sh ]; then . $scriptdir/build-gcc.sh ; cd $BUILDSCRIPTDIR; fi
|
||||
if [ -f $scriptdir/build-crtls.sh ]; then . $scriptdir/build-crtls.sh ; cd $BUILDSCRIPTDIR; fi
|
||||
if [ -f $scriptdir/build-tools.sh ]; then . $scriptdir/build-tools.sh ; cd $BUILDSCRIPTDIR; fi
|
||||
|
||||
strip $INSTALLDIR/bin/*
|
||||
strip $INSTALLDIR/$target/bin/*
|
||||
strip $INSTALLDIR/libexec/gcc/$target/$GCC_VER/*
|
||||
rm -fr $INSTALLDIR/include/c++/$GCC_VER/$target/bits/stdc++.h.gch
|
||||
|
||||
strip $INSTALLDIR/$package/bin/*
|
||||
strip $INSTALLDIR/$package/$target/bin/*
|
||||
strip $INSTALLDIR/$package/libexec/gcc/$target/$GCC_VER/*
|
||||
rm -fr $INSTALLDIR/$package/include/c++/$GCC_VER/$target/bits/stdc++.h.gch
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# Clean up temporary files and source directories
|
||||
|
|
@ -293,7 +328,7 @@ rm -fr $target
|
|||
rm -fr $BINUTILS_SRCDIR
|
||||
rm -fr $NEWLIB_SRCDIR
|
||||
rm -fr $GCC_SRCDIR
|
||||
rm -fr $LIBOGC_SRCDIR
|
||||
rm -fr $LIBOGC_SRCDIR $LIBGBA_SRCDIR $LIBNDS_SRCDIR
|
||||
|
||||
echo
|
||||
echo "Would you like to delete the source packages? [y/N]"
|
||||
|
|
@ -306,5 +341,5 @@ then
|
|||
fi
|
||||
|
||||
echo
|
||||
echo "note: Add the following to your PATH variable; $INSTALLDIR/bin"
|
||||
echo "note: Add the following to your PATH variable; $INSTALLDIR/$package/bin"
|
||||
echo
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
DEVKITARM=$INSTALLDIR
|
||||
DEVKITARM=$TOOLPATH/devkitARM
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# Install and build the gba crt
|
||||
|
|
@ -16,8 +16,18 @@ $MAKE CRT=ds_arm7
|
|||
$MAKE CRT=ds_arm9
|
||||
$MAKE CRT=ds_cart
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# copy base rulesets
|
||||
#---------------------------------------------------------------------------------
|
||||
cd $BUILDSCRIPTDIR
|
||||
cp dka-rules/* $DEVKITARM
|
||||
|
||||
cd $LIBNDS_SRCDIR
|
||||
echo "building libnds ..."
|
||||
$MAKE install
|
||||
|
||||
echo "building libgba ..."
|
||||
cd $BUILDSCRIPTDIR
|
||||
cd $LIBGBA_SRCDIR
|
||||
$MAKE install
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
# Check Parameters
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
prefix=$INSTALLDIR
|
||||
prefix=$INSTALLDIR/devkitARM
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install binutils
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
prefix=$INSTALLDIR
|
||||
prefix=$INSTALLDIR/devkitARM
|
||||
|
||||
gcc -O2 tools/gba/gbafix.c
|
||||
|
||||
|
|
@ -19,18 +19,22 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
export DEVKITARM=$TOOLPATH/devkitARM
|
||||
export DEVKITPRO=$TOOLPATH
|
||||
export LIBNDS=$TOOLPATH/libnds
|
||||
|
||||
$MAKE -C tools/gba
|
||||
$MAKE -C tools/gba install PREFIX=$prefix/bin
|
||||
$MAKE -C tools/gba install PREFIX=$DEVKITARM/bin
|
||||
|
||||
$MAKE -C tools/general
|
||||
$MAKE -C tools/general install PREFIX=$prefix/bin
|
||||
$MAKE -C tools/general install PREFIX=$DEVKITARM/bin
|
||||
|
||||
$MAKE -C tools/nds/ndstool
|
||||
$MAKE -C tools/nds/ndstool install PREFIX=$prefix/bin
|
||||
$MAKE -C tools/nds/ndstool install PREFIX=$DEVKITARM/bin
|
||||
$MAKE -C tools/nds/dsbuild
|
||||
$MAKE -C tools/nds/dsbuild install PREFIX=$prefix/bin
|
||||
$MAKE -C tools/nds/dsbuild install PREFIX=$DEVKITARM/bin
|
||||
|
||||
cp tools/general/alignbin $prefix/bin/alignbin
|
||||
cp tools/general/alignbin $DEVKITARM/bin/alignbin
|
||||
|
||||
# Awaiting Mr_Spiv's permission to add to project
|
||||
#$MAKE -C tools/gp32/b2fxec
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user