File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ NONGNU_MIRROR="http://savannah.nongnu.org/download"
56
56
BINUTILS=binutils-2.23.2
57
57
BINUTILS_PACKAGE=${BINUTILS} .tar.gz
58
58
BINUTILS_DOWNLOAD=${GNU_MIRROR} /binutils/${BINUTILS_PACKAGE}
59
- BINUTILS_CHECKSUM=" ed58f50d8920c3f1d9cb110d5c972c27 "
59
+ BINUTILS_CHECKSUM=" cda9dcc08c86ff2fd3f27e4adb250f6f "
60
60
BINUTILS_INSTALL=n
61
61
62
62
GMP=gmp-5.0.5
@@ -89,7 +89,7 @@ GDB_DOWNLOAD=${GNU_MIRROR}/gdb/${GDB_PACKAGE}
89
89
GDB_CHECKSUM=" 24a6779a9fe0260667710de1b082ef61"
90
90
GDB_INSTALL=n
91
91
92
- AVRLIBC=avr-libc-trunk
92
+ AVRLIBC=avr-libc-1.8.0
93
93
AVRLIBC_PACKAGE=${AVRLIBC} .tar.bz2
94
94
AVRLIBC_DOWNLOAD=${NONGNU_MIRROR} /avr-libc/${AVRLIBC_PACKAGE}
95
95
AVRLIBC_CHECKSUM=" 54c71798f24c96bab206be098062344f"
@@ -260,7 +260,11 @@ download_and_check() {
260
260
fi
261
261
262
262
echo " Verifying md5 of ${ARCHIVES} /${1} ... "
263
- MD5=` md5 -r ${ARCHIVES} /$1 | awk ' {print $1}' `
263
+ if builtin command -v md5 > /dev/null ; then
264
+ MD5=` md5 -r ${ARCHIVES} /$1 | awk ' {print $1}' `
265
+ else
266
+ MD5=` md5sum ${ARCHIVES} /$1 | awk ' {print $1}' `
267
+ fi
264
268
if [ " $MD5 " != " $3 " ]
265
269
then
266
270
echo " Error: ${1} corrupted!" >&2
You can’t perform that action at this time.
0 commit comments