mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-18 16:37:21 -05:00
*** empty log message ***
This commit is contained in:
parent
40f2af0095
commit
adcdc466b6
117
README.TXT
117
README.TXT
|
|
@ -24,23 +24,22 @@ libelf
|
|||
|
||||
http://www.mr511.de/software/
|
||||
|
||||
For devkitPSP a command line subversion client is required to get the PSP SDK http://www.tigris.org
|
||||
|
||||
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.16.1 - http://ftp.gnu.org/gnu/binutils/binutils-2.16.1.tar.bz2
|
||||
gcc-core 3.4.4 - http://ftp.gnu.org/gnu/gcc/gcc-3.4.4/gcc-core-3.4.4.tar.bz2
|
||||
gcc-g++ 3.4.4 - http://ftp.gnu.org/gnu/gcc/gcc-3.4.4/gcc-g++-3.4.4.tar.bz2
|
||||
gcc-core 4.0.1 - http://ftp.gnu.org/gnu/gcc/gcc-4.0.1/gcc-core-3.4.4.tar.bz2
|
||||
gcc-g++ 4.0.1 - http://ftp.gnu.org/gnu/gcc/gcc-4.0.1/gcc-g++-3.4.4.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 in the sourceforge project.
|
||||
|
||||
http://sourceforge.net/projects/devkitpro
|
||||
|
||||
the pspsdk can be found at
|
||||
|
||||
http://ps2dev.org/files/pspsdk-1.0+beta.tar.gz
|
||||
|
||||
The top level shell script has now been unified and offers the option of devkitARM, devkitPPC or devkitPSP.
|
||||
|
||||
|
|
@ -111,111 +110,3 @@ Credits
|
|||
|
||||
- efnet #gbadev forever!
|
||||
|
||||
History
|
||||
-------------------------------------------------------------------------------------
|
||||
planned for release 14
|
||||
-------------------------------------------------------------------------------------
|
||||
* rework libraries to allow armv5 arch
|
||||
* BFLT support
|
||||
* system libraries for ARM stdio
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
20th June 2005 release 13
|
||||
-------------------------------------------------------------------------------------
|
||||
* updated to binutils 2.16.1
|
||||
* fixed errors in gba crtls
|
||||
* updated nds crtls
|
||||
* allow arm9 to write SRAM
|
||||
* addition of pineight tools
|
||||
* added Mr Spiv's gpd & dsd
|
||||
* ndstool updated
|
||||
* bin2o rule updated to include extension in name
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
21st May 2005 - release 12
|
||||
-------------------------------------------------------------------------------------
|
||||
* update to newlib 1.13.0
|
||||
* Nintendo DS support
|
||||
* newest libogc
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
18th February 2005 - devkitPPC release 11 beta 2
|
||||
-------------------------------------------------------------------------------------
|
||||
* patch for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9571
|
||||
* updated to latest libogc
|
||||
* added stub library to allow linking without libogc
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
21st January 2005 - release 11 beta 1
|
||||
-------------------------------------------------------------------------------------
|
||||
* updated to gcc 3.4.3
|
||||
* reverted msvc format errors for compatibility with dev-cpp & vham editors
|
||||
* fix iwram overlay section alignment for GBA
|
||||
* patched for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16343
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
28th July 2004 - release 8
|
||||
-------------------------------------------------------------------------------------
|
||||
* updated to gcc 3.4.1
|
||||
* win32 native b2fxec added & cygwin1.dll removed
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
26th June 2004 - devkitPPC release 7
|
||||
-------------------------------------------------------------------------------------
|
||||
* libogc added to devkitPPC
|
||||
* updated specs file with -mogc switch for linking
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
12th June 2004 - devkitARM release 6a
|
||||
-------------------------------------------------------------------------------------
|
||||
* long calls patch added
|
||||
* -save-temps fixed (again)
|
||||
* binutils 2.15.0
|
||||
* specs file and crt0 for e-reader
|
||||
* specs file and crt0 for gamepark gp32 libraries
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
8th May 2004 - devkitARM release 6
|
||||
-------------------------------------------------------------------------------------
|
||||
* updated to gcc 3.4.0
|
||||
* reverted to binutils 2.14.0
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
12th April 2004 - devkitARM release 5.
|
||||
-------------------------------------------------------------------------------------
|
||||
* built in crt0 and linkscript for gp32 added. Use -specs=gp32.specs when linking
|
||||
* Mr Spiv's b2fxec included
|
||||
* DarkFader's gbafix included
|
||||
* linux build available for download
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
15th March 2004 - devkitARM Release 4
|
||||
-------------------------------------------------------------------------------------
|
||||
* updated to binutils 2.15.90
|
||||
* more msdev error output conversion
|
||||
* -save-temps fixed
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
26th February 2004 - devkitARM Release 3a
|
||||
-------------------------------------------------------------------------------------
|
||||
* updated to newlib 1.12.0
|
||||
* crt0, linkscript and runtime library support added to DevkitARM
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
20th February 2004
|
||||
-------------------------------------------------------------------------------------
|
||||
* updated to gcc 3.3.3
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
14th February 2004 - devkitARM Release 2
|
||||
-------------------------------------------------------------------------------------
|
||||
* crt0, linkscript and runtime library support added to DevkitPPC
|
||||
* adjusted error output for msdev
|
||||
* Fixed minor problem with include paths
|
||||
|
||||
-------------------------------------------------------------------------------------
|
||||
16th January 2004 - devkitARM release 1
|
||||
-------------------------------------------------------------------------------------
|
||||
* Initial build supporting arm target
|
||||
* Required link script and crt0
|
||||
* no built in support for runtime libraries
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ GCC_VER=4.0.1
|
|||
NEWLIB_VER=1.13.0
|
||||
LIBOGC_VER=20050521
|
||||
LIBGBA_VER=20050615
|
||||
LIBNDS_VER=20050714
|
||||
PSPSDK_VER=1.0+beta
|
||||
LIBNDS_VER=20050804
|
||||
|
||||
BINUTILS="binutils-$BINUTILS_VER.tar.bz2"
|
||||
GCC_CORE="gcc-core-$GCC_VER.tar.bz2"
|
||||
|
|
@ -21,7 +20,6 @@ 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"
|
||||
PSPSDK="pspsdk-$PSPSDK_VER.tar.gz"
|
||||
|
||||
BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/$BINUTILS"
|
||||
GCC_CORE_URL="http://ftp.gnu.org/gnu/gcc/gcc-$GCC_VER/$GCC_CORE"
|
||||
|
|
@ -30,7 +28,10 @@ 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"
|
||||
PSPSDK_URL="http://ps2dev.org/files/$PSPSDK"
|
||||
|
||||
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# Ask whether to download the source packages or not
|
||||
#---------------------------------------------------------------------------------
|
||||
|
|
@ -78,6 +79,13 @@ then
|
|||
builddir=psp
|
||||
target=psp
|
||||
toolchain=DEVKITPSP
|
||||
|
||||
if test "`svn help`" ; then
|
||||
SVN="svn"
|
||||
else
|
||||
echo "ERROR: Please make sure you have 'subversion (svn)' installed."
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
@ -95,6 +103,13 @@ do
|
|||
if [ "$DOWNLOAD" -ne 1 -a "$DOWNLOAD" -ne 2 ]
|
||||
then
|
||||
DOWNLOAD=0
|
||||
else
|
||||
if test "`wget -V`" ; then
|
||||
WGET="wget"
|
||||
else
|
||||
echo "ERROR: Please make sure you have 'wget' installed."
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
@ -183,38 +198,23 @@ then
|
|||
|
||||
fi
|
||||
|
||||
if [ $VERSION -eq 3 ]
|
||||
then
|
||||
if [ ! -f $SRCDIR/$PSPSDK ]
|
||||
then
|
||||
echo "Error: $PSPSDK not found in $SRCDIR"
|
||||
exit
|
||||
else
|
||||
FOUND=1
|
||||
fi
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
else
|
||||
|
||||
wget -c $BINUTILS_URL || { echo "Error: Failed to download "$BINUTILS; exit; }
|
||||
$WGET -c $BINUTILS_URL || { echo "Error: Failed to download "$BINUTILS; exit; }
|
||||
|
||||
wget -c $GCC_CORE_URL || { echo "Error: Failed to download "$GCC_CORE; exit; }
|
||||
$WGET -c $GCC_CORE_URL || { echo "Error: Failed to download "$GCC_CORE; exit; }
|
||||
|
||||
wget -c $GCC_GPP_URL || { echo "Error: Failed to download "$GCC_GPP; exit; }
|
||||
$WGET -c $GCC_GPP_URL || { echo "Error: Failed to download "$GCC_GPP; exit; }
|
||||
|
||||
wget --passive-ftp -c $NEWLIB_URL || { echo "Error: Failed to download "$NEWLIB; exit; }
|
||||
$WGET --passive-ftp -c $NEWLIB_URL || { echo "Error: Failed to download "$NEWLIB; exit; }
|
||||
|
||||
if [ $VERSION -eq 2 ]
|
||||
then
|
||||
wget -c $LIBOGC_URL || { echo "Error: Failed to download "$LIBOGC; exit; }
|
||||
fi
|
||||
|
||||
if [ $VERSION -eq 3 ]
|
||||
then
|
||||
wget -c $PSPSDK_URL || { echo "Error: Failed to download "$PSPSDK; exit; }
|
||||
fi
|
||||
|
||||
if [ $VERSION -eq 1 ]
|
||||
then
|
||||
|
|
@ -230,7 +230,6 @@ NEWLIB_SRCDIR="newlib-$NEWLIB_VER"
|
|||
LIBOGC_SRCDIR="libogc-$LIBOGC_VER"
|
||||
LIBGBA_SRCDIR="libgba-$LIBGBA_VER"
|
||||
LIBNDS_SRCDIR="libnds-$LIBNDS_VER"
|
||||
PSPSDK_SRCDIR="pspsdk-$PSPSDK_VER"
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# Add installed devkit to the path, adjusting path on minsys
|
||||
|
|
@ -264,6 +263,8 @@ export MAKE
|
|||
patchdir=$(pwd)/$basedir/patches
|
||||
scriptdir=$(pwd)/$basedir/scripts
|
||||
|
||||
echo $patchdir
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# Extract source packages
|
||||
#---------------------------------------------------------------------------------
|
||||
|
|
@ -289,11 +290,6 @@ then
|
|||
bzip2 -cd $SRCDIR/$LIBOGC | tar -xv -C $LIBOGC_SRCDIR || { echo "Error extracting "$LIBOGC; exit; }
|
||||
fi
|
||||
|
||||
if [ $VERSION -eq 3 ]
|
||||
then
|
||||
echo "Extracting $PSPSDK"
|
||||
tar -xzvf $SRCDIR/$PSPSDK || { echo "Error extracting "$PSPSDK; exit; }
|
||||
fi
|
||||
|
||||
if [ $VERSION -eq 1 ]
|
||||
then
|
||||
|
|
@ -313,12 +309,6 @@ patch -p1 -d $BINUTILS_SRCDIR -i $patchdir/binutils-$BINUTILS_VER.patch || { ech
|
|||
patch -p1 -d $GCC_SRCDIR -i $patchdir/gcc-$GCC_VER.patch || { echo "Error patching gcc"; exit; }
|
||||
patch -p1 -d $NEWLIB_SRCDIR -i $patchdir/newlib-$NEWLIB_VER.patch || { echo "Error patching newlib"; exit; }
|
||||
|
||||
if [ $VERSION -eq 3 ]
|
||||
then
|
||||
echo
|
||||
patch -p1 -d $PSPSDK_SRCDIR -i $(pwd)/patches/pspsdk-$PSPSDK_VER.patch
|
||||
fi
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# only necessary when Darwin gcc is 3.1 or earlier, to add a check for this here
|
||||
|
|
@ -360,7 +350,7 @@ rm -fr $target
|
|||
rm -fr $BINUTILS_SRCDIR
|
||||
rm -fr $NEWLIB_SRCDIR
|
||||
rm -fr $GCC_SRCDIR
|
||||
rm -fr $LIBOGC_SRCDIR $LIBGBA_SRCDIR $LIBNDS_SRCDIR $PSPSDK_SRCDIR
|
||||
rm -fr $LIBOGC_SRCDIR $LIBGBA_SRCDIR $LIBNDS_SRCDIR
|
||||
|
||||
echo
|
||||
echo "Would you like to delete the downloaded source packages? [y/N]"
|
||||
|
|
|
|||
|
|
@ -1,253 +1,279 @@
|
|||
diff -NBaur gcc-4.0.1/config.sub gcc-4.0.1-psp/config.sub
|
||||
--- gcc-4.0.1/config.sub Mon Apr 25 11:36:56 2005
|
||||
+++ gcc-4.0.1-psp/config.sub Mon Jul 25 23:52:30 2005
|
||||
@@ -254,6 +254,7 @@
|
||||
| mipsisa64sb1 | mipsisa64sb1el \
|
||||
| mipsisa64sr71k | mipsisa64sr71kel \
|
||||
| mipstx39 | mipstx39el \
|
||||
+ | mipsallegrex | mipsallegrexel \
|
||||
| mn10200 | mn10300 \
|
||||
| msp430 \
|
||||
| ns16k | ns32k \
|
||||
@@ -328,6 +329,7 @@
|
||||
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
||||
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
||||
| mipstx39-* | mipstx39el-* \
|
||||
+ | mipsallegrex-* | mipsallegrexel-* \
|
||||
| mmix-* \
|
||||
| msp430-* \
|
||||
| none-* | np1-* | ns16k-* | ns32k-* \
|
||||
@@ -667,6 +669,10 @@
|
||||
*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
|
||||
basic_machine=m68k-atari
|
||||
os=-mint
|
||||
+ ;;
|
||||
+ psp)
|
||||
+ basic_machine=mipsallegrexel-psp
|
||||
+ os=-elf
|
||||
;;
|
||||
mips3*-*)
|
||||
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
||||
diff -NBaur gcc-4.0.1/gcc/c-incpath.c gcc-4.0.1-psp/gcc/c-incpath.c
|
||||
--- gcc-4.0.1/gcc/c-incpath.c Sun Jan 23 15:05:27 2005
|
||||
+++ gcc-4.0.1-psp/gcc/c-incpath.c Mon Jul 25 23:52:30 2005
|
||||
@@ -331,13 +331,18 @@
|
||||
cpp_dir *p;
|
||||
|
||||
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
|
||||
- /* Convert all backslashes to slashes. The native CRT stat()
|
||||
- function does not recognize a directory that ends in a backslash
|
||||
- (unless it is a drive root dir, such "c:\"). Forward slashes,
|
||||
- trailing or otherwise, cause no problems for stat(). */
|
||||
- char* c;
|
||||
- for (c = path; *c; c++)
|
||||
- if (*c == '\\') *c = '/';
|
||||
+ /* Remove unnecessary trailing slashes. On some versions of MS
|
||||
+ Windows, trailing _forward_ slashes cause no problems for stat().
|
||||
+ On newer versions, stat() does not recognise a directory that ends
|
||||
+ in a '\\' or '/', unless it is a drive root dir, such as "c:/",
|
||||
+ where it is obligatory. */
|
||||
+ int pathlen = strlen (path);
|
||||
+ char* end = path + pathlen - 1;
|
||||
+ /* Preserve the lead '/' or lead "c:/". */
|
||||
+ char* start = path + (pathlen > 2 && path[1] == ':' ? 3 : 1);
|
||||
+
|
||||
+ for (; end > start && IS_DIR_SEPARATOR (*end); end--)
|
||||
+ *end = 0;
|
||||
#endif
|
||||
|
||||
p = xmalloc (sizeof (cpp_dir));
|
||||
diff -NBaur gcc-4.0.1/gcc/config/mips/mips.c gcc-4.0.1-psp/gcc/config/mips/mips.c
|
||||
--- gcc-4.0.1/gcc/config/mips/mips.c Sun May 8 12:56:53 2005
|
||||
+++ gcc-4.0.1-psp/gcc/config/mips/mips.c Mon Jul 25 23:52:30 2005
|
||||
@@ -673,6 +673,7 @@
|
||||
|
||||
/* MIPS II */
|
||||
{ "r6000", PROCESSOR_R6000, 2 },
|
||||
+ { "allegrex", PROCESSOR_ALLEGREX, 2 },
|
||||
|
||||
/* MIPS III */
|
||||
{ "r4000", PROCESSOR_R4000, 3 },
|
||||
diff -NBaur gcc-4.0.1/gcc/config/mips/mips.h gcc-4.0.1-psp/gcc/config/mips/mips.h
|
||||
--- gcc-4.0.1/gcc/config/mips/mips.h Fri Apr 15 08:00:18 2005
|
||||
+++ gcc-4.0.1-psp/gcc/config/mips/mips.h Mon Jul 25 23:52:30 2005
|
||||
@@ -59,7 +59,8 @@
|
||||
PROCESSOR_R8000,
|
||||
PROCESSOR_R9000,
|
||||
PROCESSOR_SB1,
|
||||
- PROCESSOR_SR71000
|
||||
+ PROCESSOR_SR71000,
|
||||
+ PROCESSOR_ALLEGREX
|
||||
};
|
||||
|
||||
/* Which ABI to use. ABI_32 (original 32, or o32), ABI_N32 (n32),
|
||||
@@ -308,6 +309,7 @@
|
||||
#define TARGET_MIPS9000 (mips_arch == PROCESSOR_R9000)
|
||||
#define TARGET_SB1 (mips_arch == PROCESSOR_SB1)
|
||||
#define TARGET_SR71K (mips_arch == PROCESSOR_SR71000)
|
||||
+#define TARGET_ALLEGREX (mips_arch == PROCESSOR_ALLEGREX)
|
||||
|
||||
/* Scheduling target defines. */
|
||||
#define TUNE_MIPS3000 (mips_tune == PROCESSOR_R3000)
|
||||
@@ -322,6 +324,7 @@
|
||||
#define TUNE_MIPS7000 (mips_tune == PROCESSOR_R7000)
|
||||
#define TUNE_MIPS9000 (mips_tune == PROCESSOR_R9000)
|
||||
#define TUNE_SB1 (mips_tune == PROCESSOR_SB1)
|
||||
+#define TUNE_ALLEGREX (mips_tune == PROCESSOR_ALLEGREX)
|
||||
|
||||
/* True if the pre-reload scheduler should try to create chains of
|
||||
multiply-add or multiply-subtract instructions. For example,
|
||||
@@ -889,7 +892,8 @@
|
||||
|
||||
/* ISA has conditional trap instructions. */
|
||||
#define ISA_HAS_COND_TRAP (!ISA_MIPS1 \
|
||||
- && !TARGET_MIPS16)
|
||||
+ && !TARGET_MIPS16 \
|
||||
+ && !TARGET_ALLEGREX)
|
||||
|
||||
/* ISA has integer multiply-accumulate instructions, madd and msub. */
|
||||
#define ISA_HAS_MADD_MSUB ((ISA_MIPS32 \
|
||||
@@ -907,6 +911,7 @@
|
||||
#define ISA_HAS_CLZ_CLO ((ISA_MIPS32 \
|
||||
|| ISA_MIPS32R2 \
|
||||
|| ISA_MIPS64 \
|
||||
+ || TARGET_ALLEGREX \
|
||||
) && !TARGET_MIPS16)
|
||||
|
||||
/* ISA has double-word count leading zeroes/ones instruction (not
|
||||
@@ -954,6 +959,7 @@
|
||||
|| TARGET_MIPS5400 \
|
||||
|| TARGET_MIPS5500 \
|
||||
|| TARGET_SR71K \
|
||||
+ || TARGET_ALLEGREX \
|
||||
))
|
||||
|
||||
/* ISA has 64-bit rotate right instruction. */
|
||||
@@ -987,6 +993,7 @@
|
||||
/* ISA includes the MIPS32r2 seb and seh instructions. */
|
||||
#define ISA_HAS_SEB_SEH (!TARGET_MIPS16 \
|
||||
&& (ISA_MIPS32R2 \
|
||||
+ || TARGET_ALLEGREX \
|
||||
))
|
||||
|
||||
/* True if the result of a load is not available to the next instruction.
|
||||
diff -NBaur gcc-4.0.1/gcc/config/mips/psp.h gcc-4.0.1-psp/gcc/config/mips/psp.h
|
||||
--- gcc-4.0.1/gcc/config/mips/psp.h Thu Jan 1 00:00:00 1970
|
||||
+++ gcc-4.0.1-psp/gcc/config/mips/psp.h Mon Jul 25 23:52:30 2005
|
||||
@@ -0,0 +1,31 @@
|
||||
+/* Support for Sony's Playstation Portable (PSP).
|
||||
+ Copyright (C) 2005 Free Software Foundation, Inc.
|
||||
+ Contributed by Marcus R. Brown <mrbrown@ocgnet.org>
|
||||
+
|
||||
+This file is part of GCC.
|
||||
+
|
||||
+GCC is free software; you can redistribute it and/or modify
|
||||
+it under the terms of the GNU General Public License as published by
|
||||
+the Free Software Foundation; either version 2, or (at your option)
|
||||
+any later version.
|
||||
+
|
||||
+GCC is distributed in the hope that it will be useful,
|
||||
+but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+GNU General Public License for more details.
|
||||
+
|
||||
+You should have received a copy of the GNU General Public License
|
||||
+along with GCC; see the file COPYING. If not, write to
|
||||
+the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
+Boston, MA 02111-1307, USA. */
|
||||
+
|
||||
+/* Override the startfile spec to include crt0.o. */
|
||||
+#undef STARTFILE_SPEC
|
||||
+#define STARTFILE_SPEC "crt0%O%s crti%O%s crtbegin%O%s"
|
||||
+
|
||||
+#undef SUBTARGET_CPP_SPEC
|
||||
+#define SUBTARGET_CPP_SPEC "-DPSP=1 -D__psp__=1 -D_PSP=1"
|
||||
+
|
||||
+/* Get rid of the .pdr section. */
|
||||
+#undef SUBTARGET_ASM_SPEC
|
||||
+#define SUBTARGET_ASM_SPEC "-mno-pdr"
|
||||
diff -NBaur gcc-4.0.1/gcc/config/mips/t-allegrex gcc-4.0.1-psp/gcc/config/mips/t-allegrex
|
||||
--- gcc-4.0.1/gcc/config/mips/t-allegrex Thu Jan 1 00:00:00 1970
|
||||
+++ gcc-4.0.1-psp/gcc/config/mips/t-allegrex Mon Jul 25 23:52:30 2005
|
||||
@@ -0,0 +1,29 @@
|
||||
+# Suppress building libgcc1.a, since the MIPS compiler port is complete
|
||||
+# and does not need anything from libgcc1.a.
|
||||
+LIBGCC1 =
|
||||
+CROSS_LIBGCC1 =
|
||||
+
|
||||
+EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
|
||||
+# Don't let CTOR_LIST end up in sdata section.
|
||||
+CRTSTUFF_T_CFLAGS = -G 0
|
||||
+
|
||||
+# Assemble startup files.
|
||||
+$(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES)
|
||||
+ $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
|
||||
+ -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm
|
||||
+
|
||||
+$(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES)
|
||||
+ $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
|
||||
+ -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm
|
||||
+
|
||||
+# We must build libgcc2.a with -G 0, in case the user wants to link
|
||||
+# without the $gp register.
|
||||
+TARGET_LIBGCC2_CFLAGS = -G 0
|
||||
+
|
||||
+# Build the libraries for both hard and soft floating point
|
||||
+
|
||||
+MULTILIB_OPTIONS =
|
||||
+MULTILIB_DIRNAMES =
|
||||
+
|
||||
+LIBGCC = stmp-multilib
|
||||
+INSTALL_LIBGCC = install-multilib
|
||||
diff -NBaur gcc-4.0.1/gcc/config.gcc gcc-4.0.1-psp/gcc/config.gcc
|
||||
--- gcc-4.0.1/gcc/config.gcc Thu May 5 21:11:50 2005
|
||||
+++ gcc-4.0.1-psp/gcc/config.gcc Mon Jul 25 23:52:30 2005
|
||||
@@ -1520,6 +1520,18 @@
|
||||
tmake_file=mips/t-r3900
|
||||
use_fixproto=yes
|
||||
;;
|
||||
+mipsallegrex-*-elf* | mipsallegrexel-*-elf*)
|
||||
+ tm_file="elfos.h ${tm_file} mips/elf.h"
|
||||
+ tmake_file=mips/t-allegrex
|
||||
+ target_cpu_default="MASK_SINGLE_FLOAT|MASK_DIVIDE_BREAKS"
|
||||
+ tm_defines="MIPS_ISA_DEFAULT=2 MIPS_CPU_STRING_DEFAULT=\\\"allegrex\\\" MIPS_ABI_DEFAULT=ABI_EABI"
|
||||
+ case ${target} in
|
||||
+ mipsallegrex*-psp-elf*)
|
||||
+ tm_file="${tm_file} mips/psp.h"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ use_fixproto=yes
|
||||
+ ;;
|
||||
mmix-knuth-mmixware)
|
||||
need_64bit_hwint=yes
|
||||
;;
|
||||
diff -NBaur gcc-4.0.1/gcc/hwint.h gcc-4.0.1-psp/gcc/hwint.h
|
||||
--- gcc-4.0.1/gcc/hwint.h Wed Nov 24 04:31:57 2004
|
||||
+++ gcc-4.0.1-psp/gcc/hwint.h Mon Jul 25 23:52:30 2005
|
||||
@@ -80,7 +80,7 @@
|
||||
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx"
|
||||
# endif
|
||||
#else
|
||||
-# define HOST_WIDE_INT_PRINT "ll"
|
||||
+# define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT
|
||||
# define HOST_WIDE_INT_PRINT_C "LL"
|
||||
/* We can assume that 'long long' is at least 64 bits. */
|
||||
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX \
|
||||
diff -NBaur gcc-4.0.1/gcc/version.c gcc-4.0.1-psp/gcc/version.c
|
||||
--- gcc-4.0.1/gcc/version.c Thu Jul 7 19:41:54 2005
|
||||
+++ gcc-4.0.1-psp/gcc/version.c Mon Jul 25 23:52:30 2005
|
||||
@@ -5,7 +5,7 @@
|
||||
please modify this string to indicate that, e.g. by putting your
|
||||
organization's name in parentheses at the end of the string. */
|
||||
|
||||
-const char version_string[] = "4.0.1";
|
||||
+const char version_string[] = "4.0.1 (PSPDEV 20050722)";
|
||||
|
||||
/* This is the location of the online document giving instructions for
|
||||
reporting bugs. If you distribute a modified version of GCC,
|
||||
@@ -14,4 +14,4 @@
|
||||
forward us bugs reported to you, if you determine that they are
|
||||
not bugs in your modifications.) */
|
||||
|
||||
-const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>";
|
||||
+const char bug_report_url[] = "<URL:http://wiki.pspdev.org/psp:toolchain#bugs>";
|
||||
--- gcc-4.0.1.orig/config.sub 2005-04-25 13:36:56.000000000 +0300
|
||||
+++ gcc-psp/config.sub 2005-07-29 10:28:51.000000000 +0300
|
||||
@@ -254,6 +254,7 @@
|
||||
| mipsisa64sb1 | mipsisa64sb1el \
|
||||
| mipsisa64sr71k | mipsisa64sr71kel \
|
||||
| mipstx39 | mipstx39el \
|
||||
+ | mipsallegrex | mipsallegrexel \
|
||||
| mn10200 | mn10300 \
|
||||
| msp430 \
|
||||
| ns16k | ns32k \
|
||||
@@ -328,6 +329,7 @@
|
||||
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
||||
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
||||
| mipstx39-* | mipstx39el-* \
|
||||
+ | mipsallegrex-* | mipsallegrexel-* \
|
||||
| mmix-* \
|
||||
| msp430-* \
|
||||
| none-* | np1-* | ns16k-* | ns32k-* \
|
||||
@@ -668,6 +670,10 @@
|
||||
basic_machine=m68k-atari
|
||||
os=-mint
|
||||
;;
|
||||
+ psp)
|
||||
+ basic_machine=mipsallegrexel-psp
|
||||
+ os=-elf
|
||||
+ ;;
|
||||
mips3*-*)
|
||||
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
||||
;;
|
||||
--- gcc-4.0.1.orig/gcc/config/mips/t-allegrex 1970-01-01 02:00:00.000000000 +0200
|
||||
+++ gcc-psp/gcc/config/mips/t-allegrex 2005-07-29 10:28:51.000000000 +0300
|
||||
@@ -0,0 +1,29 @@
|
||||
+# Suppress building libgcc1.a, since the MIPS compiler port is complete
|
||||
+# and does not need anything from libgcc1.a.
|
||||
+LIBGCC1 =
|
||||
+CROSS_LIBGCC1 =
|
||||
+
|
||||
+EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
|
||||
+# Don't let CTOR_LIST end up in sdata section.
|
||||
+CRTSTUFF_T_CFLAGS = -G 0
|
||||
+
|
||||
+# Assemble startup files.
|
||||
+$(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES)
|
||||
+ $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
|
||||
+ -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm
|
||||
+
|
||||
+$(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES)
|
||||
+ $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
|
||||
+ -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm
|
||||
+
|
||||
+# We must build libgcc2.a with -G 0, in case the user wants to link
|
||||
+# without the $gp register.
|
||||
+TARGET_LIBGCC2_CFLAGS = -G 0
|
||||
+
|
||||
+# Build the libraries for both hard and soft floating point
|
||||
+
|
||||
+MULTILIB_OPTIONS =
|
||||
+MULTILIB_DIRNAMES =
|
||||
+
|
||||
+LIBGCC = stmp-multilib
|
||||
+INSTALL_LIBGCC = install-multilib
|
||||
--- gcc-4.0.1.orig/gcc/config/mips/mips.md 2005-05-08 14:56:58.000000000 +0300
|
||||
+++ gcc-psp/gcc/config/mips/mips.md 2005-07-29 11:55:13.000000000 +0300
|
||||
@@ -5200,7 +5200,7 @@
|
||||
(const_int 0)])
|
||||
(match_operand:GPR 2 "reg_or_0_operand" "dJ,0")
|
||||
(match_operand:GPR 3 "reg_or_0_operand" "0,dJ")))]
|
||||
- "ISA_HAS_CONDMOVE"
|
||||
+ "ISA_HAS_CONDMOVE || ISA_HAS_INT_CONDMOVE"
|
||||
"@
|
||||
mov%T4\t%0,%z2,%1
|
||||
mov%t4\t%0,%z3,%1"
|
||||
@@ -5230,8 +5230,12 @@
|
||||
(if_then_else:GPR (match_dup 5)
|
||||
(match_operand:GPR 2 "reg_or_0_operand")
|
||||
(match_operand:GPR 3 "reg_or_0_operand")))]
|
||||
- "ISA_HAS_CONDMOVE"
|
||||
+ "ISA_HAS_CONDMOVE || ISA_HAS_INT_CONDMOVE"
|
||||
{
|
||||
+ if (ISA_HAS_INT_CONDMOVE
|
||||
+ && GET_MODE_CLASS (GET_MODE (cmp_operands[0])) == MODE_FLOAT)
|
||||
+ FAIL;
|
||||
+
|
||||
gen_conditional_move (operands);
|
||||
DONE;
|
||||
})
|
||||
--- gcc-4.0.1.orig/gcc/config/mips/psp.h 1970-01-01 02:00:00.000000000 +0200
|
||||
+++ gcc-psp/gcc/config/mips/psp.h 2005-07-29 10:28:51.000000000 +0300
|
||||
@@ -0,0 +1,31 @@
|
||||
+/* Support for Sony's Playstation Portable (PSP).
|
||||
+ Copyright (C) 2005 Free Software Foundation, Inc.
|
||||
+ Contributed by Marcus R. Brown <mrbrown@ocgnet.org>
|
||||
+
|
||||
+This file is part of GCC.
|
||||
+
|
||||
+GCC is free software; you can redistribute it and/or modify
|
||||
+it under the terms of the GNU General Public License as published by
|
||||
+the Free Software Foundation; either version 2, or (at your option)
|
||||
+any later version.
|
||||
+
|
||||
+GCC is distributed in the hope that it will be useful,
|
||||
+but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+GNU General Public License for more details.
|
||||
+
|
||||
+You should have received a copy of the GNU General Public License
|
||||
+along with GCC; see the file COPYING. If not, write to
|
||||
+the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
+Boston, MA 02111-1307, USA. */
|
||||
+
|
||||
+/* Override the startfile spec to include crt0.o. */
|
||||
+#undef STARTFILE_SPEC
|
||||
+#define STARTFILE_SPEC "crt0%O%s crti%O%s crtbegin%O%s"
|
||||
+
|
||||
+#undef SUBTARGET_CPP_SPEC
|
||||
+#define SUBTARGET_CPP_SPEC "-DPSP=1 -D__psp__=1 -D_PSP=1"
|
||||
+
|
||||
+/* Get rid of the .pdr section. */
|
||||
+#undef SUBTARGET_ASM_SPEC
|
||||
+#define SUBTARGET_ASM_SPEC "-mno-pdr"
|
||||
--- gcc-4.0.1.orig/gcc/config/mips/mips.c 2005-05-08 14:56:53.000000000 +0300
|
||||
+++ gcc-psp/gcc/config/mips/mips.c 2005-07-29 10:28:51.000000000 +0300
|
||||
@@ -673,6 +673,7 @@
|
||||
|
||||
/* MIPS II */
|
||||
{ "r6000", PROCESSOR_R6000, 2 },
|
||||
+ { "allegrex", PROCESSOR_ALLEGREX, 2 },
|
||||
|
||||
/* MIPS III */
|
||||
{ "r4000", PROCESSOR_R4000, 3 },
|
||||
--- gcc-4.0.1.orig/gcc/config/mips/mips.h 2005-04-15 10:00:18.000000000 +0300
|
||||
+++ gcc-psp/gcc/config/mips/mips.h 2005-07-29 11:55:13.000000000 +0300
|
||||
@@ -59,7 +59,8 @@
|
||||
PROCESSOR_R8000,
|
||||
PROCESSOR_R9000,
|
||||
PROCESSOR_SB1,
|
||||
- PROCESSOR_SR71000
|
||||
+ PROCESSOR_SR71000,
|
||||
+ PROCESSOR_ALLEGREX
|
||||
};
|
||||
|
||||
/* Which ABI to use. ABI_32 (original 32, or o32), ABI_N32 (n32),
|
||||
@@ -308,6 +309,7 @@
|
||||
#define TARGET_MIPS9000 (mips_arch == PROCESSOR_R9000)
|
||||
#define TARGET_SB1 (mips_arch == PROCESSOR_SB1)
|
||||
#define TARGET_SR71K (mips_arch == PROCESSOR_SR71000)
|
||||
+#define TARGET_ALLEGREX (mips_arch == PROCESSOR_ALLEGREX)
|
||||
|
||||
/* Scheduling target defines. */
|
||||
#define TUNE_MIPS3000 (mips_tune == PROCESSOR_R3000)
|
||||
@@ -322,6 +324,7 @@
|
||||
#define TUNE_MIPS7000 (mips_tune == PROCESSOR_R7000)
|
||||
#define TUNE_MIPS9000 (mips_tune == PROCESSOR_R9000)
|
||||
#define TUNE_SB1 (mips_tune == PROCESSOR_SB1)
|
||||
+#define TUNE_ALLEGREX (mips_tune == PROCESSOR_ALLEGREX)
|
||||
|
||||
/* True if the pre-reload scheduler should try to create chains of
|
||||
multiply-add or multiply-subtract instructions. For example,
|
||||
@@ -873,6 +876,9 @@
|
||||
&& !TARGET_MIPS5500 \
|
||||
&& !TARGET_MIPS16)
|
||||
|
||||
+/* ISA has just the integer condition move instructions (movn,movz) */
|
||||
+#define ISA_HAS_INT_CONDMOVE (TARGET_ALLEGREX)
|
||||
+
|
||||
/* ISA has the mips4 FP condition code instructions: FP-compare to CC,
|
||||
branch on CC, and move (both FP and non-FP) on CC. */
|
||||
#define ISA_HAS_8CC (ISA_MIPS4 \
|
||||
@@ -889,7 +895,8 @@
|
||||
|
||||
/* ISA has conditional trap instructions. */
|
||||
#define ISA_HAS_COND_TRAP (!ISA_MIPS1 \
|
||||
- && !TARGET_MIPS16)
|
||||
+ && !TARGET_MIPS16 \
|
||||
+ && !TARGET_ALLEGREX)
|
||||
|
||||
/* ISA has integer multiply-accumulate instructions, madd and msub. */
|
||||
#define ISA_HAS_MADD_MSUB ((ISA_MIPS32 \
|
||||
@@ -907,6 +914,7 @@
|
||||
#define ISA_HAS_CLZ_CLO ((ISA_MIPS32 \
|
||||
|| ISA_MIPS32R2 \
|
||||
|| ISA_MIPS64 \
|
||||
+ || TARGET_ALLEGREX \
|
||||
) && !TARGET_MIPS16)
|
||||
|
||||
/* ISA has double-word count leading zeroes/ones instruction (not
|
||||
@@ -954,6 +962,7 @@
|
||||
|| TARGET_MIPS5400 \
|
||||
|| TARGET_MIPS5500 \
|
||||
|| TARGET_SR71K \
|
||||
+ || TARGET_ALLEGREX \
|
||||
))
|
||||
|
||||
/* ISA has 64-bit rotate right instruction. */
|
||||
@@ -987,6 +996,7 @@
|
||||
/* ISA includes the MIPS32r2 seb and seh instructions. */
|
||||
#define ISA_HAS_SEB_SEH (!TARGET_MIPS16 \
|
||||
&& (ISA_MIPS32R2 \
|
||||
+ || TARGET_ALLEGREX \
|
||||
))
|
||||
|
||||
/* True if the result of a load is not available to the next instruction.
|
||||
--- gcc-4.0.1.orig/gcc/config.gcc 2005-05-05 23:11:50.000000000 +0300
|
||||
+++ gcc-psp/gcc/config.gcc 2005-07-29 10:28:51.000000000 +0300
|
||||
@@ -1520,6 +1520,18 @@
|
||||
tmake_file=mips/t-r3900
|
||||
use_fixproto=yes
|
||||
;;
|
||||
+mipsallegrex-*-elf* | mipsallegrexel-*-elf*)
|
||||
+ tm_file="elfos.h ${tm_file} mips/elf.h"
|
||||
+ tmake_file=mips/t-allegrex
|
||||
+ target_cpu_default="MASK_SINGLE_FLOAT|MASK_DIVIDE_BREAKS"
|
||||
+ tm_defines="MIPS_ISA_DEFAULT=2 MIPS_CPU_STRING_DEFAULT=\\\"allegrex\\\" MIPS_ABI_DEFAULT=ABI_EABI"
|
||||
+ case ${target} in
|
||||
+ mipsallegrex*-psp-elf*)
|
||||
+ tm_file="${tm_file} mips/psp.h"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ use_fixproto=yes
|
||||
+ ;;
|
||||
mmix-knuth-mmixware)
|
||||
need_64bit_hwint=yes
|
||||
;;
|
||||
--- gcc-4.0.1.orig/gcc/hwint.h 2004-11-24 06:31:57.000000000 +0200
|
||||
+++ gcc-psp/gcc/hwint.h 2005-07-29 10:28:51.000000000 +0300
|
||||
@@ -80,7 +80,7 @@
|
||||
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx"
|
||||
# endif
|
||||
#else
|
||||
-# define HOST_WIDE_INT_PRINT "ll"
|
||||
+# define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT
|
||||
# define HOST_WIDE_INT_PRINT_C "LL"
|
||||
/* We can assume that 'long long' is at least 64 bits. */
|
||||
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX \
|
||||
--- gcc-4.0.1.orig/gcc/version.c 2005-07-07 21:41:54.000000000 +0300
|
||||
+++ gcc-psp/gcc/version.c 2005-07-29 12:01:07.000000000 +0300
|
||||
@@ -5,7 +5,7 @@
|
||||
please modify this string to indicate that, e.g. by putting your
|
||||
organization's name in parentheses at the end of the string. */
|
||||
|
||||
-const char version_string[] = "4.0.1";
|
||||
+const char version_string[] = "4.0.1 (PSPDEV 20050729)";
|
||||
|
||||
/* This is the location of the online document giving instructions for
|
||||
reporting bugs. If you distribute a modified version of GCC,
|
||||
@@ -14,4 +14,4 @@
|
||||
forward us bugs reported to you, if you determine that they are
|
||||
not bugs in your modifications.) */
|
||||
|
||||
-const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>";
|
||||
+const char bug_report_url[] = "<URL:http://wiki.pspdev.org/psp:toolchain#bugs>";
|
||||
--- gcc-4.0.1.orig/gcc/c-incpath.c 2005-01-23 17:05:27.000000000 +0200
|
||||
+++ gcc-psp/gcc/c-incpath.c 2005-07-29 10:28:51.000000000 +0300
|
||||
@@ -331,13 +331,18 @@
|
||||
cpp_dir *p;
|
||||
|
||||
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
|
||||
- /* Convert all backslashes to slashes. The native CRT stat()
|
||||
- function does not recognize a directory that ends in a backslash
|
||||
- (unless it is a drive root dir, such "c:\"). Forward slashes,
|
||||
- trailing or otherwise, cause no problems for stat(). */
|
||||
- char* c;
|
||||
- for (c = path; *c; c++)
|
||||
- if (*c == '\\') *c = '/';
|
||||
+ /* Remove unnecessary trailing slashes. On some versions of MS
|
||||
+ Windows, trailing _forward_ slashes cause no problems for stat().
|
||||
+ On newer versions, stat() does not recognise a directory that ends
|
||||
+ in a '\\' or '/', unless it is a drive root dir, such as "c:/",
|
||||
+ where it is obligatory. */
|
||||
+ int pathlen = strlen (path);
|
||||
+ char* end = path + pathlen - 1;
|
||||
+ /* Preserve the lead '/' or lead "c:/". */
|
||||
+ char* start = path + (pathlen > 2 && path[1] == ':' ? 3 : 1);
|
||||
+
|
||||
+ for (; end > start && IS_DIR_SEPARATOR (*end); end--)
|
||||
+ *end = 0;
|
||||
#endif
|
||||
|
||||
p = xmalloc (sizeof (cpp_dir));
|
||||
|
|
|
|||
|
|
@ -5,11 +5,16 @@
|
|||
#---------------------------------------------------------------------------------
|
||||
|
||||
echo "building pspsdk ..."
|
||||
cd $PSPSDK_SRCDIR
|
||||
./configure || { echo "Error configuring pspsdk"; exit 1; }
|
||||
$MAKE || { echo "Error building pspsdk"; exit 1; }
|
||||
echo "installing pspsdk ..."
|
||||
$MAKE install || { echo "Error installing pspsdk"; exit 1; }
|
||||
cd pspsdk
|
||||
|
||||
./configure || { echo "ERROR RUNNING PSPSDK CONFIGURE"; exit 1; }
|
||||
|
||||
$MAKE || { echo "ERROR BUILDING PSPSDK"; exit 1; }
|
||||
|
||||
$MAKE install || { echo "ERROR INSTALLING PSPSDK"; exit 1; }
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
rm -fr pspsdk
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,13 @@ $MAKE install-gcc || { echo "Error installing gcc"; exit 1; }
|
|||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
svn checkout svn://svn.pspdev.org/psp/trunk/pspsdk || { echo "ERROR GETTING PSPSDK"; exit 1; }
|
||||
cd pspsdk
|
||||
./bootstrap || { echo "ERROR RUNNING PSPSDK BOOSTRAP"; exit 1; }
|
||||
./configure || { echo "ERROR RUNNING PSPSDK CONFIGURE"; exit 1; }
|
||||
$MAKE install-data || { echo "ERROR INSTALLING PSPSDK HEADERS"; exit 1; }
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install newlib
|
||||
#---------------------------------------------------------------------------------
|
||||
|
|
@ -87,6 +94,7 @@ $MAKE install || { echo "Error installing g++"; exit 1; }
|
|||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# remove temp stuff to conserve disc space
|
||||
#---------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user