You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.0 KiB
63 lines
2.0 KiB
name=devkitARM
|
|
version=20180728
|
|
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" \
|
|
'6846dedec578e5de66cdaab5d759f684'
|
|
( 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.xz" \
|
|
'ffc476dd46c96f932875d1b2e27e929f'
|
|
)
|
|
( 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.xz" )
|
|
( 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
|
|
./strip_toolchain.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:
|
|
|