diff options
Diffstat (limited to 'tools/rockboxdev.sh')
-rwxr-xr-x | tools/rockboxdev.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh index 9bbe56c25b..40c285942c 100755 --- a/tools/rockboxdev.sh +++ b/tools/rockboxdev.sh | |||
@@ -23,6 +23,16 @@ else | |||
23 | make="make" | 23 | make="make" |
24 | fi | 24 | fi |
25 | 25 | ||
26 | # Use an alternative mirror in case you encounter a slow internet connection. | ||
27 | # List of other GNU mirrors available in http://www.gnu.org/prep/ftp.html | ||
28 | # | ||
29 | # Usage example: | ||
30 | # # GNU_MIRROR=http://mirrors.kernel.org/gnu ./rockboxdev.sh | ||
31 | # | ||
32 | if [ -z $GNU_MIRROR ] ; then | ||
33 | GNU_MIRROR=ftp://ftp.gnu.org/pub/gnu | ||
34 | fi | ||
35 | |||
26 | # If detection fails, override the value of make manually: | 36 | # If detection fails, override the value of make manually: |
27 | # make="make" | 37 | # make="make" |
28 | 38 | ||
@@ -206,13 +216,13 @@ cat $summary | |||
206 | if test -f "$dlwhere/binutils-$binutils.tar.bz2"; then | 216 | if test -f "$dlwhere/binutils-$binutils.tar.bz2"; then |
207 | echo "binutils $binutils already downloaded" | 217 | echo "binutils $binutils already downloaded" |
208 | else | 218 | else |
209 | getfile binutils-$binutils.tar.bz2 ftp://ftp.gnu.org/pub/gnu/binutils | 219 | getfile binutils-$binutils.tar.bz2 $GNU_MIRROR/binutils |
210 | fi | 220 | fi |
211 | 221 | ||
212 | if test -f "$dlwhere/gcc-core-$gccver.tar.bz2"; then | 222 | if test -f "$dlwhere/gcc-core-$gccver.tar.bz2"; then |
213 | echo "gcc $gccver already downloaded" | 223 | echo "gcc $gccver already downloaded" |
214 | else | 224 | else |
215 | getfile gcc-core-$gccver.tar.bz2 ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$gccver | 225 | getfile gcc-core-$gccver.tar.bz2 $GNU_MIRROR/gcc/gcc-$gccver |
216 | fi | 226 | fi |
217 | 227 | ||
218 | if test -n "$gccpatch"; then | 228 | if test -n "$gccpatch"; then |