bareflank-hypervisor/tools/scripts/fetch_binutils.sh
“Rian 6684ad94a9 Windows Code Update
- Provides better support for real hardware
- Cleans up some scripts
- Fixes some bugs with the intrinsics code
- Fixes bug with unit tests

Signed-off-by: “Rian <“rianquinn@gmail.com”>
2016-07-20 16:12:52 -06:00

42 lines
1.2 KiB
Bash
Executable file

#!/bin/bash -e
#
# Bareflank Hypervisor
#
# Copyright (C) 2015 Assured Information Security, Inc.
# Author: Rian Quinn <quinnr@ainfosec.com>
# Author: Brendan Kerrigan <kerriganb@ainfosec.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
pushd /tmp/bareflank/
rm -Rf binutils-*.tar.bz2
rm -Rf binutils-*/
rm -Rf src_binutils
n=0
until [ $n -ge 5 ]
do
wget $BINUTILS_URL && break
n=$[$n+1]
sleep 15
done
tar xfv binutils-*.tar.bz2
sleep 1
mv binutils-*/ src_binutils
rm -Rf binutils-*.tar.bz2
popd