blob: 715ac7b16f6030925879ab931990814434229bb7 [file] [log] [blame]
Vencislav Atanasov321de682017-05-01 22:57:01 +03001#!/bin/bash -e
2
3# Compile and install the Rockbox toolchain
4# s - sh (Archos models)
5# m - m68k (iriver h1x0/h3x0, iaudio m3/m5/x5 and mpio hd200)
6# a - arm (ipods, iriver H10, Sansa, D2, Gigabeat, etc)
7# i - mips (Jz4740 and ATJ-based players)
8# r - arm-app (Samsung ypr0)
9
10# MIPS toolchain fails at installation: https://pastebin.com/raw/8SBhN58q
11# ARM-APP toolchain is not tested
12echo s m a | RBDEV_PREFIX="${HOME}/rbdev-toolchain" /rockbox/tools/rockboxdev.sh
13echo 'PATH="$HOME/rbdev-toolchain/bin:$PATH"' >> "${HOME}/.profile"
14
15# Download SDL-1.2.5 and compile it using MinGW32
16cd "${HOME}"
17wget --progress=bar:force http://www.libsdl.org/release/SDL-1.2.15.tar.gz
18tar -zxvf SDL-1.2.15.tar.gz
19cd SDL-1.2.15
20./configure --host=x86_64-w64-mingw32 --prefix="${HOME}/mingw32-sdl"
21make install