mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
dist/tools/toolchains: use MD5 as environment variable
This commit is contained in:
parent
0150cfc178
commit
89cd127e31
12
dist/tools/toolchains/build_gnuarm.sh
vendored
12
dist/tools/toolchains/build_gnuarm.sh
vendored
@ -25,6 +25,16 @@ MAKE_THREADS=-j4
|
||||
DOWNLOADER=wget
|
||||
DOWNLOADER_OPTS="-nv -c"
|
||||
|
||||
if [ `uname` = "Linux" ]; then
|
||||
MD5=md5sum
|
||||
MD5_OPTS="-c -"
|
||||
elif [ `uname` = "Darwin" ]; then
|
||||
MD5=md5
|
||||
MD5_OPTS=""
|
||||
else
|
||||
echo "CAUTION: No 'md5' tool for your host system found!"
|
||||
fi
|
||||
|
||||
#
|
||||
# Build targets
|
||||
#
|
||||
@ -139,7 +149,7 @@ download_file() {
|
||||
${DOWNLOADER} ${DOWNLOADER_OPTS} $1/$2
|
||||
|
||||
echo -n "Checking MD5 of "
|
||||
echo "${3} ${2}" | md5sum -c -
|
||||
echo "${3} ${2}" | ${MD5} ${MD5_OPTS}
|
||||
}
|
||||
|
||||
check_space() {
|
||||
|
Loading…
Reference in New Issue
Block a user