|
|
|
name=devkitARM
|
|
|
|
version=20170715
|
|
|
|
version_gcc=7.1.0
|
|
|
|
version_binutils=2.28
|
|
|
|
version_newlib=2.5.0
|
|
|
|
version_gdb=8.0
|
|
|
|
update_url="https://sourceforge.net/projects/devkitpro/files/buildscripts/"
|
|
|
|
|
|
|
|
dlextract "https://sourceforge.net/projects/devkitpro/files/buildscripts/buildscripts-$version.tar.bz2" \
|
|
|
|
'b82b844ce1c59e859ee00285bb85451f'
|
|
|
|
( name=gcc version="$version_gcc"
|
|
|
|
download "https://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.bz2" \
|
|
|
|
'6bf56a2bca9dac9dbbf8e8d1036964a8'
|
|
|
|
)
|
|
|
|
( name=binutils version="$version_binutils"
|
|
|
|
download "https://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2" \
|
|
|
|
'9e8340c96626b469a603c15c9d843727'
|
|
|
|
)
|
|
|
|
( name=newlib version="$version_newlib"
|
|
|
|
download "ftp://sourceware.org/pub/$name/$name-$version.tar.gz" \
|
|
|
|
'767dc60aaf814d091997d91d588968b2'
|
|
|
|
)
|
|
|
|
( name=gdb version="$version_gdb"
|
|
|
|
download "https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz" \
|
|
|
|
'c3d35cd949084be53b92cc1e03485f88'
|
|
|
|
)
|
|
|
|
_
|
|
|
|
|
|
|
|
cd buildscripts
|
|
|
|
|
|
|
|
( name=gcc version="$version_gcc"; getfile "$name-$version.tar.bz2" )
|
|
|
|
( name=binutils version="$version_binutils"; getfile "$name-$version.tar.bz2" )
|
|
|
|
( name=newlib version="$version_newlib"; getfile "$name-$version.tar.gz" )
|
|
|
|
( name=gdb version="$version_gdb"; getfile "$name-$version.tar.xz" )
|
|
|
|
|
|
|
|
# Only build the toolchain, no tools nor libraries
|
|
|
|
sed -i -e 's/^\ttargetarchives/&_no/' \
|
|
|
|
-e 's/^\thostarchives/&_no/' build-devkit.sh
|
|
|
|
sed -i -e '/^cd $BUILDDIR\//,+3d' dkarm-eabi/scripts/build-crtls.sh
|
|
|
|
|
|
|
|
# Use gdb .xz instead of .bz2
|
|
|
|
sed -i -e '/^archives=/s/${GDB_VER}.tar.bz2/${GDB_VER}.tar.xz/' \
|
|
|
|
-e '/^extract_and_patch/s/$GDB_VER bz2/$GDB_VER xz/' build-devkit.sh
|
|
|
|
|
|
|
|
# Configure
|
|
|
|
cat > config.sh << EOF
|
|
|
|
BUILD_DKPRO_PACKAGE=1
|
|
|
|
BUILD_DKPRO_AUTOMATED=1
|
|
|
|
BUILD_DKPRO_INSTALLDIR="$PWD/install"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# Build
|
|
|
|
./build-devkit.sh
|
|
|
|
|
|
|
|
# Install
|
|
|
|
mkdir -p "$dir_install/$dir_prefix/$dir_lib/devkitPRO"
|
|
|
|
cp -Ta "install/$name" "$dir_install/$dir_prefix/$dir_lib/devkitPRO/devkitARM"
|
|
|
|
|
|
|
|
# Install environment
|
|
|
|
cat > devkitarm.sh << EOF
|
|
|
|
export DEVKITPRO="/$dir_prefix/$dir_lib/devkitPRO"
|
|
|
|
export DEVKITARM="\$DEVKITPRO/$name"
|
|
|
|
export PATH="\$PATH:\$DEVKITARM/bin"
|
|
|
|
EOF
|
|
|
|
install -Dm755 -t "$dir_install/$dir_prefix/$dir_sysconf/profile.d" devkitarm.sh
|
|
|
|
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|