panfrost/ci: Install qemu-arm-static into chroot
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 19 Aug 2019 15:30:10 +0000 (17:30 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 21 Aug 2019 14:41:56 +0000 (16:41 +0200)
Some runners may be configured such that the qemu binary might not be
available by the time we need to start running commands within the
chroot.

So make sure that it's there to avoid suprising problems in that case.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/ci/debian-install.sh

index 09f3319628c3a5683b1c10477f3cb2814a1a4652..fbb95887d345ec0af95a42550aa919bf255ede70 100644 (file)
@@ -151,10 +151,17 @@ rm -rf /kernel
 
 ############### Create rootfs
 cp ${PANFROST_CI_DIR}/create-rootfs.sh /artifacts/rootfs/.
+mkdir -p /artifacts/rootfs/bin
+cp /usr/bin/qemu-aarch64-static /artifacts/rootfs/bin
+cp /usr/bin/qemu-arm-static /artifacts/rootfs/bin
+
 set +e
 debootstrap --variant=minbase --arch=${DEBIAN_ARCH} testing /artifacts/rootfs/ http://deb.debian.org/debian
 cat /artifacts/rootfs/debootstrap/debootstrap.log
 set -e
 chroot /artifacts/rootfs sh /create-rootfs.sh
+
+rm /artifacts/rootfs/bin/qemu-arm-static
+rm /artifacts/rootfs/bin/qemu-aarch64-static
 rm /artifacts/rootfs/create-rootfs.sh