-
Notifications
You must be signed in to change notification settings - Fork 2
/
select_toolchain.sh
executable file
·77 lines (74 loc) · 1.29 KB
/
select_toolchain.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
VERSION=0
case "$BUILD_DKPRO_PACKAGE" in
"1" )
VERSION=1
;;
"2" )
VERSION=2
;;
"3" )
VERSION=3
;;
"4" )
VERSION=4
;;
esac
while [ $VERSION -eq 0 ]
do
echo
echo "Please select the toolchain you require"
echo
echo "1: devkitARM (gba gp32 ds 3ds)"
echo "2: devkitPPC (gamecube wii wii-u)"
echo "3: devkitA64 (switch)"
echo "4: devkitSH4 (exword)"
read VERSION
if [ "$VERSION" -ne 1 -a "$VERSION" -ne 2 -a "$VERSION" -ne 3 -a "$VERSION" -ne 4 ]
then
VERSION=0
fi
done
case "$VERSION" in
"1" )
GCC_VER=9.1.0
BINUTILS_VER=2.32
NEWLIB_VER=3.1.0
GDB_VER=8.2.1
basedir='dkarm-eabi'
package=devkitARM
target=arm-none-eabi
toolchain=DEVKITARM
;;
"2" )
GCC_VER=8.3.0
BINUTILS_VER=2.32
MN_BINUTILS_VER=2.17
NEWLIB_VER=3.1.0
GDB_VER=8.2.1
basedir='dkppc'
package=devkitPPC
target=powerpc-eabi
toolchain=DEVKITPPC
;;
"3" )
GCC_VER=9.2.0
BINUTILS_VER=2.32
NEWLIB_VER=3.1.0
GDB_VER=8.2.1
basedir='dka64'
package=devkitA64
target=aarch64-none-elf
toolchain=DEVKITA64
;;
"4" )
GCC_VER=8.3.0
BINUTILS_VER=2.32
NEWLIB_VER=1.20.0
GDB_VER=8.2.1
basedir='dksh4'
package=devkitSH4
target=sh-elf
toolchain=DEVKITSH4
;;
esac