mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-21 01:44:16 -05:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5148cb347c | ||
|
|
9e8a149558 | ||
|
|
c9109d8681 | ||
|
|
45b120b6e3 | ||
|
|
ce5d8243d4 | ||
|
|
590464b4e5 | ||
|
|
c852d90043 | ||
|
|
be5546a122 | ||
|
|
0ccd646fec | ||
|
|
d1891441af | ||
|
|
a53e338a21 | ||
|
|
973ae4bdb7 | ||
|
|
bf6f1d0454 | ||
|
|
c34990450a |
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# devkitARM release 46
|
# devkitARM release 46
|
||||||
# devkitPPC release 29
|
# devkitPPC release 29-1
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ 0 -eq 1 ] ; then
|
if [ 0 -eq 1 ] ; then
|
||||||
@@ -28,7 +28,7 @@ GENERAL_TOOLS_VER=1.0.0
|
|||||||
LIBGBA_VER=0.5.0
|
LIBGBA_VER=0.5.0
|
||||||
GBATOOLS_VER=1.0.0
|
GBATOOLS_VER=1.0.0
|
||||||
|
|
||||||
LIBNDS_VER=1.6.0
|
LIBNDS_VER=1.6.2
|
||||||
DEFAULT_ARM7_VER=0.7.0
|
DEFAULT_ARM7_VER=0.7.0
|
||||||
DSWIFI_VER=0.4.0
|
DSWIFI_VER=0.4.0
|
||||||
MAXMOD_VER=1.0.10
|
MAXMOD_VER=1.0.10
|
||||||
@@ -41,7 +41,7 @@ DLDITOOL_VER=1.24.0
|
|||||||
MMUTIL_VER=1.8.6
|
MMUTIL_VER=1.8.6
|
||||||
|
|
||||||
DFU_UTIL_VER=0.9.1
|
DFU_UTIL_VER=0.9.1
|
||||||
STLINK_VER=1.2.1
|
STLINK_VER=1.2.2
|
||||||
|
|
||||||
GAMECUBE_TOOLS_VER=1.0.1
|
GAMECUBE_TOOLS_VER=1.0.1
|
||||||
LIBOGC_VER=1.8.16
|
LIBOGC_VER=1.8.16
|
||||||
@@ -53,7 +53,7 @@ TOOLS3DS_VER=1.1.4
|
|||||||
LINK3DS_VER=0.5.1
|
LINK3DS_VER=0.5.1
|
||||||
PICASSO_VER=2.5.0
|
PICASSO_VER=2.5.0
|
||||||
|
|
||||||
GP32_TOOLS_VER=1.0.1
|
GP32_TOOLS_VER=1.0.2
|
||||||
LIBMIRKO_VER=0.9.7
|
LIBMIRKO_VER=0.9.7
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -24,6 +24,12 @@ BUILD_DKPRO_PACKAGE=0
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
#BUILD_DKPRO_SRCDIR=/d/projects/archives
|
#BUILD_DKPRO_SRCDIR=/d/projects/archives
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# MAKEFLAGS for building - use number of processors for jobs
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
#numcores=`getconf _NPROCESSORS_ONLN`
|
||||||
|
#export MAKEFLAGS="$MAKEFLAGS -j${numcores}"
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Automated script execution
|
# Automated script execution
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@@ -31,3 +37,4 @@ BUILD_DKPRO_PACKAGE=0
|
|||||||
# 1: Use defaults, don't pause for answers
|
# 1: Use defaults, don't pause for answers
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
BUILD_DKPRO_AUTOMATED=0
|
BUILD_DKPRO_AUTOMATED=0
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ MEMORY {
|
|||||||
the patcher / linker to find all shifted addresses within each section.
|
the patcher / linker to find all shifted addresses within each section.
|
||||||
Changed sections are: glue_7, got
|
Changed sections are: glue_7, got
|
||||||
*/
|
*/
|
||||||
ddmem : ORIGIN = 0xBF800000, LENGTH = 32K
|
ddmem : ORIGIN = 0xBF800000, LENGTH = 16K
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
numcores=`getconf _NPROCESSORS_ONLN`
|
|
||||||
|
|
||||||
numjobs=$(($numcores * 2 + 1))
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# build and install binutils
|
# build and install binutils
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@@ -24,7 +20,7 @@ fi
|
|||||||
|
|
||||||
if [ ! -f built-binutils ]
|
if [ ! -f built-binutils ]
|
||||||
then
|
then
|
||||||
$MAKE -j$numjobs || { echo "Error building binutils"; exit 1; }
|
$MAKE || { echo "Error building binutils"; exit 1; }
|
||||||
touch built-binutils
|
touch built-binutils
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -74,7 +70,7 @@ fi
|
|||||||
|
|
||||||
if [ ! -f built-gcc ]
|
if [ ! -f built-gcc ]
|
||||||
then
|
then
|
||||||
$MAKE all-gcc -j$numjobs || { echo "Error building gcc stage1"; exit 1; }
|
$MAKE all-gcc || { echo "Error building gcc stage1"; exit 1; }
|
||||||
touch built-gcc
|
touch built-gcc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -109,14 +105,14 @@ fi
|
|||||||
|
|
||||||
if [ ! -f built-newlib ]
|
if [ ! -f built-newlib ]
|
||||||
then
|
then
|
||||||
$MAKE -j$numjobs || { echo "Error building newlib"; exit 1; }
|
$MAKE || { echo "Error building newlib"; exit 1; }
|
||||||
touch built-newlib
|
touch built-newlib
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ ! -f installed-newlib ]
|
if [ ! -f installed-newlib ]
|
||||||
then
|
then
|
||||||
$MAKE install || { echo "Error installing newlib"; exit 1; }
|
$MAKE install -j1 || { echo "Error installing newlib"; exit 1; }
|
||||||
touch installed-newlib
|
touch installed-newlib
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -130,7 +126,7 @@ cd $target/gcc
|
|||||||
|
|
||||||
if [ ! -f built-stage2 ]
|
if [ ! -f built-stage2 ]
|
||||||
then
|
then
|
||||||
$MAKE all -j$numjobs || { echo "Error building gcc stage2"; exit 1; }
|
$MAKE all || { echo "Error building gcc stage2"; exit 1; }
|
||||||
touch built-stage2
|
touch built-stage2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -166,7 +162,7 @@ fi
|
|||||||
|
|
||||||
if [ ! -f built-gdb ]
|
if [ ! -f built-gdb ]
|
||||||
then
|
then
|
||||||
$MAKE -j$numjobs || { echo "Error building gdb"; exit 1; }
|
$MAKE || { echo "Error building gdb"; exit 1; }
|
||||||
touch built-gdb
|
touch built-gdb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -75,7 +75,13 @@ cd $target/gcc
|
|||||||
|
|
||||||
if [ ! -f configured-gcc ]
|
if [ ! -f configured-gcc ]
|
||||||
then
|
then
|
||||||
CFLAGS="$cflags" CXXFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" CXXFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../gcc-$GCC_VER/configure \
|
CFLAGS="$cflags" \
|
||||||
|
CXXFLAGS="$cflags" \
|
||||||
|
LDFLAGS="$ldflags" \
|
||||||
|
CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
|
||||||
|
CXXFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
|
||||||
|
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 \
|
||||||
@@ -89,7 +95,7 @@ then
|
|||||||
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
|
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
|
||||||
--prefix=$prefix\
|
--prefix=$prefix\
|
||||||
--with-system-zlib\
|
--with-system-zlib\
|
||||||
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 29" \
|
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 29-1" \
|
||||||
$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
|
||||||
@@ -119,6 +125,7 @@ unset LDFLAGS
|
|||||||
|
|
||||||
if [ ! -f configured-newlib ]
|
if [ ! -f configured-newlib ]
|
||||||
then
|
then
|
||||||
|
CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
|
||||||
../../newlib-$NEWLIB_VER/configure \
|
../../newlib-$NEWLIB_VER/configure \
|
||||||
--target=$target \
|
--target=$target \
|
||||||
--prefix=$prefix \
|
--prefix=$prefix \
|
||||||
@@ -135,7 +142,7 @@ then
|
|||||||
fi
|
fi
|
||||||
if [ ! -f installed-newlib ]
|
if [ ! -f installed-newlib ]
|
||||||
then
|
then
|
||||||
$MAKE install || { echo "Error installing newlib"; exit 1; }
|
$MAKE install -j1 || { echo "Error installing newlib"; exit 1; }
|
||||||
touch installed-newlib
|
touch installed-newlib
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user