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.

68 lines
2.2 KiB

8 years ago
name=devkitARM
8 years ago
version=20170715
version_gcc=7.1.0
version_binutils=2.28
8 years ago
version_newlib=2.5.0
8 years ago
version_gdb=8.0
update_url="https://sourceforge.net/projects/devkitpro/files/buildscripts/"
8 years ago
dlextract "https://sourceforge.net/projects/devkitpro/files/buildscripts/buildscripts-$version.tar.bz2" \
8 years ago
'b82b844ce1c59e859ee00285bb85451f'
8 years ago
( name=gcc version="$version_gcc"
download "https://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.bz2" \
8 years ago
'6bf56a2bca9dac9dbbf8e8d1036964a8'
8 years ago
)
( name=binutils version="$version_binutils"
download "https://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2" \
8 years ago
'9e8340c96626b469a603c15c9d843727'
8 years ago
)
( 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" \
8 years ago
'c3d35cd949084be53b92cc1e03485f88'
8 years ago
)
_
8 years ago
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"
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: