Commit 225ce0bd authored by Angus Ainslie's avatar Angus Ainslie

Add a convenience function for getting the stretch qemu-arm-static

parent b6189c42
#!/bin/bash
HOST_ARCH=`uname -m`
case ${HOST_ARCH} in
x86_64)
ARCH=amd64
;;
i386|i586)
ARCH=i386
;;
armhf)
ARCH=armhf
;;
aarch64)
ARCH=arm64
;;
esac
QEMU_DEB=qemu-user-static_2.8+dfsg-6+deb9u3_${ARCH}.deb
TEMP=`mktemp -d ./tmpXXXXXX`
cd ${TEMP}
wget http://ftp.us.debian.org/debian/pool/main/q/qemu/${QEMU_DEB}
ar x ${QEMU_DEB}
tar -xf data.tar.xz
cp -v usr/bin/qemu-arm-static ../bin
cd ..
rm -r ${TEMP}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment