mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-21 09:54:03 -05:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8731b42b20 | ||
|
|
f49dee7361 | ||
|
|
d16584234d | ||
|
|
34eca34dcf | ||
|
|
c42584594b | ||
|
|
9ea6924b39 | ||
|
|
3af916aa90 |
23
README.TXT
23
README.TXT
@@ -26,19 +26,26 @@ http://www.multiprecision.org/
|
|||||||
sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev
|
sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev
|
||||||
|
|
||||||
Some of the tools for devkitARM and devkitPPC also require FreeImage, zlib,
|
Some of the tools for devkitARM and devkitPPC also require FreeImage, zlib,
|
||||||
and libusb. Again these are built as static libraries for ease of packaging
|
expat, and libusb. Again these are built as static libraries for ease of
|
||||||
but you can probably use the versions supplied by your distro.
|
packaging but you can probably use the versions supplied by your distro.
|
||||||
|
|
||||||
http://freeimage.sourceforge.net/
|
http://freeimage.sourceforge.net/
|
||||||
http://www.zlib.net
|
http://www.zlib.net
|
||||||
http://www.libusb.org
|
http://www.libusb.org
|
||||||
|
http://expat.sourceforge.net/
|
||||||
|
|
||||||
|
sudo apt-get install libfreeimage-dev zlib1g-dev libusb-dev libexpat1-dev
|
||||||
|
|
||||||
sudo apt-get install libfreeimage-dev zlib1g-dev libusb-dev
|
|
||||||
|
|
||||||
Building gxtexconv for cube/wii needs GL/gl.h which can be obtained with
|
Building gxtexconv for cube/wii needs GL/gl.h which can be obtained with
|
||||||
|
|
||||||
sudo apt-get install mesa-common-dev
|
sudo apt-get install mesa-common-dev
|
||||||
|
|
||||||
|
For building the OSX versions we install the Xcode commandline tools and build
|
||||||
|
pkg-config from source as well as static versions of the libraries listed above.
|
||||||
|
This helps keep the dependencies to a minimum so end users can use the tools
|
||||||
|
with only Xcode command line tools to obtain make.
|
||||||
|
|
||||||
To avoid having to manually answer prompts during the build the script will
|
To avoid having to manually answer prompts during the build the script will
|
||||||
read variables from config.sh if it exists. Copy config.sh.sample to config.sh
|
read variables from config.sh if it exists. Copy config.sh.sample to config.sh
|
||||||
and set the variables as appropriate for your build.
|
and set the variables as appropriate for your build.
|
||||||
@@ -85,16 +92,6 @@ to use the built in crt0 and linkscript use powerpc-eabi-gcc to link your projec
|
|||||||
using the command line switch -mgcn for a bare bones system, -mogc to use libogc and
|
using the command line switch -mgcn for a bare bones system, -mogc to use libogc and
|
||||||
the multi-threaded microkernel for gamecube, -mrvl for wii, -mwup for wii u.
|
the multi-threaded microkernel for gamecube, -mrvl for wii, -mwup for wii u.
|
||||||
|
|
||||||
Using devkitPSP
|
|
||||||
---------------
|
|
||||||
|
|
||||||
All you need to do now to use devkitPSP is make sure that your freshly built tools
|
|
||||||
are in your PATH, something like this;
|
|
||||||
|
|
||||||
export PATH=$PATH:<path to devkitPSP>/bin
|
|
||||||
|
|
||||||
(Obviously replace <path to devkitPSP> with the full path to the devkitPSP
|
|
||||||
installation directory)
|
|
||||||
|
|
||||||
Getting started
|
Getting started
|
||||||
---------------
|
---------------
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ GAMECUBE_TOOLS_VER=1.0.1
|
|||||||
LIBOGC_VER=1.8.16
|
LIBOGC_VER=1.8.16
|
||||||
WIILOAD_VER=0.5.1
|
WIILOAD_VER=0.5.1
|
||||||
|
|
||||||
LIBCTRU_VER=1.2.0
|
LIBCTRU_VER=1.2.1
|
||||||
CITRO3D_VER=1.2.0
|
CITRO3D_VER=1.2.0
|
||||||
TOOLS3DS_VER=1.1.4
|
TOOLS3DS_VER=1.1.4
|
||||||
LINK3DS_VER=0.5.1
|
LINK3DS_VER=0.5.1
|
||||||
@@ -56,6 +56,9 @@ PICASSO_VER=2.5.0
|
|||||||
GP32_TOOLS_VER=1.0.2
|
GP32_TOOLS_VER=1.0.2
|
||||||
LIBMIRKO_VER=0.9.7
|
LIBMIRKO_VER=0.9.7
|
||||||
|
|
||||||
|
OSXMIN=${OSXMIN:-10.5}
|
||||||
|
OSXSDKPATH=${OSXSDKPATH:-/Developer/SDKs/MacOSX10.5.sdk}
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
function extract_and_patch {
|
function extract_and_patch {
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@@ -165,8 +168,12 @@ PLATFORM=`uname -s`
|
|||||||
|
|
||||||
case $PLATFORM in
|
case $PLATFORM in
|
||||||
Darwin )
|
Darwin )
|
||||||
cflags="-mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/usr/local/include"
|
cflags="-mmacosx-version-min=${OSXMIN} -isysroot ${OSXSDKPATH} -I/usr/local/include"
|
||||||
ldflags="-mmacosx-version-min=10.5 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -L/usr/local/lib"
|
ldflags="-mmacosx-version-min=${OSXMIN} -Wl,-syslibroot,${OSXSDKPATH} -L/usr/local/lib"
|
||||||
|
TESTCC=`cc -v 2>&1 | grep clang`
|
||||||
|
if [ "x${TESTCC}x" != "xx" ]; then
|
||||||
|
cflags="$cflags -fbracket-depth=512"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
MINGW32* )
|
MINGW32* )
|
||||||
cflags="-D__USE_MINGW_ACCESS"
|
cflags="-D__USE_MINGW_ACCESS"
|
||||||
@@ -180,7 +187,6 @@ BUILDDIR=$(pwd)/.$package
|
|||||||
if [ ! -z $CROSSBUILD ]; then
|
if [ ! -z $CROSSBUILD ]; then
|
||||||
BUILDDIR=$BUILDDIR-$CROSSBUILD
|
BUILDDIR=$BUILDDIR-$CROSSBUILD
|
||||||
fi
|
fi
|
||||||
DEVKITPRO_URL="http://downloads.sourceforge.net/devkitpro"
|
|
||||||
|
|
||||||
patchdir=$(pwd)/$basedir/patches
|
patchdir=$(pwd)/$basedir/patches
|
||||||
scriptdir=$(pwd)/$basedir/scripts
|
scriptdir=$(pwd)/$basedir/scripts
|
||||||
@@ -222,7 +228,7 @@ for archive in $archives $targetarchives $hostarchives
|
|||||||
do
|
do
|
||||||
echo $archive
|
echo $archive
|
||||||
if [ ! -f $archive ]; then
|
if [ ! -f $archive ]; then
|
||||||
$FETCH http://downloads.sf.net/devkitpro/$archive || { echo "Error: Failed to download $archive"; exit 1; }
|
$FETCH https://github.com/devkitPro/buildscripts/releases/download/sources/$archive || { echo "Error: Failed to download $archive"; exit 1; }
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ then
|
|||||||
CXXFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
|
CXXFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
|
||||||
LDFLAGS_FOR_TARGET="" \
|
LDFLAGS_FOR_TARGET="" \
|
||||||
../../gcc-$GCC_VER/configure \
|
../../gcc-$GCC_VER/configure \
|
||||||
--enable-languages=c,c++,objc,obj-c++ \
|
--enable-languages=c,c++ \
|
||||||
--with-gnu-as --with-gnu-ld --with-gcc \
|
--with-gnu-as --with-gnu-ld --with-gcc \
|
||||||
--with-march=armv4t\
|
--with-march=armv4t\
|
||||||
--enable-cxx-flags='-ffunction-sections' \
|
--enable-cxx-flags='-ffunction-sections' \
|
||||||
|
|||||||
Reference in New Issue
Block a user