multiarch-pipeline-test/get_qemu2.sh
Ian Fijolek 122523e9cd
Some checks failed
continuous-integration/drone/push Build is failing
Download qemu in container
2019-03-10 15:00:31 -07:00

15 lines
387 B
Bash
Executable File

#! /bin/bash
HOST_ARCH=x86_64
VERSION=v2.9.1-1
mkdir -p build
cd build
for target_arch in $*; do
wget -N https://github.com/multiarch/qemu-user-static/releases/download/$VERSION/${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
tar -xvf ${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
rm ${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
mv qemu-${target_arch}-static /usr/bin/
done