mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-21 09:54:03 -05:00
Compare commits
54 Commits
devkitPSP_
...
v20140402
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97f020d9dd | ||
|
|
a9486a0343 | ||
|
|
4abda470f2 | ||
|
|
423bf8e261 | ||
|
|
e012872028 | ||
|
|
695eb60d08 | ||
|
|
98ed1540dd | ||
|
|
2f624a1c28 | ||
|
|
f31d3ff732 | ||
|
|
d6ea5c780e | ||
|
|
2c11d43aef | ||
|
|
dcc84df004 | ||
|
|
496091cd3d | ||
|
|
365d7f8e70 | ||
|
|
acde84974f | ||
|
|
b72392a9f1 | ||
|
|
8bb0b846dc | ||
|
|
814731ce26 | ||
|
|
2088ec214e | ||
|
|
722d723f96 | ||
|
|
0c0cf5f076 | ||
|
|
fc5620fcfa | ||
|
|
ea2bddb2ed | ||
|
|
27249e6df4 | ||
|
|
9eca385eea | ||
|
|
ad8c286e3f | ||
|
|
3b602dd277 | ||
|
|
2719a32a3c | ||
|
|
bddbc05347 | ||
|
|
31a3aebd97 | ||
|
|
398f970194 | ||
|
|
8adc6c5a3a | ||
|
|
9c99a85093 | ||
|
|
3a50a29076 | ||
|
|
71c4499626 | ||
|
|
93040254e6 | ||
|
|
6cd779bb23 | ||
|
|
0b27b8fd31 | ||
|
|
7467c56259 | ||
|
|
c372699fc7 | ||
|
|
4572684bf5 | ||
|
|
89fa563280 | ||
|
|
c9b0f0a993 | ||
|
|
def31f974b | ||
|
|
1baf7cd020 | ||
|
|
edbd8b0249 | ||
|
|
471ea1e10e | ||
|
|
c970193166 | ||
|
|
4a41ed304e | ||
|
|
bf3a5359b4 | ||
|
|
93f3a57a16 | ||
|
|
fb92e0d43e | ||
|
|
98adbbcc9b | ||
|
|
d98429e0fa |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,3 +2,6 @@ config.sh
|
|||||||
.devkitARM*
|
.devkitARM*
|
||||||
.devkitPPC*
|
.devkitPPC*
|
||||||
.devkitPSP*
|
.devkitPSP*
|
||||||
|
*.gz
|
||||||
|
*.bz2
|
||||||
|
*~
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ Bison, Flex and Wget from the gnuwin32 project
|
|||||||
|
|
||||||
http://sourceforge.net/projects/gnuwin32/
|
http://sourceforge.net/projects/gnuwin32/
|
||||||
|
|
||||||
For devkitPSP a command line subversion client is required to get the PSP SDK http://www.tigris.org
|
|
||||||
|
|
||||||
required packages for building on debian/*buntu
|
required packages for building on debian/*buntu
|
||||||
|
|
||||||
sudo apt-get install build-essential autoconf automake bison flex libncurses5-dev libreadline-dev texinfo
|
sudo apt-get install build-essential autoconf automake bison flex libncurses5-dev libreadline-dev texinfo
|
||||||
@@ -25,10 +23,12 @@ http://gmplib.org/
|
|||||||
http://www.mpfr.org/
|
http://www.mpfr.org/
|
||||||
http://www.multiprecision.org/
|
http://www.multiprecision.org/
|
||||||
|
|
||||||
Some of the tools for devkitARM and devkitPPC also require FreeImage and zlib
|
Some of the tools for devkitARM and devkitPPC also require FreeImage, zlib, and libusb
|
||||||
|
|
||||||
http://freeimage.sourceforge.net/
|
http://freeimage.sourceforge.net/
|
||||||
http://www.zlib.net
|
http://www.zlib.net
|
||||||
|
http://www.libusb.org
|
||||||
|
|
||||||
|
|
||||||
Downloading the source packages
|
Downloading the source packages
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Build scripts for
|
# Build scripts for
|
||||||
# devkitARM release 38
|
# devkitARM release 42
|
||||||
# devkitPPC release 26
|
# devkitPPC release 27
|
||||||
# devkitPSP release 17
|
# devkitPSP release 17
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ 0 -eq 1 ] ; then
|
if [ 1 -eq 1 ] ; then
|
||||||
echo "Currently in release cycle, proceed with caution, do not report problems, do not ask for support."
|
echo "Currently in release cycle, proceed with caution, do not report problems, do not ask for support."
|
||||||
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,18 +24,19 @@ 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.12
|
||||||
LIBGBA_VER=20090222
|
LIBGBA_VER=20090222
|
||||||
LIBNDS_VER=1.5.5
|
LIBNDS_VER=1.5.8
|
||||||
DEFAULT_ARM7_VER=0.5.24
|
DEFAULT_ARM7_VER=0.5.24
|
||||||
DSWIFI_VER=0.3.13
|
DSWIFI_VER=0.3.16
|
||||||
LIBMIRKO_VER=0.9.7
|
LIBMIRKO_VER=0.9.7
|
||||||
MAXMOD_VER=1.0.7
|
MAXMOD_VER=1.0.9
|
||||||
FILESYSTEM_VER=0.9.9
|
FILESYSTEM_VER=0.9.11
|
||||||
LIBFAT_VER=1.0.11
|
LIBFAT_VER=1.0.12
|
||||||
PSPSDK_VER=20120404
|
PSPSDK_VER=20120404
|
||||||
GBATOOLS_VER=1.0.0
|
GBATOOLS_VER=1.0.0
|
||||||
GRIT_VER=0.8.10
|
DSTOOLS_VER=1.0.0
|
||||||
|
GRIT_VER=0.8.12
|
||||||
NDSTOOL_VER=1.50.1
|
NDSTOOL_VER=1.50.1
|
||||||
GENERAL_TOOLS_VER=1.0.0
|
GENERAL_TOOLS_VER=1.0.0
|
||||||
DLDITOOL_VER=1.24.0
|
DLDITOOL_VER=1.24.0
|
||||||
@@ -44,6 +45,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.7
|
||||||
|
STLINK_VER=0.5.7
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
function extract_and_patch {
|
function extract_and_patch {
|
||||||
@@ -60,7 +63,7 @@ function extract_and_patch {
|
|||||||
echo "invalid archive type"
|
echo "invalid archive type"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
tar $extractflags $SRCDIR/$1-$2$archivetype || { echo "Error extracting "$1; exit 1; }
|
tar $extractflags "$SRCDIR/$1-$2$archivetype" || { echo "Error extracting "$1; exit 1; }
|
||||||
touch extracted-$1
|
touch extracted-$1
|
||||||
fi
|
fi
|
||||||
if [[ ! -f patched-$1 && -f $patchdir/$1-$2.patch ]]; then
|
if [[ ! -f patched-$1 && -f $patchdir/$1-$2.patch ]]; then
|
||||||
@@ -109,7 +112,7 @@ else
|
|||||||
echo "for mingw/msys you must use <drive>:/<install path> or you will have include path problems"
|
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, i.e. e:/devkitPro"
|
echo "this is the top level directory for devkitpro, i.e. e:/devkitPro"
|
||||||
|
|
||||||
read INSTALLDIR
|
read -e INSTALLDIR
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -154,7 +157,7 @@ fi
|
|||||||
if [ "$BUILD_DKPRO_AUTOMATED" != "1" ] ; then
|
if [ "$BUILD_DKPRO_AUTOMATED" != "1" ] ; then
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo 'Ready to install '$package' in '$INSTALLDIR
|
echo 'Ready to install '$package' in '$prefix
|
||||||
echo
|
echo
|
||||||
echo 'press return to continue'
|
echo 'press return to continue'
|
||||||
|
|
||||||
@@ -181,7 +184,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
|
||||||
@@ -191,10 +194,11 @@ archives="binutils-${BINUTILS_VER}.tar.bz2 gcc-${GCC_VER}.tar.bz2 newlib-${NEWLI
|
|||||||
if [ $VERSION -eq 1 ]; then
|
if [ $VERSION -eq 1 ]; then
|
||||||
targetarchives="libnds-src-${LIBNDS_VER}.tar.bz2 libgba-src-${LIBGBA_VER}.tar.bz2
|
targetarchives="libnds-src-${LIBNDS_VER}.tar.bz2 libgba-src-${LIBGBA_VER}.tar.bz2
|
||||||
libmirko-src-${LIBMIRKO_VER}.tar.bz2 dswifi-src-${DSWIFI_VER}.tar.bz2 maxmod-src-${MAXMOD_VER}.tar.bz2
|
libmirko-src-${LIBMIRKO_VER}.tar.bz2 dswifi-src-${DSWIFI_VER}.tar.bz2 maxmod-src-${MAXMOD_VER}.tar.bz2
|
||||||
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 dstools-$DSTOOLS_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
|
||||||
@@ -213,12 +217,12 @@ else
|
|||||||
SRCDIR=`pwd`
|
SRCDIR=`pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $SRCDIR
|
cd "$SRCDIR"
|
||||||
for archive in $archives $targetarchives $hostarchives
|
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
|
||||||
|
|
||||||
@@ -238,13 +242,13 @@ do
|
|||||||
echo $destdir
|
echo $destdir
|
||||||
if [ ! -d $destdir ]; then
|
if [ ! -d $destdir ]; then
|
||||||
mkdir -p $destdir
|
mkdir -p $destdir
|
||||||
bzip2 -cd $SRCDIR/$archive | tar -xf - -C $destdir || { echo "Error extracting "$archive; exit 1; }
|
bzip2 -cd "$SRCDIR/$archive" | tar -xf - -C $destdir || { echo "Error extracting "$archive; exit 1; }
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for archive in $hostarchives
|
for archive in $hostarchives
|
||||||
do
|
do
|
||||||
tar -xjf $SRCDIR/$archive
|
tar -xjf "$SRCDIR/$archive"
|
||||||
done
|
done
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@@ -254,12 +258,15 @@ if [ -f $scriptdir/build-gcc.sh ]; then . $scriptdir/build-gcc.sh || { echo "Err
|
|||||||
if [ -f $scriptdir/build-tools.sh ]; then . $scriptdir/build-tools.sh || { echo "Error building tools"; exit 1; }; cd $BUILDSCRIPTDIR; fi
|
if [ -f $scriptdir/build-tools.sh ]; then . $scriptdir/build-tools.sh || { echo "Error building tools"; exit 1; }; cd $BUILDSCRIPTDIR; fi
|
||||||
if [ -f $scriptdir/build-crtls.sh ]; then . $scriptdir/build-crtls.sh || { echo "Error building crtls"; exit 1; }; cd $BUILDSCRIPTDIR; fi
|
if [ -f $scriptdir/build-crtls.sh ]; then . $scriptdir/build-crtls.sh || { echo "Error building crtls"; exit 1; }; cd $BUILDSCRIPTDIR; fi
|
||||||
|
|
||||||
if [ "$CROSSBUILD" = "i686-w64-mingw32" ]; then
|
if [ ! -z $CROSSBUILD ]; 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 $CROSSLIBPATH/FreeImage.dll $prefix/bin
|
||||||
fi
|
fi
|
||||||
cp -v /opt/i686-w64-mingw32/mingw/lib/libstdc++-6.dll \
|
if [ $VERSION -eq 1 ]; then
|
||||||
/opt/i686-w64-mingw32/mingw/lib/libgcc_s_sjlj-1.dll \
|
cp -v $CROSSBINPATH/libusb-1.0.dll $prefix/bin
|
||||||
|
fi
|
||||||
|
cp -v $CROSSLIBPATH/libstdc++-6.dll \
|
||||||
|
$CROSSLIBPATH/libgcc_s_sjlj-1.dll \
|
||||||
$prefix/bin
|
$prefix/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export CROSSBUILD=i686-w64-mingw32
|
export CROSSBUILD=i686-w64-mingw32
|
||||||
|
export CROSSLIBPATH=/opt/i686-w64-mingw32/mingw/lib
|
||||||
|
export CROSSBINPATH=/opt/i686-w64-mingw32/mingw/bin
|
||||||
export PATH=/opt/i686-w64-mingw32/bin:$PATH
|
export PATH=/opt/i686-w64-mingw32/bin:$PATH
|
||||||
|
export PKG_CONFIG_PATH=$CROSSLIBPATH/pkgconfig
|
||||||
|
|
||||||
|
|||||||
7
cross-build-x86_64-w64-mingw32.sh
Executable file
7
cross-build-x86_64-w64-mingw32.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
export CROSSBUILD=x86_64-w64-mingw32
|
||||||
|
export CROSSLIBPATH=/opt/x86_64-mingw-w64/mingw/lib
|
||||||
|
export CROSSBINPATH=/opt/x86_64-mingw-w64/mingw/bin
|
||||||
|
export PATH=/opt/x86_64-mingw-w64/bin:$PATH
|
||||||
|
export PKG_CONFIG_PATH=$CROSSLIBPATH/pkgconfig
|
||||||
|
|
||||||
@@ -1,162 +0,0 @@
|
|||||||
diff -Nbaur binutils-2.22/bfd/bfd-in2.h binutils-2.22-arm/bfd/bfd-in2.h
|
|
||||||
--- binutils-2.22/bfd/bfd-in2.h 2011-09-16 02:15:18.000000000 +0100
|
|
||||||
+++ binutils-2.22-arm/bfd/bfd-in2.h 2012-04-01 12:58:20.000000000 +0100
|
|
||||||
@@ -38,6 +38,8 @@
|
|
||||||
|
|
||||||
#include "ansidecl.h"
|
|
||||||
#include "symcat.h"
|
|
||||||
+#include <sys/stat.h>
|
|
||||||
+
|
|
||||||
#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
|
|
||||||
#ifndef SABER
|
|
||||||
/* This hack is to avoid a problem with some strict ANSI C preprocessors.
|
|
||||||
@@ -308,8 +310,6 @@
|
|
||||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
|
|
||||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
|
|
||||||
|
|
||||||
-/* Forward define. */
|
|
||||||
-struct stat;
|
|
||||||
|
|
||||||
typedef enum bfd_print_symbol
|
|
||||||
{
|
|
||||||
diff -Nbaur binutils-2.22/bfd/bfd-in.h binutils-2.22-arm/bfd/bfd-in.h
|
|
||||||
--- binutils-2.22/bfd/bfd-in.h 2011-09-16 02:15:18.000000000 +0100
|
|
||||||
+++ binutils-2.22-arm/bfd/bfd-in.h 2012-04-01 12:58:20.000000000 +0100
|
|
||||||
@@ -31,6 +31,8 @@
|
|
||||||
|
|
||||||
#include "ansidecl.h"
|
|
||||||
#include "symcat.h"
|
|
||||||
+#include <sys/stat.h>
|
|
||||||
+
|
|
||||||
#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
|
|
||||||
#ifndef SABER
|
|
||||||
/* This hack is to avoid a problem with some strict ANSI C preprocessors.
|
|
||||||
@@ -301,8 +303,6 @@
|
|
||||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
|
|
||||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
|
|
||||||
|
|
||||||
-/* Forward define. */
|
|
||||||
-struct stat;
|
|
||||||
|
|
||||||
typedef enum bfd_print_symbol
|
|
||||||
{
|
|
||||||
diff -Nbaur binutils-2.22/bfd/config.in binutils-2.22-arm/bfd/config.in
|
|
||||||
--- binutils-2.22/bfd/config.in 2011-05-12 08:41:40.000000000 +0100
|
|
||||||
+++ binutils-2.22-arm/bfd/config.in 2012-04-03 17:35:45.000000000 +0100
|
|
||||||
@@ -245,6 +245,9 @@
|
|
||||||
/* Define if <sys/procfs.h> has win32_pstatus_t. */
|
|
||||||
#undef HAVE_WIN32_PSTATUS_T
|
|
||||||
|
|
||||||
+/* Define to 1 if you have the <windows.h> header file. */
|
|
||||||
+#undef HAVE_WINDOWS_H
|
|
||||||
+
|
|
||||||
/* Define to 1 if you have the <zlib.h> header file. */
|
|
||||||
#undef HAVE_ZLIB_H
|
|
||||||
|
|
||||||
diff -Nbaur binutils-2.22/bfd/configure binutils-2.22-arm/bfd/configure
|
|
||||||
--- binutils-2.22/bfd/configure 2011-11-21 11:55:48.000000000 +0000
|
|
||||||
+++ binutils-2.22-arm/bfd/configure 2012-04-03 17:35:45.000000000 +0100
|
|
||||||
@@ -13508,6 +13508,22 @@
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
+
|
|
||||||
+for ac_header in windows.h dlfcn.h
|
|
||||||
+do :
|
|
||||||
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
||||||
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
||||||
+eval as_val=\$$as_ac_Header
|
|
||||||
+ if test "x$as_val" = x""yes; then :
|
|
||||||
+ cat >>confdefs.h <<_ACEOF
|
|
||||||
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
||||||
+_ACEOF
|
|
||||||
+
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+done
|
|
||||||
+
|
|
||||||
+
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
|
|
||||||
$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
|
|
||||||
if test "${gcc_cv_header_string+set}" = set; then :
|
|
||||||
diff -Nbaur binutils-2.22/bfd/configure.in binutils-2.22-arm/bfd/configure.in
|
|
||||||
--- binutils-2.22/bfd/configure.in 2011-11-21 11:55:46.000000000 +0000
|
|
||||||
+++ binutils-2.22-arm/bfd/configure.in 2012-04-03 17:35:45.000000000 +0100
|
|
||||||
@@ -190,6 +190,9 @@
|
|
||||||
GCC_HEADER_STDINT(bfd_stdint.h)
|
|
||||||
AC_HEADER_TIME
|
|
||||||
AC_HEADER_DIRENT
|
|
||||||
+
|
|
||||||
+AC_CHECK_HEADERS(windows.h dlfcn.h)
|
|
||||||
+
|
|
||||||
ACX_HEADER_STRING
|
|
||||||
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
|
|
||||||
AC_CHECK_FUNCS(strtoull)
|
|
||||||
diff -Nbaur binutils-2.22/bfd/plugin.c binutils-2.22-arm/bfd/plugin.c
|
|
||||||
--- binutils-2.22/bfd/plugin.c 2011-07-11 16:03:07.000000000 +0100
|
|
||||||
+++ binutils-2.22-arm/bfd/plugin.c 2012-04-03 17:35:45.000000000 +0100
|
|
||||||
@@ -25,7 +25,13 @@
|
|
||||||
#if BFD_SUPPORTS_PLUGINS
|
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
+#ifdef HAVE_DLFCN_H
|
|
||||||
#include <dlfcn.h>
|
|
||||||
+#elif defined (HAVE_WINDOWS_H)
|
|
||||||
+#include <windows.h>
|
|
||||||
+#else
|
|
||||||
+#error Unknown how to handle dynamic-load-libraries.
|
|
||||||
+#endif
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include "plugin-api.h"
|
|
||||||
#include "sysdep.h"
|
|
||||||
@@ -34,6 +40,37 @@
|
|
||||||
#include "libiberty.h"
|
|
||||||
#include <dirent.h>
|
|
||||||
|
|
||||||
+#if !defined (HAVE_DLFCN_H) && defined (HAVE_WINDOWS_H)
|
|
||||||
+
|
|
||||||
+#define RTLD_NOW 0 /* Dummy value. */
|
|
||||||
+
|
|
||||||
+static void *
|
|
||||||
+dlopen (const char *file, int mode ATTRIBUTE_UNUSED)
|
|
||||||
+{
|
|
||||||
+ return LoadLibrary (file);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static void *
|
|
||||||
+dlsym (void *handle, const char *name)
|
|
||||||
+{
|
|
||||||
+ return GetProcAddress (handle, name);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static int ATTRIBUTE_UNUSED
|
|
||||||
+dlclose (void *handle)
|
|
||||||
+{
|
|
||||||
+ FreeLibrary (handle);
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static const char *
|
|
||||||
+dlerror (void)
|
|
||||||
+{
|
|
||||||
+ return "Unable to load DLL.";
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+#endif /* !defined (HAVE_DLFCN_H) && defined (HAVE_WINDOWS_H) */
|
|
||||||
+
|
|
||||||
#define bfd_plugin_close_and_cleanup _bfd_generic_close_and_cleanup
|
|
||||||
#define bfd_plugin_bfd_free_cached_info _bfd_generic_bfd_free_cached_info
|
|
||||||
#define bfd_plugin_new_section_hook _bfd_generic_new_section_hook
|
|
||||||
diff -Nbaur binutils-2.22/include/opcode/arm.h binutils-2.22-arm/include/opcode/arm.h
|
|
||||||
--- binutils-2.22/include/opcode/arm.h 2011-05-31 15:12:55.000000000 +0100
|
|
||||||
+++ binutils-2.22-arm/include/opcode/arm.h 2012-04-01 12:58:20.000000000 +0100
|
|
||||||
@@ -109,7 +109,8 @@
|
|
||||||
#define ARM_AEXT_V6KT2 (ARM_AEXT_V6T2 | ARM_EXT_V6K)
|
|
||||||
#define ARM_AEXT_V6ZT2 (ARM_AEXT_V6T2 | ARM_EXT_SEC)
|
|
||||||
#define ARM_AEXT_V6ZKT2 (ARM_AEXT_V6T2 | ARM_EXT_V6K | ARM_EXT_SEC)
|
|
||||||
-#define ARM_AEXT_V7_ARM (ARM_AEXT_V6KT2 | ARM_EXT_V7 | ARM_EXT_BARRIER)
|
|
||||||
+#define ARM_AEXT_V7_ARM (ARM_AEXT_V6KT2 | ARM_EXT_V7 | ARM_EXT_BARRIER \
|
|
||||||
+ | ARM_EXT_OS )
|
|
||||||
#define ARM_AEXT_V7A (ARM_AEXT_V7_ARM | ARM_EXT_V7A)
|
|
||||||
#define ARM_AEXT_V7R (ARM_AEXT_V7_ARM | ARM_EXT_V7R | ARM_EXT_DIV)
|
|
||||||
#define ARM_AEXT_NOTM \
|
|
||||||
13
dkarm-eabi/patches/binutils-2.24.patch
Normal file
13
dkarm-eabi/patches/binutils-2.24.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff -Nbaur binutils-2.24/include/opcode/arm.h binutils-2.24-arm/include/opcode/arm.h
|
||||||
|
--- binutils-2.24/include/opcode/arm.h 2013-11-26 11:37:33.000000000 +0000
|
||||||
|
+++ binutils-2.24-arm/include/opcode/arm.h 2014-02-16 19:32:33.000000000 +0000
|
||||||
|
@@ -114,7 +114,8 @@
|
||||||
|
#define ARM_AEXT_V6KT2 (ARM_AEXT_V6T2 | ARM_EXT_V6K)
|
||||||
|
#define ARM_AEXT_V6ZT2 (ARM_AEXT_V6T2 | ARM_EXT_SEC)
|
||||||
|
#define ARM_AEXT_V6ZKT2 (ARM_AEXT_V6T2 | ARM_EXT_V6K | ARM_EXT_SEC)
|
||||||
|
-#define ARM_AEXT_V7_ARM (ARM_AEXT_V6KT2 | ARM_EXT_V7 | ARM_EXT_BARRIER)
|
||||||
|
+#define ARM_AEXT_V7_ARM (ARM_AEXT_V6KT2 | ARM_EXT_V7 | ARM_EXT_BARRIER \
|
||||||
|
+ | ARM_EXT_OS )
|
||||||
|
#define ARM_AEXT_V7A (ARM_AEXT_V7_ARM | ARM_EXT_V7A)
|
||||||
|
#define ARM_AEXT_V7VE (ARM_AEXT_V7A | ARM_EXT_DIV | ARM_EXT_ADIV \
|
||||||
|
| ARM_EXT_VIRT | ARM_EXT_SEC | ARM_EXT_MP)
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
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.8.2/gcc/config/arm/t-arm-elf gcc-4.8.2-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.8.2/gcc/config/arm/t-arm-elf 2013-01-10 20:38:27.000000000 +0000
|
||||||
+++ gcc-4.7.0-arm/gcc/config/arm/t-arm-elf 2012-04-05 20:36:17.000000000 +0100
|
+++ gcc-4.8.2-arm/gcc/config/arm/t-arm-elf 2014-02-16 19:36:15.000000000 +0000
|
||||||
@@ -26,22 +26,44 @@
|
@@ -25,22 +25,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
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ diff -Nbaur gcc-4.7.0/gcc/config/arm/t-arm-elf gcc-4.7.0-arm/gcc/config/arm/t-ar
|
|||||||
#MULTILIB_EXCEPTIONS += *mcpu=fa526/*mfloat-abi=hard*
|
#MULTILIB_EXCEPTIONS += *mcpu=fa526/*mfloat-abi=hard*
|
||||||
#MULTILIB_EXCEPTIONS += *mcpu=fa626/*mfloat-abi=hard*
|
#MULTILIB_EXCEPTIONS += *mcpu=fa626/*mfloat-abi=hard*
|
||||||
|
|
||||||
@@ -49,9 +71,9 @@
|
@@ -48,9 +70,9 @@
|
||||||
# MULTILIB_DIRNAMES += ep9312
|
# MULTILIB_DIRNAMES += ep9312
|
||||||
# MULTILIB_EXCEPTIONS += *mthumb/*mcpu=ep9312*
|
# MULTILIB_EXCEPTIONS += *mthumb/*mcpu=ep9312*
|
||||||
#
|
#
|
||||||
@@ -71,19 +71,19 @@ 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.8.2/gcc/config/arm/unknown-elf.h gcc-4.8.2-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.8.2/gcc/config/arm/unknown-elf.h 2013-01-10 20:38:27.000000000 +0000
|
||||||
+++ gcc-4.7.0-arm/gcc/config/arm/unknown-elf.h 2012-04-05 20:36:17.000000000 +0100
|
+++ gcc-4.8.2-arm/gcc/config/arm/unknown-elf.h 2014-02-16 19:36:15.000000000 +0000
|
||||||
@@ -94,4 +94,4 @@
|
@@ -93,4 +93,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.8.2/gcc/gcc.c gcc-4.8.2-arm/gcc/gcc.c
|
||||||
--- gcc-4.7.0/gcc/gcc.c 2012-02-28 17:31:38.000000000 +0000
|
--- gcc-4.8.2/gcc/gcc.c 2013-05-17 13:24:26.000000000 +0100
|
||||||
+++ gcc-4.7.0-arm/gcc/gcc.c 2012-04-05 20:36:17.000000000 +0100
|
+++ gcc-4.8.2-arm/gcc/gcc.c 2014-02-16 19:36:15.000000000 +0000
|
||||||
@@ -548,6 +548,11 @@
|
@@ -599,6 +599,11 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ diff -Nbaur gcc-4.7.0/gcc/gcc.c gcc-4.7.0-arm/gcc/gcc.c
|
|||||||
/* config.h can define STARTFILE_SPEC to override the default crt0 files. */
|
/* config.h can define STARTFILE_SPEC to override the default crt0 files. */
|
||||||
#ifndef STARTFILE_SPEC
|
#ifndef STARTFILE_SPEC
|
||||||
#define STARTFILE_SPEC \
|
#define STARTFILE_SPEC \
|
||||||
@@ -717,6 +722,7 @@
|
@@ -785,6 +790,7 @@
|
||||||
static const char *mflib_spec = MFLIB_SPEC;
|
static const char *mflib_spec = MFLIB_SPEC;
|
||||||
static const char *link_gomp_spec = "";
|
static const char *link_gomp_spec = "";
|
||||||
static const char *libgcc_spec = LIBGCC_SPEC;
|
static const char *libgcc_spec = LIBGCC_SPEC;
|
||||||
@@ -103,7 +103,7 @@ diff -Nbaur gcc-4.7.0/gcc/gcc.c gcc-4.7.0-arm/gcc/gcc.c
|
|||||||
static const char *endfile_spec = ENDFILE_SPEC;
|
static const char *endfile_spec = ENDFILE_SPEC;
|
||||||
static const char *startfile_spec = STARTFILE_SPEC;
|
static const char *startfile_spec = STARTFILE_SPEC;
|
||||||
static const char *linker_name_spec = LINKER_NAME;
|
static const char *linker_name_spec = LINKER_NAME;
|
||||||
@@ -1201,6 +1207,7 @@
|
@@ -1274,6 +1280,7 @@
|
||||||
INIT_STATIC_SPEC ("mflib", &mflib_spec),
|
INIT_STATIC_SPEC ("mflib", &mflib_spec),
|
||||||
INIT_STATIC_SPEC ("link_gomp", &link_gomp_spec),
|
INIT_STATIC_SPEC ("link_gomp", &link_gomp_spec),
|
||||||
INIT_STATIC_SPEC ("libgcc", &libgcc_spec),
|
INIT_STATIC_SPEC ("libgcc", &libgcc_spec),
|
||||||
@@ -111,10 +111,10 @@ 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.8.2/libcpp/Makefile.in gcc-4.8.2-arm/libcpp/Makefile.in
|
||||||
--- gcc-4.7.0/libcpp/Makefile.in 2012-03-22 07:37:39.000000000 +0000
|
--- gcc-4.8.2/libcpp/Makefile.in 2013-10-16 08:27:58.000000000 +0100
|
||||||
+++ gcc-4.7.0-arm/libcpp/Makefile.in 2012-04-05 20:36:17.000000000 +0100
|
+++ gcc-4.8.2-arm/libcpp/Makefile.in 2014-02-16 19:36:15.000000000 +0000
|
||||||
@@ -214,8 +214,7 @@
|
@@ -207,8 +207,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.
|
||||||
@@ -124,10 +124,19 @@ 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.8.2/libgcc/config/arm/t-bpabi gcc-4.8.2-arm/libgcc/config/arm/t-bpabi
|
||||||
--- gcc-4.7.0/libgcc/crtstuff.c 2011-12-06 21:35:41.000000000 +0000
|
--- gcc-4.8.2/libgcc/config/arm/t-bpabi 2012-08-17 16:06:06.000000000 +0100
|
||||||
+++ gcc-4.7.0-arm/libgcc/crtstuff.c 2012-04-05 20:36:50.000000000 +0100
|
+++ gcc-4.8.2-arm/libgcc/config/arm/t-bpabi 2014-02-16 19:36:15.000000000 +0000
|
||||||
@@ -49,7 +49,7 @@
|
@@ -17,4 +17,4 @@
|
||||||
|
# On ARM, specifying -fnon-call-exceptions will needlessly pull in
|
||||||
|
# the unwinder in simple programs which use 64-bit division. Omitting
|
||||||
|
# the option is safe.
|
||||||
|
-LIB2_DIVMOD_EXCEPTION_FLAGS := -fexceptions
|
||||||
|
+LIB2_DIVMOD_EXCEPTION_FLAGS := -fno-exceptions
|
||||||
|
diff -Nbaur gcc-4.8.2/libgcc/crtstuff.c gcc-4.8.2-arm/libgcc/crtstuff.c
|
||||||
|
--- gcc-4.8.2/libgcc/crtstuff.c 2013-02-04 19:06:20.000000000 +0000
|
||||||
|
+++ gcc-4.8.2-arm/libgcc/crtstuff.c 2014-02-16 19:36:15.000000000 +0000
|
||||||
|
@@ -47,7 +47,7 @@
|
||||||
|
|
||||||
/* Target machine header files require this define. */
|
/* Target machine header files require this define. */
|
||||||
#define IN_LIBGCC2
|
#define IN_LIBGCC2
|
||||||
@@ -136,27 +145,10 @@ diff -Nbaur gcc-4.7.0/libgcc/crtstuff.c gcc-4.7.0-arm/libgcc/crtstuff.c
|
|||||||
/* FIXME: Including auto-host is incorrect, but until we have
|
/* FIXME: Including auto-host is incorrect, but until we have
|
||||||
identified the set of defines that need to go into auto-target.h,
|
identified the set of defines that need to go into auto-target.h,
|
||||||
this will have to do. */
|
this will have to do. */
|
||||||
diff -Nbaur gcc-4.7.0/libgcc/Makefile.in gcc-4.7.0-arm/libgcc/Makefile.in
|
diff -Nbaur gcc-4.8.2/libgcc/Makefile.in gcc-4.8.2-arm/libgcc/Makefile.in
|
||||||
--- gcc-4.7.0/libgcc/Makefile.in 2011-11-22 03:01:02.000000000 +0000
|
--- gcc-4.8.2/libgcc/Makefile.in 2013-02-04 19:06:20.000000000 +0000
|
||||||
+++ gcc-4.7.0-arm/libgcc/Makefile.in 2012-04-05 20:36:17.000000000 +0100
|
+++ gcc-4.8.2-arm/libgcc/Makefile.in 2014-02-16 19:36:15.000000000 +0000
|
||||||
@@ -500,14 +500,14 @@
|
@@ -813,7 +813,7 @@
|
||||||
lib2-divmod-o = $(patsubst %,%$(objext),$(LIB2_DIVMOD_FUNCS))
|
|
||||||
$(lib2-divmod-o): %$(objext): $(srcdir)/libgcc2.c
|
|
||||||
$(gcc_compile) -DL$* -c $< \
|
|
||||||
- -fexceptions -fnon-call-exceptions $(vis_hide)
|
|
||||||
+ -fno-exceptions -fnon-call-exceptions $(vis_hide)
|
|
||||||
libgcc-objects += $(lib2-divmod-o)
|
|
||||||
|
|
||||||
ifeq ($(enable_shared),yes)
|
|
||||||
lib2-divmod-s-o = $(patsubst %,%_s$(objext),$(LIB2_DIVMOD_FUNCS))
|
|
||||||
$(lib2-divmod-s-o): %_s$(objext): $(srcdir)/libgcc2.c
|
|
||||||
$(gcc_s_compile) -DL$* -c $< \
|
|
||||||
- -fexceptions -fnon-call-exceptions
|
|
||||||
+ -fno-exceptions -fnon-call-exceptions
|
|
||||||
libgcc-s-objects += $(lib2-divmod-s-o)
|
|
||||||
endif
|
|
||||||
|
|
||||||
@@ -810,7 +810,7 @@
|
|
||||||
# libgcc_eh.a, only LIB2ADDEH matters. If we do, only LIB2ADDEHSTATIC and
|
# libgcc_eh.a, only LIB2ADDEH matters. If we do, only LIB2ADDEHSTATIC and
|
||||||
# LIB2ADDEHSHARED matter. (Usually all three are identical.)
|
# LIB2ADDEHSHARED matter. (Usually all three are identical.)
|
||||||
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
diff -Nbaur gdb-7.4/gdb/Makefile.in gdb-7.4-arm/gdb/Makefile.in
|
|
||||||
--- gdb-7.4/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
|
|
||||||
@@ -2195,10 +2195,10 @@
|
|
||||||
# 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
|
|
||||||
# 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@else
|
|
||||||
@GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \
|
|
||||||
@GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC)
|
|
||||||
3004
dkarm-eabi/patches/gdb-7.7.patch
Normal file
3004
dkarm-eabi/patches/gdb-7.7.patch
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,36 +1,11 @@
|
|||||||
#---------------------------------------------------------------------------------
|
include $(DEVKITARM)/base_tools
|
||||||
# change shell on Snow Leopard
|
|
||||||
#---------------------------------------------------------------------------------
|
|
||||||
UNAME_S := $(shell uname -s)
|
|
||||||
UNAME_R := $(shell uname -r)
|
|
||||||
|
|
||||||
ifneq (,$(findstring Darwin,$(UNAME_S)))
|
|
||||||
ifneq (,$(findstring 10.8.0,$(UNAME_R)))
|
|
||||||
export SHELL=/bin/bash
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# path to tools
|
# add portlibs path
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
export PORTLIBS := $(DEVKITPRO)/portlibs/arm
|
export PORTLIBS := $(DEVKITPRO)/portlibs/arm
|
||||||
export PATH := $(DEVKITARM)/bin:$(PORTLIBS)/bin:$(PATH)
|
export PATH := $(PORTLIBS)/bin:$(PATH)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
|
||||||
# the prefix on the compiler executables
|
|
||||||
#---------------------------------------------------------------------------------
|
|
||||||
PREFIX := arm-eabi-
|
|
||||||
|
|
||||||
export CC := $(PREFIX)gcc
|
|
||||||
export CXX := $(PREFIX)g++
|
|
||||||
export AS := $(PREFIX)as
|
|
||||||
export AR := $(PREFIX)ar
|
|
||||||
export OBJCOPY := $(PREFIX)objcopy
|
|
||||||
|
|
||||||
ISVC=$(or $(VCBUILDHELPER_COMMAND),$(MSBUILDEXTENSIONSPATH32),$(MSBUILDEXTENSIONSPATH))
|
|
||||||
|
|
||||||
ifneq (,$(ISVC))
|
|
||||||
ERROR_FILTER := 2>&1 | sed -e 's/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/g'
|
|
||||||
endif
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.a:
|
%.a:
|
||||||
|
|||||||
34
dkarm-eabi/rules/base_tools
Normal file
34
dkarm-eabi/rules/base_tools
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# change shell on Snow Leopard
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
UNAME_S := $(shell uname -s)
|
||||||
|
UNAME_R := $(shell uname -r)
|
||||||
|
|
||||||
|
ifneq (,$(findstring Darwin,$(UNAME_S)))
|
||||||
|
ifneq (,$(findstring 10.8.0,$(UNAME_R)))
|
||||||
|
export SHELL=/bin/bash
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# path to tools
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
export PATH := $(DEVKITARM)/bin:$(PATH)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# the prefix on the compiler executables
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
PREFIX := arm-none-eabi-
|
||||||
|
|
||||||
|
export CC := $(PREFIX)gcc
|
||||||
|
export CXX := $(PREFIX)g++
|
||||||
|
export AS := $(PREFIX)as
|
||||||
|
export AR := $(PREFIX)ar
|
||||||
|
export OBJCOPY := $(PREFIX)objcopy
|
||||||
|
export STRIP := $(PREFIX)strip
|
||||||
|
export NM := $(PREFIX)nm
|
||||||
|
|
||||||
|
ISVC=$(or $(VCBUILDHELPER_COMMAND),$(MSBUILDEXTENSIONSPATH32),$(MSBUILDEXTENSIONSPATH))
|
||||||
|
|
||||||
|
ifneq (,$(ISVC))
|
||||||
|
ERROR_FILTER := 2>&1 | sed -e 's/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/g'
|
||||||
|
endif
|
||||||
@@ -11,11 +11,11 @@ GAME_TITLE := $(notdir $(OUTPUT))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(GAME_SUBTITLE1)),)
|
ifeq ($(strip $(GAME_SUBTITLE1)),)
|
||||||
GAME_SUBTITLE1 := www.devkitpro.org
|
GAME_SUBTITLE1 := built with devkitARM
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(GAME_SUBTITLE2)),)
|
ifeq ($(strip $(GAME_SUBTITLE2)),)
|
||||||
GAME_SUBTITLE2 := www.drunkencoders.com
|
GAME_SUBTITLE2 := http://devkitpro.org
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(GAME_ICON)),)
|
ifeq ($(strip $(GAME_ICON)),)
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -22,11 +22,23 @@ $MAKE CRT=ds_arm7
|
|||||||
$MAKE CRT=ds_arm9
|
$MAKE CRT=ds_arm9
|
||||||
$MAKE CRT=ds_cart
|
$MAKE CRT=ds_cart
|
||||||
|
|
||||||
|
cd $BUILDDIR/libgba-$LIBGBA_VER
|
||||||
|
$MAKE || { echo "error building libgba"; exit 1; }
|
||||||
|
$MAKE install || { echo "error installing libgba"; exit 1; }
|
||||||
|
|
||||||
cd $BUILDDIR/libnds-$LIBNDS_VER
|
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/default-arm7-$DEFAULT_ARM7_VER
|
cd $BUILDDIR/dswifi-$DSWIFI_VER
|
||||||
|
$MAKE || { echo "error building dswifi"; exit 1; }
|
||||||
|
$MAKE install || { echo "error installing dswifi"; exit 1; }
|
||||||
|
|
||||||
|
cd $BUILDDIR/maxmod-$MAXMOD_VER
|
||||||
|
$MAKE || { echo "error building maxmod"; exit 1; }
|
||||||
|
$MAKE install || { echo "error installing maxmod"; exit 1; }
|
||||||
|
|
||||||
|
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; }
|
||||||
|
|
||||||
@@ -34,10 +46,6 @@ cd $BUILDDIR/libfat-$LIBFAT_VER
|
|||||||
$MAKE nds-install || { echo "error building nds libfat"; exit 1; }
|
$MAKE nds-install || { echo "error building nds libfat"; exit 1; }
|
||||||
$MAKE gba-install || { echo "error installing gba libfat"; exit 1; }
|
$MAKE gba-install || { echo "error installing gba libfat"; exit 1; }
|
||||||
|
|
||||||
cd $BUILDDIR/maxmod-$MAXMOD_VER
|
|
||||||
$MAKE || { echo "error building maxmod"; exit 1; }
|
|
||||||
$MAKE install || { echo "error installing maxmod"; exit 1; }
|
|
||||||
|
|
||||||
cd $BUILDDIR/libmirko-$LIBMIRKO_VER
|
cd $BUILDDIR/libmirko-$LIBMIRKO_VER
|
||||||
$MAKE || { echo "error building libmirko"; exit 1; }
|
$MAKE || { echo "error building libmirko"; exit 1; }
|
||||||
$MAKE install || { echo "error installing libmirko"; exit 1; }
|
$MAKE install || { echo "error installing libmirko"; exit 1; }
|
||||||
|
|||||||
9
dkarm-eabi/scripts/build-gcc.sh
Normal file → Executable file
9
dkarm-eabi/scripts/build-gcc.sh
Normal file → Executable 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" CXXFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" CXXFLAGS_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 42" \
|
||||||
$CROSS_PARAMS \
|
$CROSS_PARAMS \
|
||||||
|| { echo "Error configuring gcc"; exit 1; }
|
|| { echo "Error configuring gcc"; exit 1; }
|
||||||
touch configured-gcc
|
touch configured-gcc
|
||||||
|
|||||||
@@ -1,149 +0,0 @@
|
|||||||
diff -Nbaur binutils-2.22/bfd/bfd-in2.h binutils-2.22-ppc/bfd/bfd-in2.h
|
|
||||||
--- binutils-2.22/bfd/bfd-in2.h 2011-09-16 02:15:18.000000000 +0100
|
|
||||||
+++ binutils-2.22-ppc/bfd/bfd-in2.h 2012-04-03 15:06:10.000000000 +0100
|
|
||||||
@@ -38,6 +38,8 @@
|
|
||||||
|
|
||||||
#include "ansidecl.h"
|
|
||||||
#include "symcat.h"
|
|
||||||
+#include <sys/stat.h>
|
|
||||||
+
|
|
||||||
#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
|
|
||||||
#ifndef SABER
|
|
||||||
/* This hack is to avoid a problem with some strict ANSI C preprocessors.
|
|
||||||
@@ -308,8 +310,6 @@
|
|
||||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
|
|
||||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
|
|
||||||
|
|
||||||
-/* Forward define. */
|
|
||||||
-struct stat;
|
|
||||||
|
|
||||||
typedef enum bfd_print_symbol
|
|
||||||
{
|
|
||||||
diff -Nbaur binutils-2.22/bfd/bfd-in.h binutils-2.22-ppc/bfd/bfd-in.h
|
|
||||||
--- binutils-2.22/bfd/bfd-in.h 2011-09-16 02:15:18.000000000 +0100
|
|
||||||
+++ binutils-2.22-ppc/bfd/bfd-in.h 2012-04-03 15:06:10.000000000 +0100
|
|
||||||
@@ -31,6 +31,8 @@
|
|
||||||
|
|
||||||
#include "ansidecl.h"
|
|
||||||
#include "symcat.h"
|
|
||||||
+#include <sys/stat.h>
|
|
||||||
+
|
|
||||||
#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
|
|
||||||
#ifndef SABER
|
|
||||||
/* This hack is to avoid a problem with some strict ANSI C preprocessors.
|
|
||||||
@@ -301,8 +303,6 @@
|
|
||||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
|
|
||||||
&& (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
|
|
||||||
|
|
||||||
-/* Forward define. */
|
|
||||||
-struct stat;
|
|
||||||
|
|
||||||
typedef enum bfd_print_symbol
|
|
||||||
{
|
|
||||||
diff -Nbaur binutils-2.22/bfd/config.in binutils-2.22-ppc/bfd/config.in
|
|
||||||
--- binutils-2.22/bfd/config.in 2011-05-12 08:41:40.000000000 +0100
|
|
||||||
+++ binutils-2.22-ppc/bfd/config.in 2012-04-03 14:50:51.000000000 +0100
|
|
||||||
@@ -245,6 +245,9 @@
|
|
||||||
/* Define if <sys/procfs.h> has win32_pstatus_t. */
|
|
||||||
#undef HAVE_WIN32_PSTATUS_T
|
|
||||||
|
|
||||||
+/* Define to 1 if you have the <windows.h> header file. */
|
|
||||||
+#undef HAVE_WINDOWS_H
|
|
||||||
+
|
|
||||||
/* Define to 1 if you have the <zlib.h> header file. */
|
|
||||||
#undef HAVE_ZLIB_H
|
|
||||||
|
|
||||||
diff -Nbaur binutils-2.22/bfd/configure binutils-2.22-ppc/bfd/configure
|
|
||||||
--- binutils-2.22/bfd/configure 2011-11-21 11:55:48.000000000 +0000
|
|
||||||
+++ binutils-2.22-ppc/bfd/configure 2012-04-03 14:50:59.000000000 +0100
|
|
||||||
@@ -13508,6 +13508,22 @@
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
+
|
|
||||||
+for ac_header in windows.h dlfcn.h
|
|
||||||
+do :
|
|
||||||
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
||||||
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
||||||
+eval as_val=\$$as_ac_Header
|
|
||||||
+ if test "x$as_val" = x""yes; then :
|
|
||||||
+ cat >>confdefs.h <<_ACEOF
|
|
||||||
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
||||||
+_ACEOF
|
|
||||||
+
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+done
|
|
||||||
+
|
|
||||||
+
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
|
|
||||||
$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
|
|
||||||
if test "${gcc_cv_header_string+set}" = set; then :
|
|
||||||
diff -Nbaur binutils-2.22/bfd/configure.in binutils-2.22-ppc/bfd/configure.in
|
|
||||||
--- binutils-2.22/bfd/configure.in 2011-11-21 11:55:46.000000000 +0000
|
|
||||||
+++ binutils-2.22-ppc/bfd/configure.in 2012-04-03 14:51:23.000000000 +0100
|
|
||||||
@@ -190,6 +190,9 @@
|
|
||||||
GCC_HEADER_STDINT(bfd_stdint.h)
|
|
||||||
AC_HEADER_TIME
|
|
||||||
AC_HEADER_DIRENT
|
|
||||||
+
|
|
||||||
+AC_CHECK_HEADERS(windows.h dlfcn.h)
|
|
||||||
+
|
|
||||||
ACX_HEADER_STRING
|
|
||||||
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
|
|
||||||
AC_CHECK_FUNCS(strtoull)
|
|
||||||
diff -Nbaur binutils-2.22/bfd/plugin.c binutils-2.22-ppc/bfd/plugin.c
|
|
||||||
--- binutils-2.22/bfd/plugin.c 2011-07-11 16:03:07.000000000 +0100
|
|
||||||
+++ binutils-2.22-ppc/bfd/plugin.c 2012-04-03 14:51:32.000000000 +0100
|
|
||||||
@@ -25,7 +25,13 @@
|
|
||||||
#if BFD_SUPPORTS_PLUGINS
|
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
+#ifdef HAVE_DLFCN_H
|
|
||||||
#include <dlfcn.h>
|
|
||||||
+#elif defined (HAVE_WINDOWS_H)
|
|
||||||
+#include <windows.h>
|
|
||||||
+#else
|
|
||||||
+#error Unknown how to handle dynamic-load-libraries.
|
|
||||||
+#endif
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include "plugin-api.h"
|
|
||||||
#include "sysdep.h"
|
|
||||||
@@ -34,6 +40,37 @@
|
|
||||||
#include "libiberty.h"
|
|
||||||
#include <dirent.h>
|
|
||||||
|
|
||||||
+#if !defined (HAVE_DLFCN_H) && defined (HAVE_WINDOWS_H)
|
|
||||||
+
|
|
||||||
+#define RTLD_NOW 0 /* Dummy value. */
|
|
||||||
+
|
|
||||||
+static void *
|
|
||||||
+dlopen (const char *file, int mode ATTRIBUTE_UNUSED)
|
|
||||||
+{
|
|
||||||
+ return LoadLibrary (file);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static void *
|
|
||||||
+dlsym (void *handle, const char *name)
|
|
||||||
+{
|
|
||||||
+ return GetProcAddress (handle, name);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static int ATTRIBUTE_UNUSED
|
|
||||||
+dlclose (void *handle)
|
|
||||||
+{
|
|
||||||
+ FreeLibrary (handle);
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static const char *
|
|
||||||
+dlerror (void)
|
|
||||||
+{
|
|
||||||
+ return "Unable to load DLL.";
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+#endif /* !defined (HAVE_DLFCN_H) && defined (HAVE_WINDOWS_H) */
|
|
||||||
+
|
|
||||||
#define bfd_plugin_close_and_cleanup _bfd_generic_close_and_cleanup
|
|
||||||
#define bfd_plugin_bfd_free_cached_info _bfd_generic_bfd_free_cached_info
|
|
||||||
#define bfd_plugin_new_section_hook _bfd_generic_new_section_hook
|
|
||||||
12
dkppc/patches/binutils-2.24.patch
Normal file
12
dkppc/patches/binutils-2.24.patch
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
diff -Nbaur binutils-2.24/opcodes/ppc-opc.c binutils-2.24-ppc/opcodes/ppc-opc.c
|
||||||
|
--- binutils-2.24/opcodes/ppc-opc.c 2013-11-04 15:33:40.000000000 +0000
|
||||||
|
+++ binutils-2.24-ppc/opcodes/ppc-opc.c 2014-04-01 14:22:06.000000000 +0100
|
||||||
|
@@ -2735,7 +2735,7 @@
|
||||||
|
#define MFDEC1 PPC_OPCODE_POWER
|
||||||
|
#define MFDEC2 PPC_OPCODE_PPC | PPC_OPCODE_601 | PPC_OPCODE_BOOKE | PPC_OPCODE_TITAN
|
||||||
|
#define BOOKE PPC_OPCODE_BOOKE
|
||||||
|
-#define NO371 PPC_OPCODE_BOOKE | PPC_OPCODE_PPCPS | PPC_OPCODE_EFS | PPC_OPCODE_VLE
|
||||||
|
+#define NO371 PPC_OPCODE_BOOKE | PPC_OPCODE_EFS | PPC_OPCODE_VLE
|
||||||
|
#define PPCE300 PPC_OPCODE_E300
|
||||||
|
#define PPCSPE PPC_OPCODE_SPE | PPC_OPCODE_VLE
|
||||||
|
#define PPCISEL PPC_OPCODE_ISEL | PPC_OPCODE_VLE
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
diff -Nbaur gcc-4.6.3/gcc/config/rs6000/rs6000.h gcc-4.6.3-ppc/gcc/config/rs6000/rs6000.h
|
diff -Nbaur gcc-4.8.2/gcc/config/rs6000/rs6000.h gcc-4.8.2-ppc/gcc/config/rs6000/rs6000.h
|
||||||
--- gcc-4.6.3/gcc/config/rs6000/rs6000.h 2011-07-27 19:17:15.000000000 +0100
|
--- gcc-4.8.2/gcc/config/rs6000/rs6000.h 2013-06-19 02:18:38.000000000 +0100
|
||||||
+++ gcc-4.6.3-ppc/gcc/config/rs6000/rs6000.h 2012-04-21 22:54:04.000000000 +0100
|
+++ gcc-4.8.2-ppc/gcc/config/rs6000/rs6000.h 2014-04-01 14:13:11.000000000 +0100
|
||||||
@@ -200,6 +200,7 @@
|
@@ -195,6 +195,7 @@
|
||||||
{ "asm_cpu_476", ASM_CPU_476_SPEC }, \
|
{ "asm_cpu_476", ASM_CPU_476_SPEC }, \
|
||||||
SUBTARGET_EXTRA_SPECS
|
SUBTARGET_EXTRA_SPECS
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/rs6000.h gcc-4.6.3-ppc/gcc/config/rs6000
|
|||||||
/* -mcpu=native handling only makes sense with compiler running on
|
/* -mcpu=native handling only makes sense with compiler running on
|
||||||
an PowerPC chip. If changing this condition, also change
|
an PowerPC chip. If changing this condition, also change
|
||||||
the condition in driver-rs6000.c. */
|
the condition in driver-rs6000.c. */
|
||||||
@@ -214,6 +215,8 @@
|
@@ -209,6 +210,8 @@
|
||||||
#else
|
#else
|
||||||
#define ASM_CPU_NATIVE_SPEC "%(asm_default)"
|
#define ASM_CPU_NATIVE_SPEC "%(asm_default)"
|
||||||
#endif
|
#endif
|
||||||
@@ -18,10 +18,10 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/rs6000.h gcc-4.6.3-ppc/gcc/config/rs6000
|
|||||||
|
|
||||||
#ifndef CC1_CPU_SPEC
|
#ifndef CC1_CPU_SPEC
|
||||||
#ifdef HAVE_LOCAL_CPU_DETECT
|
#ifdef HAVE_LOCAL_CPU_DETECT
|
||||||
diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/sysv4.h
|
diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/sysv4.h
|
||||||
--- gcc-4.6.3/gcc/config/rs6000/sysv4.h 2011-03-07 07:50:23.000000000 +0000
|
--- gcc-4.8.2/gcc/config/rs6000/sysv4.h 2013-06-19 02:18:38.000000000 +0100
|
||||||
+++ gcc-4.6.3-ppc/gcc/config/rs6000/sysv4.h 2012-04-21 22:54:04.000000000 +0100
|
+++ gcc-4.8.2-ppc/gcc/config/rs6000/sysv4.h 2014-04-01 14:13:11.000000000 +0100
|
||||||
@@ -603,7 +603,11 @@
|
@@ -570,7 +570,11 @@
|
||||||
|
|
||||||
/* Default starting address if specified. */
|
/* Default starting address if specified. */
|
||||||
#define LINK_START_SPEC "\
|
#define LINK_START_SPEC "\
|
||||||
@@ -34,7 +34,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
myellowknife : %(link_start_yellowknife) ; \
|
myellowknife : %(link_start_yellowknife) ; \
|
||||||
mmvme : %(link_start_mvme) ; \
|
mmvme : %(link_start_mvme) ; \
|
||||||
msim : %(link_start_sim) ; \
|
msim : %(link_start_sim) ; \
|
||||||
@@ -641,7 +645,8 @@
|
@@ -604,7 +608,8 @@
|
||||||
|
|
||||||
/* Any specific OS flags. */
|
/* Any specific OS flags. */
|
||||||
#define LINK_OS_SPEC "\
|
#define LINK_OS_SPEC "\
|
||||||
@@ -44,7 +44,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
myellowknife : %(link_os_yellowknife) ; \
|
myellowknife : %(link_os_yellowknife) ; \
|
||||||
mmvme : %(link_os_mvme) ; \
|
mmvme : %(link_os_mvme) ; \
|
||||||
msim : %(link_os_sim) ; \
|
msim : %(link_os_sim) ; \
|
||||||
@@ -660,7 +665,10 @@
|
@@ -622,7 +627,10 @@
|
||||||
/* Override rs6000.h definition. */
|
/* Override rs6000.h definition. */
|
||||||
#undef CPP_SPEC
|
#undef CPP_SPEC
|
||||||
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE} \
|
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE} \
|
||||||
@@ -56,7 +56,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
myellowknife : %(cpp_os_yellowknife) ; \
|
myellowknife : %(cpp_os_yellowknife) ; \
|
||||||
mmvme : %(cpp_os_mvme) ; \
|
mmvme : %(cpp_os_mvme) ; \
|
||||||
msim : %(cpp_os_sim) ; \
|
msim : %(cpp_os_sim) ; \
|
||||||
@@ -675,7 +683,10 @@
|
@@ -636,7 +644,10 @@
|
||||||
|
|
||||||
#undef STARTFILE_SPEC
|
#undef STARTFILE_SPEC
|
||||||
#define STARTFILE_SPEC "\
|
#define STARTFILE_SPEC "\
|
||||||
@@ -68,7 +68,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
myellowknife : %(startfile_yellowknife) ; \
|
myellowknife : %(startfile_yellowknife) ; \
|
||||||
mmvme : %(startfile_mvme) ; \
|
mmvme : %(startfile_mvme) ; \
|
||||||
msim : %(startfile_sim) ; \
|
msim : %(startfile_sim) ; \
|
||||||
@@ -686,11 +697,12 @@
|
@@ -646,11 +657,12 @@
|
||||||
mcall-openbsd: %(startfile_openbsd) ; \
|
mcall-openbsd: %(startfile_openbsd) ; \
|
||||||
: %(startfile_default) }"
|
: %(startfile_default) }"
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
myellowknife : %(lib_yellowknife) ; \
|
myellowknife : %(lib_yellowknife) ; \
|
||||||
mmvme : %(lib_mvme) ; \
|
mmvme : %(lib_mvme) ; \
|
||||||
msim : %(lib_sim) ; \
|
msim : %(lib_sim) ; \
|
||||||
@@ -701,11 +713,12 @@
|
@@ -660,11 +672,12 @@
|
||||||
mcall-openbsd: %(lib_openbsd) ; \
|
mcall-openbsd: %(lib_openbsd) ; \
|
||||||
: %(lib_default) }"
|
: %(lib_default) }"
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
myellowknife : %(endfile_yellowknife) ; \
|
myellowknife : %(endfile_yellowknife) ; \
|
||||||
mmvme : %(endfile_mvme) ; \
|
mmvme : %(endfile_mvme) ; \
|
||||||
msim : %(endfile_sim) ; \
|
msim : %(endfile_sim) ; \
|
||||||
@@ -722,16 +735,27 @@
|
@@ -680,16 +693,27 @@
|
||||||
|
|
||||||
/* Motorola ADS support. */
|
/* Motorola ADS support. */
|
||||||
#define LIB_ADS_SPEC "--start-group -lads -lc --end-group"
|
#define LIB_ADS_SPEC "--start-group -lads -lc --end-group"
|
||||||
@@ -126,7 +126,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
|
|
||||||
/* Motorola Yellowknife support. */
|
/* Motorola Yellowknife support. */
|
||||||
#define LIB_YELLOWKNIFE_SPEC "--start-group -lyk -lc --end-group"
|
#define LIB_YELLOWKNIFE_SPEC "--start-group -lyk -lc --end-group"
|
||||||
@@ -926,6 +950,7 @@
|
@@ -859,6 +883,7 @@
|
||||||
#undef SUBTARGET_EXTRA_SPECS
|
#undef SUBTARGET_EXTRA_SPECS
|
||||||
#define SUBTARGET_EXTRA_SPECS \
|
#define SUBTARGET_EXTRA_SPECS \
|
||||||
{ "crtsavres_default", CRTSAVRES_DEFAULT_SPEC }, \
|
{ "crtsavres_default", CRTSAVRES_DEFAULT_SPEC }, \
|
||||||
@@ -134,7 +134,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
{ "lib_ads", LIB_ADS_SPEC }, \
|
{ "lib_ads", LIB_ADS_SPEC }, \
|
||||||
{ "lib_yellowknife", LIB_YELLOWKNIFE_SPEC }, \
|
{ "lib_yellowknife", LIB_YELLOWKNIFE_SPEC }, \
|
||||||
{ "lib_mvme", LIB_MVME_SPEC }, \
|
{ "lib_mvme", LIB_MVME_SPEC }, \
|
||||||
@@ -936,6 +961,7 @@
|
@@ -868,6 +893,7 @@
|
||||||
{ "lib_netbsd", LIB_NETBSD_SPEC }, \
|
{ "lib_netbsd", LIB_NETBSD_SPEC }, \
|
||||||
{ "lib_openbsd", LIB_OPENBSD_SPEC }, \
|
{ "lib_openbsd", LIB_OPENBSD_SPEC }, \
|
||||||
{ "lib_default", LIB_DEFAULT_SPEC }, \
|
{ "lib_default", LIB_DEFAULT_SPEC }, \
|
||||||
@@ -142,7 +142,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
{ "startfile_ads", STARTFILE_ADS_SPEC }, \
|
{ "startfile_ads", STARTFILE_ADS_SPEC }, \
|
||||||
{ "startfile_yellowknife", STARTFILE_YELLOWKNIFE_SPEC }, \
|
{ "startfile_yellowknife", STARTFILE_YELLOWKNIFE_SPEC }, \
|
||||||
{ "startfile_mvme", STARTFILE_MVME_SPEC }, \
|
{ "startfile_mvme", STARTFILE_MVME_SPEC }, \
|
||||||
@@ -946,6 +972,7 @@
|
@@ -877,6 +903,7 @@
|
||||||
{ "startfile_netbsd", STARTFILE_NETBSD_SPEC }, \
|
{ "startfile_netbsd", STARTFILE_NETBSD_SPEC }, \
|
||||||
{ "startfile_openbsd", STARTFILE_OPENBSD_SPEC }, \
|
{ "startfile_openbsd", STARTFILE_OPENBSD_SPEC }, \
|
||||||
{ "startfile_default", STARTFILE_DEFAULT_SPEC }, \
|
{ "startfile_default", STARTFILE_DEFAULT_SPEC }, \
|
||||||
@@ -150,7 +150,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
{ "endfile_ads", ENDFILE_ADS_SPEC }, \
|
{ "endfile_ads", ENDFILE_ADS_SPEC }, \
|
||||||
{ "endfile_yellowknife", ENDFILE_YELLOWKNIFE_SPEC }, \
|
{ "endfile_yellowknife", ENDFILE_YELLOWKNIFE_SPEC }, \
|
||||||
{ "endfile_mvme", ENDFILE_MVME_SPEC }, \
|
{ "endfile_mvme", ENDFILE_MVME_SPEC }, \
|
||||||
@@ -959,7 +986,11 @@
|
@@ -889,7 +916,11 @@
|
||||||
{ "link_shlib", LINK_SHLIB_SPEC }, \
|
{ "link_shlib", LINK_SHLIB_SPEC }, \
|
||||||
{ "link_target", LINK_TARGET_SPEC }, \
|
{ "link_target", LINK_TARGET_SPEC }, \
|
||||||
{ "link_start", LINK_START_SPEC }, \
|
{ "link_start", LINK_START_SPEC }, \
|
||||||
@@ -162,7 +162,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
{ "link_start_yellowknife", LINK_START_YELLOWKNIFE_SPEC }, \
|
{ "link_start_yellowknife", LINK_START_YELLOWKNIFE_SPEC }, \
|
||||||
{ "link_start_mvme", LINK_START_MVME_SPEC }, \
|
{ "link_start_mvme", LINK_START_MVME_SPEC }, \
|
||||||
{ "link_start_sim", LINK_START_SIM_SPEC }, \
|
{ "link_start_sim", LINK_START_SIM_SPEC }, \
|
||||||
@@ -970,6 +1001,7 @@
|
@@ -899,6 +930,7 @@
|
||||||
{ "link_start_openbsd", LINK_START_OPENBSD_SPEC }, \
|
{ "link_start_openbsd", LINK_START_OPENBSD_SPEC }, \
|
||||||
{ "link_start_default", LINK_START_DEFAULT_SPEC }, \
|
{ "link_start_default", LINK_START_DEFAULT_SPEC }, \
|
||||||
{ "link_os", LINK_OS_SPEC }, \
|
{ "link_os", LINK_OS_SPEC }, \
|
||||||
@@ -170,7 +170,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
{ "link_os_ads", LINK_OS_ADS_SPEC }, \
|
{ "link_os_ads", LINK_OS_ADS_SPEC }, \
|
||||||
{ "link_os_yellowknife", LINK_OS_YELLOWKNIFE_SPEC }, \
|
{ "link_os_yellowknife", LINK_OS_YELLOWKNIFE_SPEC }, \
|
||||||
{ "link_os_mvme", LINK_OS_MVME_SPEC }, \
|
{ "link_os_mvme", LINK_OS_MVME_SPEC }, \
|
||||||
@@ -984,6 +1016,9 @@
|
@@ -912,6 +944,9 @@
|
||||||
{ "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \
|
{ "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \
|
||||||
{ "cc1_endian_default", CC1_ENDIAN_DEFAULT_SPEC }, \
|
{ "cc1_endian_default", CC1_ENDIAN_DEFAULT_SPEC }, \
|
||||||
{ "cc1_secure_plt_default", CC1_SECURE_PLT_DEFAULT_SPEC }, \
|
{ "cc1_secure_plt_default", CC1_SECURE_PLT_DEFAULT_SPEC }, \
|
||||||
@@ -180,10 +180,10 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.h gcc-4.6.3-ppc/gcc/config/rs6000/
|
|||||||
{ "cpp_os_ads", CPP_OS_ADS_SPEC }, \
|
{ "cpp_os_ads", CPP_OS_ADS_SPEC }, \
|
||||||
{ "cpp_os_yellowknife", CPP_OS_YELLOWKNIFE_SPEC }, \
|
{ "cpp_os_yellowknife", CPP_OS_YELLOWKNIFE_SPEC }, \
|
||||||
{ "cpp_os_mvme", CPP_OS_MVME_SPEC }, \
|
{ "cpp_os_mvme", CPP_OS_MVME_SPEC }, \
|
||||||
diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.opt gcc-4.6.3-ppc/gcc/config/rs6000/sysv4.opt
|
diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.opt gcc-4.8.2-ppc/gcc/config/rs6000/sysv4.opt
|
||||||
--- gcc-4.6.3/gcc/config/rs6000/sysv4.opt 2011-01-03 20:52:22.000000000 +0000
|
--- gcc-4.8.2/gcc/config/rs6000/sysv4.opt 2013-01-10 20:38:27.000000000 +0000
|
||||||
+++ gcc-4.6.3-ppc/gcc/config/rs6000/sysv4.opt 2012-04-21 22:54:04.000000000 +0100
|
+++ gcc-4.8.2-ppc/gcc/config/rs6000/sysv4.opt 2014-04-01 14:13:11.000000000 +0100
|
||||||
@@ -108,6 +108,26 @@
|
@@ -120,6 +120,26 @@
|
||||||
Target RejectNegative
|
Target RejectNegative
|
||||||
Link with libads.a, libc.a and crt0.o
|
Link with libads.a, libc.a and crt0.o
|
||||||
|
|
||||||
@@ -210,22 +210,22 @@ diff -Nbaur gcc-4.6.3/gcc/config/rs6000/sysv4.opt gcc-4.6.3-ppc/gcc/config/rs600
|
|||||||
myellowknife
|
myellowknife
|
||||||
Target RejectNegative
|
Target RejectNegative
|
||||||
Link with libyk.a, libc.a and crt0.o
|
Link with libyk.a, libc.a and crt0.o
|
||||||
diff -Nbaur gcc-4.6.3/gcc/config.gcc gcc-4.6.3-ppc/gcc/config.gcc
|
diff -Nbaur gcc-4.8.2/gcc/config.gcc gcc-4.8.2-ppc/gcc/config.gcc
|
||||||
--- gcc-4.6.3/gcc/config.gcc 2011-07-22 17:44:50.000000000 +0100
|
--- gcc-4.8.2/gcc/config.gcc 2013-10-03 01:47:24.000000000 +0100
|
||||||
+++ gcc-4.6.3-ppc/gcc/config.gcc 2012-04-21 22:54:04.000000000 +0100
|
+++ gcc-4.8.2-ppc/gcc/config.gcc 2014-04-01 14:13:11.000000000 +0100
|
||||||
@@ -2133,7 +2133,7 @@
|
@@ -2057,7 +2057,7 @@
|
||||||
use_gcc_stdint=wrap
|
use_gcc_stdint=wrap
|
||||||
;;
|
;;
|
||||||
powerpc-*-eabi*)
|
powerpc-*-eabi*)
|
||||||
- tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h"
|
- tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h"
|
||||||
+ tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/750cl.h"
|
+ tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/750cl.h"
|
||||||
extra_options="${extra_options} rs6000/sysv4.opt"
|
extra_options="${extra_options} rs6000/sysv4.opt"
|
||||||
tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
|
tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
|
||||||
use_gcc_stdint=wrap
|
use_gcc_stdint=wrap
|
||||||
diff -Nbaur gcc-4.6.3/libcpp/Makefile.in gcc-4.6.3-ppc/libcpp/Makefile.in
|
diff -Nbaur gcc-4.8.2/libcpp/Makefile.in gcc-4.8.2-ppc/libcpp/Makefile.in
|
||||||
--- gcc-4.6.3/libcpp/Makefile.in 2012-03-01 12:03:46.000000000 +0000
|
--- gcc-4.8.2/libcpp/Makefile.in 2013-10-16 08:27:58.000000000 +0100
|
||||||
+++ gcc-4.6.3-ppc/libcpp/Makefile.in 2012-04-21 22:54:04.000000000 +0100
|
+++ gcc-4.8.2-ppc/libcpp/Makefile.in 2014-04-01 14:13:11.000000000 +0100
|
||||||
@@ -212,8 +212,7 @@
|
@@ -207,8 +207,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.
|
||||||
@@ -235,3 +235,48 @@ diff -Nbaur gcc-4.6.3/libcpp/Makefile.in gcc-4.6.3-ppc/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.8.2/libgcc/config/rs6000/crtrestvr.S gcc-4.8.2-ppc/libgcc/config/rs6000/crtrestvr.S
|
||||||
|
--- gcc-4.8.2/libgcc/config/rs6000/crtrestvr.S 2013-02-04 19:06:20.000000000 +0000
|
||||||
|
+++ gcc-4.8.2-ppc/libgcc/config/rs6000/crtrestvr.S 2014-04-01 14:13:11.000000000 +0100
|
||||||
|
@@ -24,7 +24,7 @@
|
||||||
|
|
||||||
|
/* On PowerPC64 Linux, these functions are provided by the linker. */
|
||||||
|
#ifndef __powerpc64__
|
||||||
|
-
|
||||||
|
+#if 0
|
||||||
|
#undef __ALTIVEC__
|
||||||
|
#define __ALTIVEC__ 1
|
||||||
|
#include "ppc-asm.h"
|
||||||
|
@@ -85,3 +85,4 @@
|
||||||
|
CFI_ENDPROC
|
||||||
|
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
diff -Nbaur gcc-4.8.2/libgcc/config/rs6000/crtsavevr.S gcc-4.8.2-ppc/libgcc/config/rs6000/crtsavevr.S
|
||||||
|
--- gcc-4.8.2/libgcc/config/rs6000/crtsavevr.S 2013-02-04 19:06:20.000000000 +0000
|
||||||
|
+++ gcc-4.8.2-ppc/libgcc/config/rs6000/crtsavevr.S 2014-04-01 14:13:11.000000000 +0100
|
||||||
|
@@ -24,6 +24,7 @@
|
||||||
|
|
||||||
|
/* On PowerPC64 Linux, these functions are provided by the linker. */
|
||||||
|
#ifndef __powerpc64__
|
||||||
|
+#if 0
|
||||||
|
|
||||||
|
#undef __ALTIVEC__
|
||||||
|
#define __ALTIVEC__ 1
|
||||||
|
@@ -85,3 +86,4 @@
|
||||||
|
CFI_ENDPROC
|
||||||
|
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
diff -Nbaur gcc-4.8.2/libgcc/crtstuff.c gcc-4.8.2-ppc/libgcc/crtstuff.c
|
||||||
|
--- gcc-4.8.2/libgcc/crtstuff.c 2013-02-04 19:06:20.000000000 +0000
|
||||||
|
+++ gcc-4.8.2-ppc/libgcc/crtstuff.c 2014-04-01 14:13:11.000000000 +0100
|
||||||
|
@@ -47,7 +47,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. */
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
diff -Nbaur gdb-7.4/gdb/Makefile.in gdb-7.4-ppc/gdb/Makefile.in
|
diff -Nbaur gdb-7.7/gdb/Makefile.in gdb-7.7-ppc/gdb/Makefile.in
|
||||||
--- gdb-7.4/gdb/Makefile.in 2012-01-06 04:43:01.000000000 +0000
|
--- gdb-7.7/gdb/Makefile.in 2014-02-06 02:21:29.000000000 +0000
|
||||||
+++ gdb-7.4-ppc/gdb/Makefile.in 2012-01-28 15:56:00.000000000 +0000
|
+++ gdb-7.7-ppc/gdb/Makefile.in 2014-04-01 14:01:24.000000000 +0100
|
||||||
@@ -2195,10 +2195,10 @@
|
@@ -2307,10 +2307,10 @@
|
||||||
# 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.
|
||||||
@@ -16,10 +16,10 @@ diff -Nbaur gdb-7.4/gdb/Makefile.in gdb-7.4-ppc/gdb/Makefile.in
|
|||||||
@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)
|
||||||
diff -Nbaur gdb-7.4/sim/ppc/Makefile.in gdb-7.4-ppc/sim/ppc/Makefile.in
|
diff -Nbaur gdb-7.7/sim/ppc/Makefile.in gdb-7.7-ppc/sim/ppc/Makefile.in
|
||||||
--- gdb-7.4/sim/ppc/Makefile.in 2009-09-16 00:26:44.000000000 +0100
|
--- gdb-7.7/sim/ppc/Makefile.in 2013-12-08 04:55:48.000000000 +0000
|
||||||
+++ gdb-7.4-ppc/sim/ppc/Makefile.in 2012-02-25 13:30:02.000000000 +0000
|
+++ gdb-7.7-ppc/sim/ppc/Makefile.in 2014-04-01 14:01:24.000000000 +0100
|
||||||
@@ -551,7 +551,7 @@
|
@@ -552,7 +552,7 @@
|
||||||
PACKAGE_OBJ = @sim_pk_obj@
|
PACKAGE_OBJ = @sim_pk_obj@
|
||||||
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
4
dkppc/scripts/build-gcc.sh
Normal file → Executable file
4
dkppc/scripts/build-gcc.sh
Normal file → Executable file
@@ -75,7 +75,7 @@ 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" CXXFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" CXXFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../gcc-$GCC_VER/configure \
|
||||||
--enable-languages=c,c++,objc \
|
--enable-languages=c,c++,objc \
|
||||||
--enable-lto $plugin_ld \
|
--enable-lto $plugin_ld \
|
||||||
--with-cpu=750 \
|
--with-cpu=750 \
|
||||||
@@ -87,7 +87,7 @@ then
|
|||||||
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
|
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
|
||||||
--prefix=$prefix\
|
--prefix=$prefix\
|
||||||
--disable-dependency-tracking \
|
--disable-dependency-tracking \
|
||||||
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 26" \
|
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 27" \
|
||||||
$CROSS_PARAMS \
|
$CROSS_PARAMS \
|
||||||
|| { echo "Error configuring gcc stage 1"; exit 1; }
|
|| { echo "Error configuring gcc stage 1"; exit 1; }
|
||||||
touch configured-gcc
|
touch configured-gcc
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|
||||||
|
|||||||
32
select_toolchain.sh
Normal file → Executable file
32
select_toolchain.sh
Normal file → Executable file
@@ -1,5 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
VERSION=0
|
VERSION=0
|
||||||
|
case "$BUILD_DKPRO_PACKAGE" in
|
||||||
|
"1" )
|
||||||
|
VERSION=1
|
||||||
|
;;
|
||||||
|
"2" )
|
||||||
|
VERSION=2
|
||||||
|
;;
|
||||||
|
"3" )
|
||||||
|
VERSION=3
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
while [ $VERSION -eq 0 ]
|
while [ $VERSION -eq 0 ]
|
||||||
do
|
do
|
||||||
echo
|
echo
|
||||||
@@ -18,20 +30,20 @@ done
|
|||||||
|
|
||||||
case "$VERSION" in
|
case "$VERSION" in
|
||||||
"1" )
|
"1" )
|
||||||
GCC_VER=4.7.0
|
GCC_VER=4.8.2
|
||||||
BINUTILS_VER=2.22
|
BINUTILS_VER=2.24
|
||||||
NEWLIB_VER=1.20.0
|
NEWLIB_VER=2.1.0
|
||||||
GDB_VER=7.4
|
GDB_VER=7.7
|
||||||
basedir='dkarm-eabi'
|
basedir='dkarm-eabi'
|
||||||
package=devkitARM
|
package=devkitARM
|
||||||
target=arm-eabi
|
target=arm-none-eabi
|
||||||
toolchain=DEVKITARM
|
toolchain=DEVKITARM
|
||||||
;;
|
;;
|
||||||
"2" )
|
"2" )
|
||||||
GCC_VER=4.6.3
|
GCC_VER=4.8.2
|
||||||
BINUTILS_VER=2.22
|
BINUTILS_VER=2.24
|
||||||
NEWLIB_VER=1.20.0
|
NEWLIB_VER=2.0.0
|
||||||
GDB_VER=7.4
|
GDB_VER=7.7
|
||||||
basedir='dkppc'
|
basedir='dkppc'
|
||||||
package=devkitPPC
|
package=devkitPPC
|
||||||
target=powerpc-eabi
|
target=powerpc-eabi
|
||||||
@@ -47,4 +59,4 @@ case "$VERSION" in
|
|||||||
target=psp
|
target=psp
|
||||||
toolchain=DEVKITPSP
|
toolchain=DEVKITPSP
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user