Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
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.

64 lines
2.0 KiB

8 years ago
name=devkitARM
version=20180728
version_gcc=8.1.0
version_binutils=2.30
version_newlib=3.0.0
7 years ago
version_gdb=8.0
8 years ago
dlextract "https://github.com/devkitPro/buildscripts/releases/download/v$version/buildscripts-$version.tar.bz2" \
'6846dedec578e5de66cdaab5d759f684'
8 years ago
( name=gcc version="$version_gcc"
download "https://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.xz" \
'65f7c65818dc540b3437605026d329fc'
8 years ago
)
( name=binutils version="$version_binutils"
download "https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz" \
'ffc476dd46c96f932875d1b2e27e929f'
8 years ago
)
( name=newlib version="$version_newlib"
download "ftp://sourceware.org/pub/$name/$name-$version.tar.gz" \
'81ec873108b8593c586f91ca65963952'
8 years ago
)
( name=gdb version="$version_gdb"
download "https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz" \
7 years ago
'c3d35cd949084be53b92cc1e03485f88'
8 years ago
)
_
8 years ago
cd buildscripts
( name=gcc version="$version_gcc"; getfile "$name-$version.tar.xz" )
( name=binutils version="$version_binutils"; getfile "$name-$version.tar.xz" )
8 years ago
( 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
8 years ago
BUILD_DKPRO_INSTALLDIR="$PWD/install"
EOF
# Build
./build-devkit.sh
./strip_toolchain.sh
8 years ago
# Install
mkdir -p "$dir_install/$dir_prefix/$dir_lib/devkitpro"
cp -Ta "install/$name" "$dir_install/$dir_prefix/$dir_lib/devkitpro/$name"
8 years ago
# Install environment
cat > devkitarm.sh << EOF
export DEVKITPRO="/$dir_prefix/$dir_lib/devkitpro"
8 years ago
export DEVKITARM="\$DEVKITPRO/$name"
export PATH="\$PATH:\$DEVKITARM/bin"
EOF
install -Dm755 -t "$dir_install/$dir_prefix/$dir_sysconf/profile.d" devkitarm.sh
8 years ago
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: