Compare commits

..

13 Commits

Author SHA1 Message Date
Dave Murphy
89fa563280 final adjustments for devkitARM release 41 2012-06-25 13:43:44 +01:00
Dave Murphy
c9b0f0a993 changes for devkitARM release 41 2012-06-18 12:44:30 +01:00
Dave Murphy
def31f974b latest stlink version 2012-05-16 23:07:19 +01:00
Dave Murphy
1baf7cd020 new stlink version 2012-05-14 23:56:15 +01:00
Dave Murphy
edbd8b0249 strip dll debug info 2012-05-14 23:55:47 +01:00
Dave Murphy
471ea1e10e add i1686-w64-mingw32 pkgconfig path when cross building, copy libusb dll for windows devkitARM 2012-05-10 12:59:39 +01:00
Dave Murphy
c970193166 update devkitARM, libogc & libnds versions 2012-05-09 15:03:18 +01:00
Dave Murphy
4a41ed304e reinstate --with-gnu-as etc, bump package version 2012-05-09 15:02:23 +01:00
Dave Murphy
bf3a5359b4 add dswifi to build 2012-05-09 15:01:19 +01:00
Dave Murphy
93f3a57a16 new stlink version, builds & works on windows 2012-04-29 19:47:02 +01:00
Dave Murphy
fb92e0d43e add extra tools, next devkitARM is r39 2012-04-28 10:52:25 +01:00
Dave Murphy
98adbbcc9b fix gcc build dir 2012-04-27 13:27:34 +01:00
Dave Murphy
d98429e0fa volatiles fix 2012-04-26 15:07:14 +01:00
10 changed files with 159 additions and 166 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# Build scripts for # Build scripts for
# devkitARM release 38 # devkitARM release 41
# devkitPPC release 26 # devkitPPC release 26
# devkitPSP release 17 # devkitPSP release 17
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
@@ -11,8 +11,8 @@ if [ 0 -eq 1 ] ; then
echo "Please use the latest release buildscripts unless advised otherwise by devkitPro staff." echo "Please use the latest release buildscripts unless advised otherwise by devkitPro staff."
echo "http://sourceforge.net/projects/devkitpro/files/buildscripts/" echo "http://sourceforge.net/projects/devkitpro/files/buildscripts/"
echo echo
echo "The scripts in svn are quite often dependent on things which currently only exist on developer" echo "The scripts in the git repository are quite often dependent on things which currently only exist"
echo "machines. This is not a bug, use stable releases." echo "on developer machines. This is not a bug, use stable releases."
exit 1 exit 1
fi fi
@@ -24,9 +24,9 @@ echo "Patches and improvements are of course welcome, please send these to the p
echo "https://sourceforge.net/tracker/?group_id=114505&atid=668553" echo "https://sourceforge.net/tracker/?group_id=114505&atid=668553"
echo echo
LIBOGC_VER=1.8.10 LIBOGC_VER=1.8.11
LIBGBA_VER=20090222 LIBGBA_VER=20090222
LIBNDS_VER=1.5.5 LIBNDS_VER=1.5.7
DEFAULT_ARM7_VER=0.5.24 DEFAULT_ARM7_VER=0.5.24
DSWIFI_VER=0.3.13 DSWIFI_VER=0.3.13
LIBMIRKO_VER=0.9.7 LIBMIRKO_VER=0.9.7
@@ -44,6 +44,8 @@ GCDSPSUITE_VER=1.4.0
ELF2DOL_VER=1.0.0 ELF2DOL_VER=1.0.0
WIILOAD_VER=0.5.1 WIILOAD_VER=0.5.1
MMUTIL_VER=1.8.6 MMUTIL_VER=1.8.6
DFU_UTIL_VER=0.6
STLINK_VER=0.5.4
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
function extract_and_patch { function extract_and_patch {
@@ -151,6 +153,10 @@ else
prefix=$INSTALLDIR/$package prefix=$INSTALLDIR/$package
fi fi
if [ "$CROSSBUILD" = "i686-w64-mingw32" ]; then
export PKG_CONFIG_PATH=/opt/i686-w64-mingw32/mingw/lib/pkgconfig
fi
if [ "$BUILD_DKPRO_AUTOMATED" != "1" ] ; then if [ "$BUILD_DKPRO_AUTOMATED" != "1" ] ; then
echo echo
@@ -181,7 +187,7 @@ BUILDDIR=$(pwd)/.$package
if [ ! -z $CROSSBUILD ]; then if [ ! -z $CROSSBUILD ]; then
BUILDDIR=$BUILDDIR-$CROSSBUILD BUILDDIR=$BUILDDIR-$CROSSBUILD
fi fi
DEVKITPRO_URL="https://downloads.devkitpro.org" DEVKITPRO_URL="http://downloads.sourceforge.net/devkitpro"
patchdir=$(pwd)/$basedir/patches patchdir=$(pwd)/$basedir/patches
scriptdir=$(pwd)/$basedir/scripts scriptdir=$(pwd)/$basedir/scripts
@@ -194,7 +200,8 @@ if [ $VERSION -eq 1 ]; then
default-arm7-src-${DEFAULT_ARM7_VER}.tar.bz2 libfilesystem-src-${FILESYSTEM_VER}.tar.bz2 default-arm7-src-${DEFAULT_ARM7_VER}.tar.bz2 libfilesystem-src-${FILESYSTEM_VER}.tar.bz2
libfat-src-${LIBFAT_VER}.tar.bz2" libfat-src-${LIBFAT_VER}.tar.bz2"
hostarchives="gbatools-$GBATOOLS_VER.tar.bz2 grit-$GRIT_VER.tar.bz2 ndstool-$NDSTOOL_VER.tar.bz2 hostarchives="gbatools-$GBATOOLS_VER.tar.bz2 grit-$GRIT_VER.tar.bz2 ndstool-$NDSTOOL_VER.tar.bz2
general-tools-$GENERAL_TOOLS_VER.tar.bz2 dlditool-$DLDITOOL_VER.tar.bz2 mmutil-$MMUTIL_VER.tar.bz2" general-tools-$GENERAL_TOOLS_VER.tar.bz2 dlditool-$DLDITOOL_VER.tar.bz2 mmutil-$MMUTIL_VER.tar.bz2
dfu-util-$DFU_UTIL_VER.tar.bz2 stlink-$STLINK_VER.tar.bz2"
fi fi
if [ $VERSION -eq 2 ]; then if [ $VERSION -eq 2 ]; then
@@ -218,7 +225,7 @@ for archive in $archives $targetarchives $hostarchives
do do
echo $archive echo $archive
if [ ! -f $archive ]; then if [ ! -f $archive ]; then
$FETCH $DEVKITPRO_URL/$archive || { echo "Error: Failed to download $archive"; exit 1; } $FETCH http://downloads.sf.net/devkitpro/$archive || { echo "Error: Failed to download $archive"; exit 1; }
fi fi
done done
@@ -258,6 +265,9 @@ if [ "$CROSSBUILD" = "i686-w64-mingw32" ]; then
if [ $VERSION -ne 3 ]; then if [ $VERSION -ne 3 ]; then
cp -v /opt/i686-w64-mingw32/mingw/lib/FreeImage.dll $prefix/bin cp -v /opt/i686-w64-mingw32/mingw/lib/FreeImage.dll $prefix/bin
fi fi
if [ $VERSION -eq 1 ]; then
cp -v /opt/i686-w64-mingw32/i686-w64-mingw32/bin/libusb-1.0.dll $prefix/bin
fi
cp -v /opt/i686-w64-mingw32/mingw/lib/libstdc++-6.dll \ cp -v /opt/i686-w64-mingw32/mingw/lib/libstdc++-6.dll \
/opt/i686-w64-mingw32/mingw/lib/libgcc_s_sjlj-1.dll \ /opt/i686-w64-mingw32/mingw/lib/libgcc_s_sjlj-1.dll \
$prefix/bin $prefix/bin

View File

@@ -1,6 +1,6 @@
diff -Nbaur gcc-4.7.0/gcc/config/arm/t-arm-elf gcc-4.7.0-arm/gcc/config/arm/t-arm-elf diff -Nbaur gcc-4.7.1/gcc/config/arm/t-arm-elf gcc-4.7.1-arm/gcc/config/arm/t-arm-elf
--- gcc-4.7.0/gcc/config/arm/t-arm-elf 2011-11-02 15:23:48.000000000 +0000 --- gcc-4.7.1/gcc/config/arm/t-arm-elf 2011-11-02 15:23:48.000000000 +0000
+++ gcc-4.7.0-arm/gcc/config/arm/t-arm-elf 2012-04-05 20:36:17.000000000 +0100 +++ gcc-4.7.1-arm/gcc/config/arm/t-arm-elf 2012-06-15 19:36:09.000000000 +0100
@@ -26,22 +26,44 @@ @@ -26,22 +26,44 @@
#MULTILIB_DIRNAMES += fa526 fa626 fa606te fa626te fmp626 fa726te #MULTILIB_DIRNAMES += fa526 fa626 fa606te fa626te fmp626 fa726te
#MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=fa526 *mthumb*/*mcpu=fa626 #MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=fa526 *mthumb*/*mcpu=fa626
@@ -71,18 +71,18 @@ diff -Nbaur gcc-4.7.0/gcc/config/arm/t-arm-elf gcc-4.7.0-arm/gcc/config/arm/t-ar
# #
# MULTILIB_OPTIONS += mfloat-abi=hard/mfloat-abi=soft # MULTILIB_OPTIONS += mfloat-abi=hard/mfloat-abi=soft
# MULTILIB_DIRNAMES += fpu soft # MULTILIB_DIRNAMES += fpu soft
diff -Nbaur gcc-4.7.0/gcc/config/arm/unknown-elf.h gcc-4.7.0-arm/gcc/config/arm/unknown-elf.h diff -Nbaur gcc-4.7.1/gcc/config/arm/unknown-elf.h gcc-4.7.1-arm/gcc/config/arm/unknown-elf.h
--- gcc-4.7.0/gcc/config/arm/unknown-elf.h 2011-03-31 13:13:13.000000000 +0100 --- gcc-4.7.1/gcc/config/arm/unknown-elf.h 2011-03-31 13:13:13.000000000 +0100
+++ gcc-4.7.0-arm/gcc/config/arm/unknown-elf.h 2012-04-05 20:36:17.000000000 +0100 +++ gcc-4.7.1-arm/gcc/config/arm/unknown-elf.h 2012-06-15 19:36:09.000000000 +0100
@@ -94,4 +94,4 @@ @@ -94,4 +94,4 @@
udivmoddi4, which will depend on the exception unwind routines, udivmoddi4, which will depend on the exception unwind routines,
which will depend on abort, which is defined in libc. */ which will depend on abort, which is defined in libc. */
#undef LINK_GCC_C_SEQUENCE_SPEC #undef LINK_GCC_C_SEQUENCE_SPEC
-#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L --end-group" -#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L --end-group"
+#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L %(libgloss) --end-group" +#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L %(libgloss) --end-group"
diff -Nbaur gcc-4.7.0/gcc/gcc.c gcc-4.7.0-arm/gcc/gcc.c diff -Nbaur gcc-4.7.1/gcc/gcc.c gcc-4.7.1-arm/gcc/gcc.c
--- gcc-4.7.0/gcc/gcc.c 2012-02-28 17:31:38.000000000 +0000 --- gcc-4.7.1/gcc/gcc.c 2012-02-28 17:31:38.000000000 +0000
+++ gcc-4.7.0-arm/gcc/gcc.c 2012-04-05 20:36:17.000000000 +0100 +++ gcc-4.7.1-arm/gcc/gcc.c 2012-06-15 19:36:09.000000000 +0100
@@ -548,6 +548,11 @@ @@ -548,6 +548,11 @@
#endif #endif
#endif #endif
@@ -111,9 +111,9 @@ diff -Nbaur gcc-4.7.0/gcc/gcc.c gcc-4.7.0-arm/gcc/gcc.c
INIT_STATIC_SPEC ("startfile", &startfile_spec), INIT_STATIC_SPEC ("startfile", &startfile_spec),
INIT_STATIC_SPEC ("cross_compile", &cross_compile), INIT_STATIC_SPEC ("cross_compile", &cross_compile),
INIT_STATIC_SPEC ("version", &compiler_version), INIT_STATIC_SPEC ("version", &compiler_version),
diff -Nbaur gcc-4.7.0/libcpp/Makefile.in gcc-4.7.0-arm/libcpp/Makefile.in diff -Nbaur gcc-4.7.1/libcpp/Makefile.in gcc-4.7.1-arm/libcpp/Makefile.in
--- gcc-4.7.0/libcpp/Makefile.in 2012-03-22 07:37:39.000000000 +0000 --- gcc-4.7.1/libcpp/Makefile.in 2012-06-14 09:48:08.000000000 +0100
+++ gcc-4.7.0-arm/libcpp/Makefile.in 2012-04-05 20:36:17.000000000 +0100 +++ gcc-4.7.1-arm/libcpp/Makefile.in 2012-06-15 19:36:11.000000000 +0100
@@ -214,8 +214,7 @@ @@ -214,8 +214,7 @@
# Note that we put the dependencies into a .Tpo file, then move them # Note that we put the dependencies into a .Tpo file, then move them
# into place if the compile succeeds. We need this because gcc does # into place if the compile succeeds. We need this because gcc does
@@ -124,27 +124,15 @@ diff -Nbaur gcc-4.7.0/libcpp/Makefile.in gcc-4.7.0-arm/libcpp/Makefile.in
else else
COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \ COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \
$(depcomp) $(COMPILE.base) $(depcomp) $(COMPILE.base)
diff -Nbaur gcc-4.7.0/libgcc/crtstuff.c gcc-4.7.0-arm/libgcc/crtstuff.c diff -Nbaur gcc-4.7.1/libgcc/Makefile.in gcc-4.7.1-arm/libgcc/Makefile.in
--- gcc-4.7.0/libgcc/crtstuff.c 2011-12-06 21:35:41.000000000 +0000 --- gcc-4.7.1/libgcc/Makefile.in 2012-05-24 15:59:38.000000000 +0100
+++ gcc-4.7.0-arm/libgcc/crtstuff.c 2012-04-05 20:36:50.000000000 +0100 +++ gcc-4.7.1-arm/libgcc/Makefile.in 2012-06-16 13:58:38.000000000 +0100
@@ -49,7 +49,7 @@
/* Target machine header files require this define. */
#define IN_LIBGCC2
-
+#define USED_FOR_TARGET
/* FIXME: Including auto-host is incorrect, but until we have
identified the set of defines that need to go into auto-target.h,
this will have to do. */
diff -Nbaur gcc-4.7.0/libgcc/Makefile.in gcc-4.7.0-arm/libgcc/Makefile.in
--- gcc-4.7.0/libgcc/Makefile.in 2011-11-22 03:01:02.000000000 +0000
+++ gcc-4.7.0-arm/libgcc/Makefile.in 2012-04-05 20:36:17.000000000 +0100
@@ -500,14 +500,14 @@ @@ -500,14 +500,14 @@
lib2-divmod-o = $(patsubst %,%$(objext),$(LIB2_DIVMOD_FUNCS)) lib2-divmod-o = $(patsubst %,%$(objext),$(LIB2_DIVMOD_FUNCS))
$(lib2-divmod-o): %$(objext): $(srcdir)/libgcc2.c $(lib2-divmod-o): %$(objext): $(srcdir)/libgcc2.c
$(gcc_compile) -DL$* -c $< \ $(gcc_compile) -DL$* -c $< \
- -fexceptions -fnon-call-exceptions $(vis_hide) - -fexceptions -fnon-call-exceptions $(vis_hide)
+ -fno-exceptions -fnon-call-exceptions $(vis_hide) + -fno-exceptions -fno-non-call-exceptions $(vis_hide)
libgcc-objects += $(lib2-divmod-o) libgcc-objects += $(lib2-divmod-o)
ifeq ($(enable_shared),yes) ifeq ($(enable_shared),yes)
@@ -152,7 +140,7 @@ diff -Nbaur gcc-4.7.0/libgcc/Makefile.in gcc-4.7.0-arm/libgcc/Makefile.in
$(lib2-divmod-s-o): %_s$(objext): $(srcdir)/libgcc2.c $(lib2-divmod-s-o): %_s$(objext): $(srcdir)/libgcc2.c
$(gcc_s_compile) -DL$* -c $< \ $(gcc_s_compile) -DL$* -c $< \
- -fexceptions -fnon-call-exceptions - -fexceptions -fnon-call-exceptions
+ -fno-exceptions -fnon-call-exceptions + -fno-exceptions -fno-non-call-exceptions
libgcc-s-objects += $(lib2-divmod-s-o) libgcc-s-objects += $(lib2-divmod-s-o)
endif endif
@@ -165,3 +153,15 @@ diff -Nbaur gcc-4.7.0/libgcc/Makefile.in gcc-4.7.0-arm/libgcc/Makefile.in
ifeq ($(enable_shared),yes) ifeq ($(enable_shared),yes)
diff -Nbaur gcc-4.7.1/libgcc/crtstuff.c gcc-4.7.1-arm/libgcc/crtstuff.c
--- gcc-4.7.1/libgcc/crtstuff.c 2011-12-06 21:35:41.000000000 +0000
+++ gcc-4.7.1-arm/libgcc/crtstuff.c 2012-06-15 19:36:11.000000000 +0100
@@ -49,7 +49,7 @@
/* Target machine header files require this define. */
#define IN_LIBGCC2
-
+#define USED_FOR_TARGET
/* FIXME: Including auto-host is incorrect, but until we have
identified the set of defines that need to go into auto-target.h,
this will have to do. */

View File

@@ -1,25 +1,7 @@
diff -Nbaur gdb-7.4/gdb/Makefile.in gdb-7.4-arm/gdb/Makefile.in diff -Nbaur gdb-7.4.1/gdb/Makefile.in gdb-7.4.1-arm/gdb/Makefile.in
--- gdb-7.4/gdb/Makefile.in 2012-01-06 04:43:01.000000000 +0000 --- gdb-7.4.1/gdb/Makefile.in 2012-01-06 04:43:01.000000000 +0000
+++ gdb-7.4-arm/gdb/Makefile.in 2012-02-28 03:07:12.000000000 +0000 +++ gdb-7.4.1-arm/gdb/Makefile.in 2012-06-18 11:40:57.000000000 +0100
@@ -2195,10 +2195,10 @@ @@ -2195,10 +2195,8 @@
# Note that we put the dependencies into a .Tpo file, then move them
# into place if the compile succeeds. We need this because gcc does
# not atomically write the dependency output file.
-@GMAKE_TRUE@override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \
-@GMAKE_TRUE@ -MF $(DEPDIR)/$(basename $(@F)).Tpo
-@GMAKE_TRUE@override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \
-@GMAKE_TRUE@ $(DEPDIR)/$(basename $(@F)).Po
+#@GMAKE_TRUE@override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \
+#@GMAKE_TRUE@ -MF $(DEPDIR)/$(basename $(@F)).Tpo
+#@GMAKE_TRUE@override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \
+#@GMAKE_TRUE@ $(DEPDIR)/$(basename $(@F)).Po
@GMAKE_TRUE@else
@GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \
@GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC)
diff -Nbaur gdb-7.4/sim/common/Make-common.in gdb-7.4-arm/sim/common/Make-common.in
--- gdb-7.4/sim/common/Make-common.in 2012-01-06 04:54:38.000000000 +0000
+++ gdb-7.4-arm/sim/common/Make-common.in 2012-02-28 03:07:41.000000000 +0000
@@ -417,10 +417,7 @@
# Note that we put the dependencies into a .Tpo file, then move them # Note that we put the dependencies into a .Tpo file, then move them
# into place if the compile succeeds. We need this because gcc does # into place if the compile succeeds. We need this because gcc does
# not atomically write the dependency output file. # not atomically write the dependency output file.
@@ -28,6 +10,23 @@ diff -Nbaur gdb-7.4/sim/common/Make-common.in gdb-7.4-arm/sim/common/Make-common
-@GMAKE_TRUE@override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \ -@GMAKE_TRUE@override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \
-@GMAKE_TRUE@ $(DEPDIR)/$(basename $(@F)).Po -@GMAKE_TRUE@ $(DEPDIR)/$(basename $(@F)).Po
+@GMAKE_TRUE@override COMPILE.post = -c -o $@ +@GMAKE_TRUE@override COMPILE.post = -c -o $@
+@GMAKE_TRUE@override POSTCOMPILE =
@GMAKE_TRUE@else
@GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \
@GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC)
diff -Nbaur gdb-7.4.1/sim/common/Make-common.in gdb-7.4.1-arm/sim/common/Make-common.in
--- gdb-7.4.1/sim/common/Make-common.in 2012-01-06 04:54:38.000000000 +0000
+++ gdb-7.4.1-arm/sim/common/Make-common.in 2012-06-18 11:25:26.000000000 +0100
@@ -417,10 +417,8 @@
# Note that we put the dependencies into a .Tpo file, then move them
# into place if the compile succeeds. We need this because gcc does
# not atomically write the dependency output file.
-@GMAKE_TRUE@override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \
-@GMAKE_TRUE@ -MF $(DEPDIR)/$(basename $(@F)).Tpo
-@GMAKE_TRUE@override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \
-@GMAKE_TRUE@ $(DEPDIR)/$(basename $(@F)).Po
+@GMAKE_TRUE@override COMPILE.post = -c -o $@
+@GMAKE_TRUE@override POSTCOMPILE =
@GMAKE_TRUE@else @GMAKE_TRUE@else
@GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \ @GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \
@GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC) @GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC)

View File

@@ -18,7 +18,7 @@ export PATH := $(DEVKITARM)/bin:$(PORTLIBS)/bin:$(PATH)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# the prefix on the compiler executables # the prefix on the compiler executables
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
PREFIX := arm-eabi- PREFIX := arm-none-eabi-
export CC := $(PREFIX)gcc export CC := $(PREFIX)gcc
export CXX := $(PREFIX)g++ export CXX := $(PREFIX)g++

View File

@@ -12,8 +12,8 @@ cp -v $BUILDSCRIPTDIR/dkarm-eabi/rules/* $prefix
# Install and build the gba crt # Install and build the gba crt
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
cp -v $BUILDSCRIPTDIR/dkarm-eabi/crtls/* $prefix/arm-eabi/lib/ cp -v $BUILDSCRIPTDIR/dkarm-eabi/crtls/* $prefix/$target/lib/
cd $prefix/arm-eabi/lib/ cd $prefix/$target/lib/
$MAKE CRT=gba $MAKE CRT=gba
$MAKE CRT=gp32 $MAKE CRT=gp32
$MAKE CRT=er $MAKE CRT=er
@@ -26,6 +26,10 @@ cd $BUILDDIR/libnds-$LIBNDS_VER
$MAKE || { echo "error building libnds"; exit 1; } $MAKE || { echo "error building libnds"; exit 1; }
$MAKE install || { echo "error installing libnds"; exit 1; } $MAKE install || { echo "error installing libnds"; exit 1; }
cd $BUILDDIR/dswifi-$DSWIFI_VER
$MAKE || { echo "error building dswifi"; exit 1; }
$MAKE install || { echo "error installing dswifi"; exit 1; }
cd $BUILDDIR/default-arm7-$DEFAULT_ARM7_VER cd $BUILDDIR/default-arm7-$DEFAULT_ARM7_VER
$MAKE || { echo "error building default arm7"; exit 1; } $MAKE || { echo "error building default arm7"; exit 1; }
$MAKE install || { echo "error installing default arm7"; exit 1; } $MAKE install || { echo "error installing default arm7"; exit 1; }

View File

@@ -34,13 +34,14 @@ cd $BUILDDIR
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# build and install just the c compiler # build and install just the c compiler
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
mkdir -p $target/gcc-stage1 mkdir -p $target/gcc
cd $target/gcc-stage1 cd $target/gcc
if [ ! -f configured-gcc ] if [ ! -f configured-gcc ]
then then
CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../gcc-$GCC_VER/configure \ CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../gcc-$GCC_VER/configure \
--enable-languages=c,c++,objc,obj-c++ \ --enable-languages=c,c++,objc,obj-c++ \
--with-gnu-as --with-gnu-ld --with-gcc \
--with-march=armv4t\ --with-march=armv4t\
--enable-poison-system-directories \ --enable-poison-system-directories \
--enable-interwork --enable-multilib \ --enable-interwork --enable-multilib \
@@ -53,7 +54,7 @@ then
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \ --with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
--prefix=$prefix \ --prefix=$prefix \
--enable-lto $plugin_ld\ --enable-lto $plugin_ld\
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitARM release 39" \ --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitARM release 41" \
$CROSS_PARAMS \ $CROSS_PARAMS \
|| { echo "Error configuring gcc"; exit 1; } || { echo "Error configuring gcc"; exit 1; }
touch configured-gcc touch configured-gcc

View File

@@ -1,6 +1,6 @@
diff -Nbaur binutils-2.22/bfd/archures.c binutils-2.22-psp/bfd/archures.c diff -Nbaur binutils-2.22/bfd/archures.c binutils-2.22-psp/bfd/archures.c
--- binutils-2.22/bfd/archures.c 2011-08-01 23:04:19.000000000 +0000 --- binutils-2.22/bfd/archures.c 2011-08-02 00:04:19.000000000 +0100
+++ binutils-2.22-psp/bfd/archures.c 2018-06-05 22:45:23.845890519 +0000 +++ binutils-2.22-psp/bfd/archures.c 2012-04-03 22:08:06.000000000 +0100
@@ -175,6 +175,7 @@ @@ -175,6 +175,7 @@
.#define bfd_mach_mips_loongson_2f 3002 .#define bfd_mach_mips_loongson_2f 3002
.#define bfd_mach_mips_loongson_3a 3003 .#define bfd_mach_mips_loongson_3a 3003
@@ -10,8 +10,8 @@ diff -Nbaur binutils-2.22/bfd/archures.c binutils-2.22-psp/bfd/archures.c
.#define bfd_mach_mips_xlr 887682 {* decimal 'XLR' *} .#define bfd_mach_mips_xlr 887682 {* decimal 'XLR' *}
.#define bfd_mach_mipsisa32 32 .#define bfd_mach_mipsisa32 32
diff -Nbaur binutils-2.22/bfd/bfd-in2.h binutils-2.22-psp/bfd/bfd-in2.h diff -Nbaur binutils-2.22/bfd/bfd-in2.h binutils-2.22-psp/bfd/bfd-in2.h
--- binutils-2.22/bfd/bfd-in2.h 2011-09-16 01:15:18.000000000 +0000 --- binutils-2.22/bfd/bfd-in2.h 2011-09-16 02:15:18.000000000 +0100
+++ binutils-2.22-psp/bfd/bfd-in2.h 2018-06-05 22:45:23.845890519 +0000 +++ binutils-2.22-psp/bfd/bfd-in2.h 2012-04-03 22:12:53.000000000 +0100
@@ -38,6 +38,8 @@ @@ -38,6 +38,8 @@
#include "ansidecl.h" #include "ansidecl.h"
@@ -39,8 +39,8 @@ diff -Nbaur binutils-2.22/bfd/bfd-in2.h binutils-2.22-psp/bfd/bfd-in2.h
#define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */ #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */
#define bfd_mach_mipsisa32 32 #define bfd_mach_mipsisa32 32
diff -Nbaur binutils-2.22/bfd/bfd-in.h binutils-2.22-psp/bfd/bfd-in.h diff -Nbaur binutils-2.22/bfd/bfd-in.h binutils-2.22-psp/bfd/bfd-in.h
--- binutils-2.22/bfd/bfd-in.h 2011-09-16 01:15:18.000000000 +0000 --- binutils-2.22/bfd/bfd-in.h 2011-09-16 02:15:18.000000000 +0100
+++ binutils-2.22-psp/bfd/bfd-in.h 2018-06-05 22:45:23.845890519 +0000 +++ binutils-2.22-psp/bfd/bfd-in.h 2012-04-03 22:12:53.000000000 +0100
@@ -31,6 +31,8 @@ @@ -31,6 +31,8 @@
#include "ansidecl.h" #include "ansidecl.h"
@@ -60,8 +60,8 @@ diff -Nbaur binutils-2.22/bfd/bfd-in.h binutils-2.22-psp/bfd/bfd-in.h
typedef enum bfd_print_symbol typedef enum bfd_print_symbol
{ {
diff -Nbaur binutils-2.22/bfd/config.in binutils-2.22-psp/bfd/config.in diff -Nbaur binutils-2.22/bfd/config.in binutils-2.22-psp/bfd/config.in
--- binutils-2.22/bfd/config.in 2011-05-12 07:41:40.000000000 +0000 --- binutils-2.22/bfd/config.in 2011-05-12 08:41:40.000000000 +0100
+++ binutils-2.22-psp/bfd/config.in 2018-06-05 22:45:23.845890519 +0000 +++ binutils-2.22-psp/bfd/config.in 2012-04-03 22:12:53.000000000 +0100
@@ -245,6 +245,9 @@ @@ -245,6 +245,9 @@
/* Define if <sys/procfs.h> has win32_pstatus_t. */ /* Define if <sys/procfs.h> has win32_pstatus_t. */
#undef HAVE_WIN32_PSTATUS_T #undef HAVE_WIN32_PSTATUS_T
@@ -74,7 +74,7 @@ diff -Nbaur binutils-2.22/bfd/config.in binutils-2.22-psp/bfd/config.in
diff -Nbaur binutils-2.22/bfd/configure binutils-2.22-psp/bfd/configure diff -Nbaur binutils-2.22/bfd/configure binutils-2.22-psp/bfd/configure
--- binutils-2.22/bfd/configure 2011-11-21 11:55:48.000000000 +0000 --- binutils-2.22/bfd/configure 2011-11-21 11:55:48.000000000 +0000
+++ binutils-2.22-psp/bfd/configure 2018-06-05 22:45:23.849891511 +0000 +++ binutils-2.22-psp/bfd/configure 2012-04-03 22:12:53.000000000 +0100
@@ -13508,6 +13508,22 @@ @@ -13508,6 +13508,22 @@
fi fi
@@ -100,7 +100,7 @@ diff -Nbaur binutils-2.22/bfd/configure binutils-2.22-psp/bfd/configure
if test "${gcc_cv_header_string+set}" = set; then : if test "${gcc_cv_header_string+set}" = set; then :
diff -Nbaur binutils-2.22/bfd/configure.in binutils-2.22-psp/bfd/configure.in diff -Nbaur binutils-2.22/bfd/configure.in binutils-2.22-psp/bfd/configure.in
--- binutils-2.22/bfd/configure.in 2011-11-21 11:55:46.000000000 +0000 --- binutils-2.22/bfd/configure.in 2011-11-21 11:55:46.000000000 +0000
+++ binutils-2.22-psp/bfd/configure.in 2018-06-05 22:45:23.849891511 +0000 +++ binutils-2.22-psp/bfd/configure.in 2012-04-03 22:12:53.000000000 +0100
@@ -190,6 +190,9 @@ @@ -190,6 +190,9 @@
GCC_HEADER_STDINT(bfd_stdint.h) GCC_HEADER_STDINT(bfd_stdint.h)
AC_HEADER_TIME AC_HEADER_TIME
@@ -112,8 +112,8 @@ diff -Nbaur binutils-2.22/bfd/configure.in binutils-2.22-psp/bfd/configure.in
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno) AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
AC_CHECK_FUNCS(strtoull) AC_CHECK_FUNCS(strtoull)
diff -Nbaur binutils-2.22/bfd/cpu-mips.c binutils-2.22-psp/bfd/cpu-mips.c diff -Nbaur binutils-2.22/bfd/cpu-mips.c binutils-2.22-psp/bfd/cpu-mips.c
--- binutils-2.22/bfd/cpu-mips.c 2011-07-24 14:20:05.000000000 +0000 --- binutils-2.22/bfd/cpu-mips.c 2011-07-24 15:20:05.000000000 +0100
+++ binutils-2.22-psp/bfd/cpu-mips.c 2018-06-05 22:45:23.849891511 +0000 +++ binutils-2.22-psp/bfd/cpu-mips.c 2012-04-03 22:08:06.000000000 +0100
@@ -89,6 +89,7 @@ @@ -89,6 +89,7 @@
I_mipsisa64, I_mipsisa64,
I_mipsisa64r2, I_mipsisa64r2,
@@ -130,30 +130,9 @@ diff -Nbaur binutils-2.22/bfd/cpu-mips.c binutils-2.22-psp/bfd/cpu-mips.c
N (64, 64, bfd_mach_mips_loongson_2e, "mips:loongson_2e", FALSE, NN(I_loongson_2e)), N (64, 64, bfd_mach_mips_loongson_2e, "mips:loongson_2e", FALSE, NN(I_loongson_2e)),
N (64, 64, bfd_mach_mips_loongson_2f, "mips:loongson_2f", FALSE, NN(I_loongson_2f)), N (64, 64, bfd_mach_mips_loongson_2f, "mips:loongson_2f", FALSE, NN(I_loongson_2f)),
N (64, 64, bfd_mach_mips_loongson_3a, "mips:loongson_3a", FALSE, NN(I_loongson_3a)), N (64, 64, bfd_mach_mips_loongson_3a, "mips:loongson_3a", FALSE, NN(I_loongson_3a)),
diff -Nbaur binutils-2.22/bfd/doc/bfd.texinfo binutils-2.22-psp/bfd/doc/bfd.texinfo
--- binutils-2.22/bfd/doc/bfd.texinfo 2010-10-28 11:40:25.000000000 +0000
+++ binutils-2.22-psp/bfd/doc/bfd.texinfo 2018-06-05 23:00:58.016586742 +0000
@@ -322,7 +322,7 @@
@printindex cp
@tex
-% I think something like @colophon should be in texinfo. In the
+% I think something like @@colophon should be in texinfo. In the
% meantime:
\long\def\colophon{\hbox to0pt{}\vfill
\centerline{The body of this manual is set in}
@@ -333,7 +333,7 @@
\centerline{{\sl\fontname\tensl\/}}
\centerline{are used for emphasis.}\vfill}
\page\colophon
-% Blame: doc@cygnus.com, 28mar91.
+% Blame: doc@@cygnus.com, 28mar91.
@end tex
@bye
diff -Nbaur binutils-2.22/bfd/elfxx-mips.c binutils-2.22-psp/bfd/elfxx-mips.c diff -Nbaur binutils-2.22/bfd/elfxx-mips.c binutils-2.22-psp/bfd/elfxx-mips.c
--- binutils-2.22/bfd/elfxx-mips.c 2011-11-21 09:29:27.000000000 +0000 --- binutils-2.22/bfd/elfxx-mips.c 2011-11-21 09:29:27.000000000 +0000
+++ binutils-2.22-psp/bfd/elfxx-mips.c 2018-06-05 22:45:23.853892502 +0000 +++ binutils-2.22-psp/bfd/elfxx-mips.c 2012-04-03 22:08:06.000000000 +0100
@@ -6173,14 +6173,19 @@ @@ -6173,14 +6173,19 @@
case E_MIPS_MACH_SB1: case E_MIPS_MACH_SB1:
return bfd_mach_mips_sb1; return bfd_mach_mips_sb1;
@@ -194,8 +173,8 @@ diff -Nbaur binutils-2.22/bfd/elfxx-mips.c binutils-2.22-psp/bfd/elfxx-mips.c
/* MIPS I extensions. */ /* MIPS I extensions. */
{ bfd_mach_mips6000, bfd_mach_mips3000 }, { bfd_mach_mips6000, bfd_mach_mips3000 },
diff -Nbaur binutils-2.22/bfd/plugin.c binutils-2.22-psp/bfd/plugin.c diff -Nbaur binutils-2.22/bfd/plugin.c binutils-2.22-psp/bfd/plugin.c
--- binutils-2.22/bfd/plugin.c 2011-07-11 15:03:07.000000000 +0000 --- binutils-2.22/bfd/plugin.c 2011-07-11 16:03:07.000000000 +0100
+++ binutils-2.22-psp/bfd/plugin.c 2018-06-05 22:45:23.853892502 +0000 +++ binutils-2.22-psp/bfd/plugin.c 2012-04-03 22:12:53.000000000 +0100
@@ -25,7 +25,13 @@ @@ -25,7 +25,13 @@
#if BFD_SUPPORTS_PLUGINS #if BFD_SUPPORTS_PLUGINS
@@ -250,7 +229,7 @@ diff -Nbaur binutils-2.22/bfd/plugin.c binutils-2.22-psp/bfd/plugin.c
#define bfd_plugin_new_section_hook _bfd_generic_new_section_hook #define bfd_plugin_new_section_hook _bfd_generic_new_section_hook
diff -Nbaur binutils-2.22/bfd/version.h binutils-2.22-psp/bfd/version.h diff -Nbaur binutils-2.22/bfd/version.h binutils-2.22-psp/bfd/version.h
--- binutils-2.22/bfd/version.h 2011-11-21 09:29:28.000000000 +0000 --- binutils-2.22/bfd/version.h 2011-11-21 09:29:28.000000000 +0000
+++ binutils-2.22-psp/bfd/version.h 2018-06-05 22:45:23.857893494 +0000 +++ binutils-2.22-psp/bfd/version.h 2012-04-03 22:08:06.000000000 +0100
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20111121 -#define BFD_VERSION_DATE 20111121
+#define BFD_VERSION_DATE (PSNPT 20120103) +#define BFD_VERSION_DATE (PSNPT 20120103)
@@ -258,8 +237,8 @@ diff -Nbaur binutils-2.22/bfd/version.h binutils-2.22-psp/bfd/version.h
#define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@
#define REPORT_BUGS_TO @report_bugs_to@ #define REPORT_BUGS_TO @report_bugs_to@
diff -Nbaur binutils-2.22/binutils/readelf.c binutils-2.22-psp/binutils/readelf.c diff -Nbaur binutils-2.22/binutils/readelf.c binutils-2.22-psp/binutils/readelf.c
--- binutils-2.22/binutils/readelf.c 2011-09-21 20:49:13.000000000 +0000 --- binutils-2.22/binutils/readelf.c 2011-09-21 21:49:13.000000000 +0100
+++ binutils-2.22-psp/binutils/readelf.c 2018-06-05 22:45:23.857893494 +0000 +++ binutils-2.22-psp/binutils/readelf.c 2012-04-03 22:08:06.000000000 +0100
@@ -2395,10 +2395,11 @@ @@ -2395,10 +2395,11 @@
case E_MIPS_MACH_9000: strcat (buf, ", 9000"); break; case E_MIPS_MACH_9000: strcat (buf, ", 9000"); break;
case E_MIPS_MACH_LS2E: strcat (buf, ", loongson-2e"); break; case E_MIPS_MACH_LS2E: strcat (buf, ", loongson-2e"); break;
@@ -274,8 +253,8 @@ diff -Nbaur binutils-2.22/binutils/readelf.c binutils-2.22-psp/binutils/readelf.
/* We simply ignore the field in this case to avoid confusion: /* We simply ignore the field in this case to avoid confusion:
MIPS ELF does not specify EF_MIPS_MACH, it is a GNU MIPS ELF does not specify EF_MIPS_MACH, it is a GNU
diff -Nbaur binutils-2.22/config.sub binutils-2.22-psp/config.sub diff -Nbaur binutils-2.22/config.sub binutils-2.22-psp/config.sub
--- binutils-2.22/config.sub 2011-06-06 10:36:06.000000000 +0000 --- binutils-2.22/config.sub 2011-06-06 11:36:06.000000000 +0100
+++ binutils-2.22-psp/config.sub 2018-06-05 22:45:23.857893494 +0000 +++ binutils-2.22-psp/config.sub 2012-04-03 22:08:06.000000000 +0100
@@ -279,6 +279,7 @@ @@ -279,6 +279,7 @@
| mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sb1 | mipsisa64sb1el \
| mipsisa64sr71k | mipsisa64sr71kel \ | mipsisa64sr71k | mipsisa64sr71kel \
@@ -304,8 +283,8 @@ diff -Nbaur binutils-2.22/config.sub binutils-2.22-psp/config.sub
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
;; ;;
diff -Nbaur binutils-2.22/configure binutils-2.22-psp/configure diff -Nbaur binutils-2.22/configure binutils-2.22-psp/configure
--- binutils-2.22/configure 2011-08-14 12:28:15.000000000 +0000 --- binutils-2.22/configure 2011-08-14 13:28:15.000000000 +0100
+++ binutils-2.22-psp/configure 2018-06-05 22:45:23.861894485 +0000 +++ binutils-2.22-psp/configure 2012-04-03 22:08:06.000000000 +0100
@@ -2667,7 +2667,7 @@ @@ -2667,7 +2667,7 @@
# binutils, gas and ld appear in that order because it makes sense to run # binutils, gas and ld appear in that order because it makes sense to run
# "make check" in that particular order. # "make check" in that particular order.
@@ -325,7 +304,7 @@ diff -Nbaur binutils-2.22/configure binutils-2.22-psp/configure
case "${target}" in case "${target}" in
diff -Nbaur binutils-2.22/gas/config/tc-mips.c binutils-2.22-psp/gas/config/tc-mips.c diff -Nbaur binutils-2.22/gas/config/tc-mips.c binutils-2.22-psp/gas/config/tc-mips.c
--- binutils-2.22/gas/config/tc-mips.c 2011-11-21 09:29:32.000000000 +0000 --- binutils-2.22/gas/config/tc-mips.c 2011-11-21 09:29:32.000000000 +0000
+++ binutils-2.22-psp/gas/config/tc-mips.c 2018-06-05 22:45:23.865895476 +0000 +++ binutils-2.22-psp/gas/config/tc-mips.c 2012-04-03 22:08:06.000000000 +0100
@@ -91,8 +91,32 @@ @@ -91,8 +91,32 @@
#define ZERO 0 #define ZERO 0
@@ -2192,8 +2171,8 @@ diff -Nbaur binutils-2.22/gas/config/tc-mips.c binutils-2.22-psp/gas/config/tc-m
/* MIPS III */ /* MIPS III */
{ "r4000", 0, ISA_MIPS3, CPU_R4000 }, { "r4000", 0, ISA_MIPS3, CPU_R4000 },
diff -Nbaur binutils-2.22/gas/configure binutils-2.22-psp/gas/configure diff -Nbaur binutils-2.22/gas/configure binutils-2.22-psp/gas/configure
--- binutils-2.22/gas/configure 2011-05-18 09:41:14.000000000 +0000 --- binutils-2.22/gas/configure 2011-05-18 10:41:14.000000000 +0100
+++ binutils-2.22-psp/gas/configure 2018-06-05 22:45:23.865895476 +0000 +++ binutils-2.22-psp/gas/configure 2012-04-03 22:08:06.000000000 +0100
@@ -12043,6 +12043,9 @@ @@ -12043,6 +12043,9 @@
mips64vr | mips64vrel) mips64vr | mips64vrel)
mips_cpu=vr4100 mips_cpu=vr4100
@@ -2205,8 +2184,8 @@ diff -Nbaur binutils-2.22/gas/configure binutils-2.22-psp/gas/configure
mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
;; ;;
diff -Nbaur binutils-2.22/gas/configure.in binutils-2.22-psp/gas/configure.in diff -Nbaur binutils-2.22/gas/configure.in binutils-2.22-psp/gas/configure.in
--- binutils-2.22/gas/configure.in 2011-05-18 09:41:14.000000000 +0000 --- binutils-2.22/gas/configure.in 2011-05-18 10:41:14.000000000 +0100
+++ binutils-2.22-psp/gas/configure.in 2018-06-05 22:45:23.869896468 +0000 +++ binutils-2.22-psp/gas/configure.in 2012-04-03 22:08:06.000000000 +0100
@@ -213,6 +213,9 @@ @@ -213,6 +213,9 @@
mips64vr | mips64vrel) mips64vr | mips64vrel)
mips_cpu=vr4100 mips_cpu=vr4100
@@ -2219,7 +2198,7 @@ diff -Nbaur binutils-2.22/gas/configure.in binutils-2.22-psp/gas/configure.in
mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
diff -Nbaur binutils-2.22/gas/testsuite/gas/mips/mips.exp binutils-2.22-psp/gas/testsuite/gas/mips/mips.exp diff -Nbaur binutils-2.22/gas/testsuite/gas/mips/mips.exp binutils-2.22-psp/gas/testsuite/gas/mips/mips.exp
--- binutils-2.22/gas/testsuite/gas/mips/mips.exp 2011-11-21 09:29:32.000000000 +0000 --- binutils-2.22/gas/testsuite/gas/mips/mips.exp 2011-11-21 09:29:32.000000000 +0000
+++ binutils-2.22-psp/gas/testsuite/gas/mips/mips.exp 2018-06-05 22:45:23.869896468 +0000 +++ binutils-2.22-psp/gas/testsuite/gas/mips/mips.exp 2012-04-03 22:08:06.000000000 +0100
@@ -409,6 +409,9 @@ @@ -409,6 +409,9 @@
mips_arch_create sb1 64 mips64 { mips3d } \ mips_arch_create sb1 64 mips64 { mips3d } \
{ -march=sb1 -mtune=sb1 } { -mmips:sb1 } \ { -march=sb1 -mtune=sb1 } { -mmips:sb1 } \
@@ -2231,8 +2210,8 @@ diff -Nbaur binutils-2.22/gas/testsuite/gas/mips/mips.exp binutils-2.22-psp/gas/
{ -march=octeon -mtune=octeon } { -mmips:octeon } \ { -march=octeon -mtune=octeon } { -mmips:octeon } \
{ mips64octeon*-*-* } { mips64octeon*-*-* }
diff -Nbaur binutils-2.22/include/elf/common.h binutils-2.22-psp/include/elf/common.h diff -Nbaur binutils-2.22/include/elf/common.h binutils-2.22-psp/include/elf/common.h
--- binutils-2.22/include/elf/common.h 2011-07-22 20:22:36.000000000 +0000 --- binutils-2.22/include/elf/common.h 2011-07-22 21:22:36.000000000 +0100
+++ binutils-2.22-psp/include/elf/common.h 2018-06-05 22:45:23.869896468 +0000 +++ binutils-2.22-psp/include/elf/common.h 2012-04-03 22:08:06.000000000 +0100
@@ -96,6 +96,7 @@ @@ -96,6 +96,7 @@
#define ET_HIOS 0xFEFF /* Operating system-specific */ #define ET_HIOS 0xFEFF /* Operating system-specific */
#define ET_LOPROC 0xFF00 /* Processor-specific */ #define ET_LOPROC 0xFF00 /* Processor-specific */
@@ -2242,8 +2221,8 @@ diff -Nbaur binutils-2.22/include/elf/common.h binutils-2.22-psp/include/elf/com
/* Values for e_machine, which identifies the architecture. These numbers /* Values for e_machine, which identifies the architecture. These numbers
are officially assigned by registry@sco.com. See below for a list of are officially assigned by registry@sco.com. See below for a list of
diff -Nbaur binutils-2.22/include/elf/mips.h binutils-2.22-psp/include/elf/mips.h diff -Nbaur binutils-2.22/include/elf/mips.h binutils-2.22-psp/include/elf/mips.h
--- binutils-2.22/include/elf/mips.h 2011-07-24 14:20:12.000000000 +0000 --- binutils-2.22/include/elf/mips.h 2011-07-24 15:20:12.000000000 +0100
+++ binutils-2.22-psp/include/elf/mips.h 2018-06-05 22:45:23.869896468 +0000 +++ binutils-2.22-psp/include/elf/mips.h 2012-04-03 22:08:07.000000000 +0100
@@ -265,6 +265,7 @@ @@ -265,6 +265,7 @@
#define E_MIPS_MACH_5400 0x00910000 #define E_MIPS_MACH_5400 0x00910000
#define E_MIPS_MACH_5500 0x00980000 #define E_MIPS_MACH_5500 0x00980000
@@ -2253,8 +2232,8 @@ diff -Nbaur binutils-2.22/include/elf/mips.h binutils-2.22-psp/include/elf/mips.
#define E_MIPS_MACH_LS2F 0x00A10000 #define E_MIPS_MACH_LS2F 0x00A10000
#define E_MIPS_MACH_LS3A 0x00A20000 #define E_MIPS_MACH_LS3A 0x00A20000
diff -Nbaur binutils-2.22/include/opcode/mips.h binutils-2.22-psp/include/opcode/mips.h diff -Nbaur binutils-2.22/include/opcode/mips.h binutils-2.22-psp/include/opcode/mips.h
--- binutils-2.22/include/opcode/mips.h 2011-08-09 15:20:03.000000000 +0000 --- binutils-2.22/include/opcode/mips.h 2011-08-09 16:20:03.000000000 +0100
+++ binutils-2.22-psp/include/opcode/mips.h 2018-06-05 22:45:23.869896468 +0000 +++ binutils-2.22-psp/include/opcode/mips.h 2012-04-03 22:08:07.000000000 +0100
@@ -216,6 +216,228 @@ @@ -216,6 +216,228 @@
#define MDMX_FMTSEL_VEC_QH 0x15 #define MDMX_FMTSEL_VEC_QH 0x15
#define MDMX_FMTSEL_VEC_OB 0x16 #define MDMX_FMTSEL_VEC_OB 0x16
@@ -2612,8 +2591,8 @@ diff -Nbaur binutils-2.22/include/opcode/mips.h binutils-2.22-psp/include/opcode
M_COP0, M_COP0,
M_COP1, M_COP1,
diff -Nbaur binutils-2.22/include/opcode/vfpu.h binutils-2.22-psp/include/opcode/vfpu.h diff -Nbaur binutils-2.22/include/opcode/vfpu.h binutils-2.22-psp/include/opcode/vfpu.h
--- binutils-2.22/include/opcode/vfpu.h 1970-01-01 00:00:00.000000000 +0000 --- binutils-2.22/include/opcode/vfpu.h 1970-01-01 01:00:00.000000000 +0100
+++ binutils-2.22-psp/include/opcode/vfpu.h 2018-06-05 22:45:23.869896468 +0000 +++ binutils-2.22-psp/include/opcode/vfpu.h 2012-04-03 22:08:07.000000000 +0100
@@ -0,0 +1,261 @@ @@ -0,0 +1,261 @@
+#ifndef _VFPU_H_ +#ifndef _VFPU_H_
+#define _VFPU_H_ +#define _VFPU_H_
@@ -2878,7 +2857,7 @@ diff -Nbaur binutils-2.22/include/opcode/vfpu.h binutils-2.22-psp/include/opcode
+#endif /* _VFPU_H_ */ +#endif /* _VFPU_H_ */
diff -Nbaur binutils-2.22/ld/configure.tgt binutils-2.22-psp/ld/configure.tgt diff -Nbaur binutils-2.22/ld/configure.tgt binutils-2.22-psp/ld/configure.tgt
--- binutils-2.22/ld/configure.tgt 2011-11-21 09:29:37.000000000 +0000 --- binutils-2.22/ld/configure.tgt 2011-11-21 09:29:37.000000000 +0000
+++ binutils-2.22-psp/ld/configure.tgt 2018-06-05 22:45:23.869896468 +0000 +++ binutils-2.22-psp/ld/configure.tgt 2012-04-03 22:08:07.000000000 +0100
@@ -383,6 +383,8 @@ @@ -383,6 +383,8 @@
mips*vr4100-*-elf*) targ_emul=elf32b4300 ;; mips*vr4100-*-elf*) targ_emul=elf32b4300 ;;
mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;; mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;;
@@ -2889,8 +2868,8 @@ diff -Nbaur binutils-2.22/ld/configure.tgt binutils-2.22-psp/ld/configure.tgt
targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip" ;; targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip" ;;
mips*-sde-elf*) targ_emul=elf32btsmip mips*-sde-elf*) targ_emul=elf32btsmip
diff -Nbaur binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh binutils-2.22-psp/ld/emulparams/elf_mipsallegrexel_psp.sh diff -Nbaur binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh binutils-2.22-psp/ld/emulparams/elf_mipsallegrexel_psp.sh
--- binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh 1970-01-01 00:00:00.000000000 +0000 --- binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh 1970-01-01 01:00:00.000000000 +0100
+++ binutils-2.22-psp/ld/emulparams/elf_mipsallegrexel_psp.sh 2018-06-05 22:45:23.869896468 +0000 +++ binutils-2.22-psp/ld/emulparams/elf_mipsallegrexel_psp.sh 2012-04-03 22:08:07.000000000 +0100
@@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
+# Based off of the default elf32 MIPS target. However, we use a seperate +# Based off of the default elf32 MIPS target. However, we use a seperate
+# script template because the PSP architecture defines sections that normally +# script template because the PSP architecture defines sections that normally
@@ -2915,8 +2894,8 @@ diff -Nbaur binutils-2.22/ld/emulparams/elf_mipsallegrexel_psp.sh binutils-2.22-
+# Discard the .comment and .pdr sections. +# Discard the .comment and .pdr sections.
+OTHER_SECTIONS="/DISCARD/ : { *(.comment) *(.pdr) }" +OTHER_SECTIONS="/DISCARD/ : { *(.comment) *(.pdr) }"
diff -Nbaur binutils-2.22/ld/Makefile.am binutils-2.22-psp/ld/Makefile.am diff -Nbaur binutils-2.22/ld/Makefile.am binutils-2.22-psp/ld/Makefile.am
--- binutils-2.22/ld/Makefile.am 2011-07-22 20:22:37.000000000 +0000 --- binutils-2.22/ld/Makefile.am 2011-07-22 21:22:37.000000000 +0100
+++ binutils-2.22-psp/ld/Makefile.am 2018-06-05 22:45:23.869896468 +0000 +++ binutils-2.22-psp/ld/Makefile.am 2012-04-03 22:08:07.000000000 +0100
@@ -262,6 +262,7 @@ @@ -262,6 +262,7 @@
eelf_i386_ldso.c \ eelf_i386_ldso.c \
eelf_i386_sol2.c \ eelf_i386_sol2.c \
@@ -2936,8 +2915,8 @@ diff -Nbaur binutils-2.22/ld/Makefile.am binutils-2.22-psp/ld/Makefile.am
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)" ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
diff -Nbaur binutils-2.22/ld/Makefile.in binutils-2.22-psp/ld/Makefile.in diff -Nbaur binutils-2.22/ld/Makefile.in binutils-2.22-psp/ld/Makefile.in
--- binutils-2.22/ld/Makefile.in 2011-07-22 20:22:37.000000000 +0000 --- binutils-2.22/ld/Makefile.in 2011-07-22 21:22:37.000000000 +0100
+++ binutils-2.22-psp/ld/Makefile.in 2018-06-05 22:45:23.873897459 +0000 +++ binutils-2.22-psp/ld/Makefile.in 2012-04-03 22:08:07.000000000 +0100
@@ -568,6 +568,7 @@ @@ -568,6 +568,7 @@
eelf_i386_ldso.c \ eelf_i386_ldso.c \
eelf_i386_sol2.c \ eelf_i386_sol2.c \
@@ -2957,8 +2936,8 @@ diff -Nbaur binutils-2.22/ld/Makefile.in binutils-2.22-psp/ld/Makefile.in
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)" ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
diff -Nbaur binutils-2.22/ld/scripttempl/elf_psp.sc binutils-2.22-psp/ld/scripttempl/elf_psp.sc diff -Nbaur binutils-2.22/ld/scripttempl/elf_psp.sc binutils-2.22-psp/ld/scripttempl/elf_psp.sc
--- binutils-2.22/ld/scripttempl/elf_psp.sc 1970-01-01 00:00:00.000000000 +0000 --- binutils-2.22/ld/scripttempl/elf_psp.sc 1970-01-01 01:00:00.000000000 +0100
+++ binutils-2.22-psp/ld/scripttempl/elf_psp.sc 2018-06-05 22:45:23.873897459 +0000 +++ binutils-2.22-psp/ld/scripttempl/elf_psp.sc 2012-04-03 22:08:07.000000000 +0100
@@ -0,0 +1,496 @@ @@ -0,0 +1,496 @@
+# +#
+# Unusual variables checked by this code: +# Unusual variables checked by this code:
@@ -3457,8 +3436,8 @@ diff -Nbaur binutils-2.22/ld/scripttempl/elf_psp.sc binutils-2.22-psp/ld/scriptt
+} +}
+EOF +EOF
diff -Nbaur binutils-2.22/opcodes/mips-dis.c binutils-2.22-psp/opcodes/mips-dis.c diff -Nbaur binutils-2.22/opcodes/mips-dis.c binutils-2.22-psp/opcodes/mips-dis.c
--- binutils-2.22/opcodes/mips-dis.c 2011-08-09 15:20:03.000000000 +0000 --- binutils-2.22/opcodes/mips-dis.c 2011-08-09 16:20:03.000000000 +0100
+++ binutils-2.22-psp/opcodes/mips-dis.c 2018-06-05 22:45:23.873897459 +0000 +++ binutils-2.22-psp/opcodes/mips-dis.c 2012-04-03 22:08:07.000000000 +0100
@@ -245,6 +245,139 @@ @@ -245,6 +245,139 @@
"c0_taglo", "c0_taghi", "c0_errorepc", "c0_desave", "c0_taglo", "c0_taghi", "c0_errorepc", "c0_desave",
}; };
@@ -4014,8 +3993,8 @@ diff -Nbaur binutils-2.22/opcodes/mips-dis.c binutils-2.22-psp/opcodes/mips-dis.
/* xgettext:c-format */ /* xgettext:c-format */
(*info->fprintf_func) (info->stream, (*info->fprintf_func) (info->stream,
diff -Nbaur binutils-2.22/opcodes/mips-opc.c binutils-2.22-psp/opcodes/mips-opc.c diff -Nbaur binutils-2.22/opcodes/mips-opc.c binutils-2.22-psp/opcodes/mips-opc.c
--- binutils-2.22/opcodes/mips-opc.c 2011-08-09 15:20:03.000000000 +0000 --- binutils-2.22/opcodes/mips-opc.c 2011-08-09 16:20:03.000000000 +0100
+++ binutils-2.22-psp/opcodes/mips-opc.c 2018-06-05 22:45:23.873897459 +0000 +++ binutils-2.22-psp/opcodes/mips-opc.c 2012-04-03 22:08:07.000000000 +0100
@@ -121,6 +121,7 @@ @@ -121,6 +121,7 @@
#define N5 (INSN_5400 | INSN_5500) #define N5 (INSN_5400 | INSN_5500)
#define N54 INSN_5400 #define N54 INSN_5400

View File

@@ -56,8 +56,6 @@ then
--disable-dependency-tracking \ --disable-dependency-tracking \
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPSP release 17" \ --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPSP release 17" \
$CROSS_PARAMS \ $CROSS_PARAMS \
MAKEINFO=missing \
MISSING=texinfo \
|| { echo "Error configuring gcc"; exit 1; } || { echo "Error configuring gcc"; exit 1; }
touch configured-gcc touch configured-gcc
fi fi
@@ -176,30 +174,28 @@ cd $BUILDDIR
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# build and install the debugger # build and install the debugger
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
#mkdir -p $target/gdb mkdir -p $target/gdb
#cd $target/gdb cd $target/gdb
#
#if [ ! -f configured-gdb ] if [ ! -f configured-gdb ]
#then then
# CFLAGS=$cflags LDFLAGS=$ldflags ../../gdb-$GDB_VER/configure \ CFLAGS=$cflags LDFLAGS=$ldflags ../../gdb-$GDB_VER/configure \
# --disable-nls --prefix=$prefix --target=$target --disable-werror \ --disable-nls --prefix=$prefix --target=$target --disable-werror \
# --disable-dependency-tracking \ --disable-dependency-tracking \
# $CROSS_PARAMS \ $CROSS_PARAMS \
# MAKEINFO=missing \ || { echo "Error configuring gdb"; exit 1; }
# MISSING=texinfo \ touch configured-gdb
# || { echo "Error configuring gdb"; exit 1; } fi
# touch configured-gdb
#fi if [ ! -f built-gdb ]
# then
#if [ ! -f built-gdb ] $MAKE || { echo "Error building gdb"; exit 1; }
#then touch built-gdb
# $MAKE || { echo "Error building gdb"; exit 1; } fi
# touch built-gdb
#fi if [ ! -f installed-gdb ]
# then
#if [ ! -f installed-gdb ] $MAKE install || { echo "Error installing gdb"; exit 1; }
#then touch installed-gdb
# $MAKE install || { echo "Error installing gdb"; exit 1; } fi
# touch installed-gdb
#fi

View File

@@ -18,13 +18,13 @@ done
case "$VERSION" in case "$VERSION" in
"1" ) "1" )
GCC_VER=4.7.0 GCC_VER=4.7.1
BINUTILS_VER=2.22 BINUTILS_VER=2.22
NEWLIB_VER=1.20.0 NEWLIB_VER=1.20.0
GDB_VER=7.4 GDB_VER=7.4.1
basedir='dkarm-eabi' basedir='dkarm-eabi'
package=devkitARM package=devkitARM
target=arm-eabi target=arm-none-eabi
toolchain=DEVKITARM toolchain=DEVKITARM
;; ;;
"2" ) "2" )

View File

@@ -19,6 +19,10 @@ do
then then
$HOST_STRIP $f $HOST_STRIP $f
fi fi
if [[ "$f" == *.dll ]]
then
$HOST_STRIP -d $f
fi
done done
if [ $VERSION -eq 2 ]; then if [ $VERSION -eq 2 ]; then