From nobody Mon Feb 9 20:10:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1531908451066116.57077140643025; Wed, 18 Jul 2018 03:07:31 -0700 (PDT) Received: from localhost ([::1]:35671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffjMn-0004Rx-Vn for importer@patchew.org; Wed, 18 Jul 2018 06:07:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffjKe-0003D6-BY for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffjKd-00018S-0G for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:16 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:42971) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ffjKc-00017V-Nw for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:14 -0400 Received: by mail-wr1-x42d.google.com with SMTP id e7-v6so4043728wrs.9 for ; Wed, 18 Jul 2018 03:05:14 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b11-v6sm4106107wrv.82.2018.07.18.03.05.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Jul 2018 03:05:12 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id BA5933E056A; Wed, 18 Jul 2018 11:05:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qlo8pS+YMAruoQXF5J0rsqM9Ef58K4gYmOMlEODNVyQ=; b=As4BjlZrOfA0gRE0F/6rFJN3xBahi2fHPU+/ipMczriLrF3lMVoy1aaUXchq5OLtLE 9BbRC54/eDnZlsCRpEFzlzRT+6Dqq+YqvBXzLLMeCZaBfocAcYABOFbNzEtvJ/i5n1CI ibhZIkFL87t3PPR5hV3G5BlCGvGSEAoH6W7k0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qlo8pS+YMAruoQXF5J0rsqM9Ef58K4gYmOMlEODNVyQ=; b=c8H82PXz/PsyQ5lmXUk0gVmqEPalzVsv/OBSmGm9/J/bDF14Yd7B5omVqiuHe5/no/ MMYvAlaQD9KyLGFp37LpMz7/Bm7Smsi80karcWy3sxaKeG5hs5PP06Jp0bt4IAG5Yx9e /Urqi+DzSqRDDYGLDTct6g7HAUD8BldEzFEi5F6NxUGGcVD4o9ljyCf6howxNKGpOVEC Jm9O8hG/3IJ2Vx8YLdCPN4UVJ1wUEuYRnCLoppOw14wu1E/2UoACxOdTJM/MFU1Ee/kj /lGC0JPXZNsAMUfYbQdp9EAcC2ppDVe7vSP+x0MpQ80Jgw6IxmF8CCWRCAnSTupuarbC q2PQ== X-Gm-Message-State: AOUpUlH8pjTyUd9DDIp+2ytkwGPAjuLFV4QiFHV13sjmwkKQj7QwEarw N1cAhjmUHzXKQ7U68MnNw8N8wg== X-Google-Smtp-Source: AAOMgpf2X5Img8HHVgjWD2XSbDI+P/MnUGv3HvdJGamiF97Y5VAdj1HEbpcG0pnShuy6Zw8FV9YonA== X-Received: by 2002:adf:d08c:: with SMTP id y12-v6mr4070262wrh.152.1531908313647; Wed, 18 Jul 2018 03:05:13 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Wed, 18 Jul 2018 11:05:02 +0100 Message-Id: <20180718100505.7546-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180718100505.7546-1-alex.bennee@linaro.org> References: <20180718100505.7546-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42d Subject: [Qemu-devel] [PATCH RFC 07/10] docker: fall-back to binfmt_misc debian-s390x-user-cross on non-x86 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 The Debian archives don't package their large array of cross compilers for all host architectures. For s390x let's fall back to a linux-user based image when we can't use the native ones. Signed-off-by: Alex Benn=C3=A9e --- tests/docker/Makefile.include | 9 ++++++++- .../dockerfiles/debian-s390x-user-cross.docker | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 tests/docker/dockerfiles/debian-s390x-user-cross.docker diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 879bacde93..e1eba21f06 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -169,8 +169,15 @@ docker-image-debian-ppc64el-user-cross: docker-binfmt-= image-debian-ppc64el-user DOCKER_USER_IMAGES +=3D debian-ppc64el-user-cross DOCKER_PARTIAL_IMAGES +=3D debian-ppc64el-cross =20 +# No s390x cross-compilers in non-x86 Debian images, so use linux-user +docker-binfmt-image-debian-s390x-user: DEB_ARCH =3D s390x +docker-binfmt-image-debian-s390x-user: DEB_TYPE =3D stretch +docker-binfmt-image-debian-s390x-user: EXECUTABLE =3D ${BUILD_DIR}/s390x-l= inux-user/qemu-s390x +docker-image-debian-s390x-user-cross: docker-binfmt-image-debian-s390x-user +DOCKER_USER_IMAGES +=3D debian-s390x-user-cross +DOCKER_PARTIAL_IMAGES +=3D debian-s390x-cross else -DOCKER_PARTIAL_IMAGES +=3D debian-mips64el-user-cross debian-ppc64el-user-= cross +DOCKER_PARTIAL_IMAGES +=3D debian-mips64el-user-cross debian-ppc64el-user-= cross debian-s390x-user-cross endif =20 =20 diff --git a/tests/docker/dockerfiles/debian-s390x-user-cross.docker b/test= s/docker/dockerfiles/debian-s390x-user-cross.docker new file mode 100644 index 0000000000..396763f10e --- /dev/null +++ b/tests/docker/dockerfiles/debian-s390x-user-cross.docker @@ -0,0 +1,16 @@ +# +# Docker s390x user cross-compiler target +# +# This is a binfmt image for when the s390x cross compilers are not +# available in the host architecture archives. This image is based of +# the debootstrapped qemu:debian-s390x-user but doesn't need any +# extra magic once it is setup. +# + +FROM qemu:debian-s390x-user + +MAINTAINER Alex Bennee + +RUN echo man-db man-db/auto-update boolean false | debconf-set-selections +RUN apt-get update && \ + DEBIAN_FRONTEND=3Dnoninteractive apt-get build-dep -yy qemu --=20 2.17.1