Commit 20b0fb7a authored by Markus Frosch's avatar Markus Frosch
Browse files

Download qemu-arm-static from the multiarch project

This avoids importing it from the gitlab-runner system.
parent 5970bd8e
......@@ -4,3 +4,4 @@
# artifacts
......@@ -15,6 +15,10 @@ ifneq ($(CI_REGISTRY),)
QEMU_VERSION = v3.1.0-2
QEMU_STATIC =$(QEMU_VERSION)/qemu-arm-static.tar.gz
QEMU_CHECKSUM = 694df07f3d83b64b2e3598f3150046e7c6c4f5f15004a4f2f414caf8e719bdcefe3fc8a8fa1f5cff357aa6af1a018a4e9efdc287a491037b89aa47aeaefb2201
.PHONY: all tarball clean
all: build
......@@ -24,8 +28,13 @@ rootfs.tar.xz:
TARBALL="$@.tmp" ./
mv "$@.tmp" "$@"
build: tarball
cp -av /usr/bin/qemu-arm-static .
wget "$(QEMU_STATIC)" -O $@.tar.gz
echo "$(QEMU_CHECKSUM) $@.tar.gz" | sha512sum -c - || (sha512sum $@.tar.gz; false)
tar xf $@.tar.gz
rm -f $@.tar.gz
build: qemu-arm-static tarball
docker build --tag "$(IMAGE)" .
Supports Markdown
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