name=devkitARM version=20180703 version_gcc=8.1.0 version_binutils=2.30 version_newlib=3.0.0 version_gdb=8.0 dlextract "https://github.com/devkitPro/buildscripts/releases/download/v$version/buildscripts-$version.tar.bz2" \ 'e64211a11780bd66256e3bef73ebe1d7' ( name=gcc version="$version_gcc" download "https://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.xz" \ '65f7c65818dc540b3437605026d329fc' ) ( name=binutils version="$version_binutils" download "https://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2" \ 'cc47a2f256b4a593206b4d7e62a60b32' ) ( name=newlib version="$version_newlib" download "ftp://sourceware.org/pub/$name/$name-$version.tar.gz" \ '81ec873108b8593c586f91ca65963952' ) ( 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.xz" ) ( 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 # Configure cat > config.sh << EOF BUILD_DKPRO_PACKAGE=1 BUILD_DKPRO_AUTOMATED=1 BUILD_DKPRO_SKIP_LIBRARIES=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/$name" # 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: