Vencislav Atanasov | 321de68 | 2017-05-01 22:57:01 +0300 | [diff] [blame^] | 1 | #!/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 |
| 12 | echo s m a | RBDEV_PREFIX="${HOME}/rbdev-toolchain" /rockbox/tools/rockboxdev.sh |
| 13 | echo 'PATH="$HOME/rbdev-toolchain/bin:$PATH"' >> "${HOME}/.profile" |
| 14 | |
| 15 | # Download SDL-1.2.5 and compile it using MinGW32 |
| 16 | cd "${HOME}" |
| 17 | wget --progress=bar:force http://www.libsdl.org/release/SDL-1.2.15.tar.gz |
| 18 | tar -zxvf SDL-1.2.15.tar.gz |
| 19 | cd SDL-1.2.15 |
| 20 | ./configure --host=x86_64-w64-mingw32 --prefix="${HOME}/mingw32-sdl" |
| 21 | make install |