multiarch-pipeline-test/get_qemu.sh

15 lines
446 B
Bash
Raw Normal View History

2019-03-09 01:12:03 +00:00
#! /bin/bash
HOST_ARCH=x86_64
VERSION=v2.9.1-1
mkdir -p build
cd build
2019-06-05 00:28:26 +00:00
# Multiple args can be passed in, but in most cases (Makefile and .drone.yml) we only use one at a time
for target_arch in $*; do
2019-06-05 00:33:15 +00:00
wget https://github.com/multiarch/qemu-user-static/releases/download/$VERSION/${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
2019-03-09 01:12:03 +00:00
tar -xvf ${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
rm ${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
done