mid-kid
8 years ago
1 changed files with 68 additions and 0 deletions
@ -0,0 +1,68 @@ |
|||
name=devkitARM |
|||
version=46 |
|||
version_buildscripts=20170303 |
|||
version_gcc=6.3.0 |
|||
version_binutils=2.27 |
|||
version_newlib=2.5.0 |
|||
version_gdb=7.12 |
|||
update_url="https://sourceforge.net/projects/devkitpro/files/$name/" |
|||
|
|||
dlextract "https://sourceforge.net/projects/devkitpro/files/buildscripts/buildscripts-$version_buildscripts.tar.bz2" \ |
|||
'bf9d96dddb9f3ab0abc8413d0b18219d' |
|||
( name=gcc version="$version_gcc" |
|||
download "https://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.bz2" \ |
|||
'677a7623c7ef6ab99881bc4e048debb6' |
|||
) |
|||
( name=binutils version="$version_binutils" |
|||
download "https://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2" \ |
|||
'2869c9bf3e60ee97c74ac2a6bf4e9d68' |
|||
) |
|||
( 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" \ |
|||
'a0a3a00f7499b0c5278ba8676745d180' |
|||
) |
|||
header_end |
|||
|
|||
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_libdir/devkitPRO" |
|||
cp -a "install/$name" "$dir_install/$dir_prefix/$dir_libdir/devkitPRO" |
|||
|
|||
# Install environment |
|||
cat > devkitarm.sh << EOF |
|||
export DEVKITPRO="/$dir_prefix/$dir_libdir/devkitPRO" |
|||
export DEVKITARM="\$DEVKITPRO/$name" |
|||
export PATH="\$PATH:\$DEVKITARM/bin" |
|||
EOF |
|||
install -Dm755 -t "$dir_install/$dir_prefix/$dir_sysconfdir/profile.d" devkitarm.sh |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
Loading…
Reference in new issue