wget: Use --no-passive-ftp, helps with firewalls.
[fw/cortex-toolchain] / summon-arm-toolchain
index 15181b667272b87919d1aecef1942f817473992c..7606face5ccabfa28e005066c822a2819bdd2ffd 100755 (executable)
@@ -2,10 +2,10 @@
 # Written by Uwe Hermann <uwe@hermann-uwe.de>, released as public domain.
 # Modified by Piotr Esden-Tempski <piotr@esden.net>, released as public domain.
 
-TARGET=arm-none-eabi                   # Or: TARGET=arm-none-eabi
-PREFIX=${HOME}/arm-none-eabi           # Install location of your final toolchain
-PARALLEL=""                            # Or: PARALLEL="-j 5" for 4 CPU's
-DARWIN_OPT_PATH=/opt/local             # Path in which MacPorts or Fink is installed
+TARGET=arm-none-eabi           # Or: TARGET=arm-elf
+PREFIX=${HOME}/arm-none-eabi   # Install location of your final toolchain
+PARALLEL=""                    # Or: PARALLEL="-j 5" for 4 CPUs
+DARWIN_OPT_PATH=/opt/local     # Path in which MacPorts or Fink is installed
 
 BINUTILS=binutils-2.19.1
 GCC=gcc-4.4.2
@@ -54,13 +54,13 @@ echo "Downloading binutils sources..."
 wget -c http://ftp.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2
 
 echo "Downloading gcc sources..."
-wget -c ftp://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.bz2
+wget -c http://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.bz2
 
 echo "Downloading newlib sources..."
-wget -c ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz
+wget -c --no-passive-ftp ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz
 
 echo "Downloading gdb sources..."
-wget -c ftp://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2
+wget -c http://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2
 
 if [ ${LIBSTM32_EN} != 0 ]; then
 if [ ! -e libcmsis-${LIBCMSIS}.tar.bz2 ]; then