|
@@ -4,7 +4,6 @@
|
|
|
|
|
|
# Stop on errors
|
|
# Stop on errors
|
|
set -e
|
|
set -e
|
|
-if [ ! -f .prereq ];then ./prerequise.sh;fi
|
|
|
|
|
|
|
|
source avr-file-names
|
|
source avr-file-names
|
|
|
|
|
|
@@ -43,7 +42,7 @@ makeDir()
|
|
echo "Downloading sources..."
|
|
echo "Downloading sources..."
|
|
|
|
|
|
if [ ! -f $NAME_BINUTILS.tar.xz ]; then
|
|
if [ ! -f $NAME_BINUTILS.tar.xz ]; then
|
|
- wget http://wareck.free.fr/cross_compilation/avr_toolchain/$NAME_BINUTILS.tar.xz
|
|
|
|
|
|
+ wget https://ftp.mirrorservice.org/sites/ftp.gnu.org/gnu/binutils/$NAME_BINUTILS.tar.xz
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
@@ -52,11 +51,11 @@ NAME_BINUTILS_BLD=${NAME_BINUTILS}_bld
|
|
echo "Making Binutils in $NAME_BINUTILS_BLD..."
|
|
echo "Making Binutils in $NAME_BINUTILS_BLD..."
|
|
echo "Extracting..."
|
|
echo "Extracting..."
|
|
rm -rf $NAME_BINUTILS/
|
|
rm -rf $NAME_BINUTILS/
|
|
-tar xJf $NAME_BINUTILS.tar.xz
|
|
|
|
|
|
+tar xf $NAME_BINUTILS.tar.xz
|
|
|
|
|
|
# Patch the size function
|
|
# Patch the size function
|
|
cd $NAME_BINUTILS/binutils
|
|
cd $NAME_BINUTILS/binutils
|
|
-patch -p 1 < ../../pack/$NAME_BINUTILS_SIZE_PATCH
|
|
|
|
|
|
+patch -p 1 < ../../$NAME_BINUTILS_SIZE_PATCH
|
|
cd ../..
|
|
cd ../..
|
|
|
|
|
|
makeDir $NAME_BINUTILS_BLD
|
|
makeDir $NAME_BINUTILS_BLD
|