From nobody Mon Feb 9 16:34:03 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 (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1531908599422271.0639954232179; Wed, 18 Jul 2018 03:09:59 -0700 (PDT) Received: from localhost ([::1]:35682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffjPC-0006Ya-FV for importer@patchew.org; Wed, 18 Jul 2018 06:09:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffjKg-0003Hl-Lo for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffjKb-000179-D8 for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:18 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:44514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ffjKb-00016T-72 for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:13 -0400 Received: by mail-wr1-x429.google.com with SMTP id r16-v6so4039019wrt.11 for ; Wed, 18 Jul 2018 03:05:13 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v15-v6sm1860868wmc.16.2018.07.18.03.05.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Jul 2018 03:05:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 936153E053E; 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=R7WJlgOC/Eb7eHKtYMd9nlXsHtszE6zXBbaOOm4XzFw=; b=QX8Obcwy3JUbx/mhE0kPKc5N595iV9kw+IXzaIJmYWQVG6qeDGO9/SvSSp5IA5UFnR BlJt+Ps3qaRYZCCys9YIohV/wo4ZtuX6jafRILz63tbydAR8+FUDWr3+7UMkYwn8RBl5 oMRRMJQaATyoW/soM2No6k9gdceBmeQhm8KBs= 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=R7WJlgOC/Eb7eHKtYMd9nlXsHtszE6zXBbaOOm4XzFw=; b=B+5mGI8UD5R5kmPzNhD0QndeH4EsMLsvnXt1iUbwJu3cujxxEvBlIcMXuIIjmI1UXY zKusmLqAKjkPMoROJ1kCQTTm3dotIMgZhfSstSdLoV3/ek9vp1uh/Em192xKSvfUdjhO J4kRQqk9Jzi1yQ5jO2E8lGHXNVo8wPMl0tqtngiBgdX7XQnh/vXLI/HVzTx2ZOV/r1ak QDYpTvb4FU7sTIzQebJTWX1vckB8tkj44/ANjEYXpCMkQanp7QzoW4V6ZJ4OshZuESRW /5GQWSnI90A9019RimkGfJuHPh9GDifwhrgFg170f15k4nu1+iRWTJlpwpMqut0F6XyT h89Q== X-Gm-Message-State: AOUpUlGpUDAdbSd+Wkuda5JApPJFYUiMxdus1ju0IELangzJaZmvlN1A pBjn09zVyryv7pRx5/XpxNbndw== X-Google-Smtp-Source: AAOMgpd1emLhDI4p/Rg8QSepxpr3YWvOqdc7saJMchX3aolFK6YBTnyQjBlM7QSbVmHPxST+Ya5yUA== X-Received: by 2002:adf:b2f4:: with SMTP id g107-v6mr4069541wrd.53.1531908312169; Wed, 18 Jul 2018 03:05:12 -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:00 +0100 Message-Id: <20180718100505.7546-6-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::429 Subject: [Qemu-devel] [PATCH RFC 05/10] docker: fall-back to binfmt_misc debian-mips64el-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 MIPS 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 | 11 +++++++++++ .../debian-mips64el-user-cross.docker | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-mips64el-user-cross.doc= ker diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 2cb180ff6c..5cfb1a57bb 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -153,8 +153,19 @@ ifeq ($(ARCH),aarch64) DOCKER_PARTIAL_IMAGES +=3D debian-arm64-cross endif =20 +# No MIPS cross-compilers in non-x86 Debian images, so use linux-user +docker-binfmt-image-debian-mips64el-user: DEB_ARCH =3D mips64el +docker-binfmt-image-debian-mips64el-user: DEB_TYPE =3D stretch +docker-binfmt-image-debian-mips64el-user: EXECUTABLE =3D ${BUILD_DIR}/mips= 64el-linux-user/qemu-mips64el +docker-image-debian-mips64el-user-cross: docker-binfmt-image-debian-mips64= el-user +DOCKER_USER_IMAGES +=3D debian-mips64el-user-cross +DOCKER_PARTIAL_IMAGES +=3D debian-mips-cross debian-mipsel-cross debian-mi= ps64el-cross + +else +DOCKER_PARTIAL_IMAGES +=3D debian-mips64el-user-cross endif =20 + # Expand all the pre-requistes for each docker image and test combination $(foreach i,$(filter-out $(DOCKER_PARTIAL_IMAGES),$(DOCKER_IMAGES) $(DOCKE= R_DEPRECATED_IMAGES)), \ $(foreach t,$(DOCKER_TESTS) $(DOCKER_TOOLS), \ diff --git a/tests/docker/dockerfiles/debian-mips64el-user-cross.docker b/t= ests/docker/dockerfiles/debian-mips64el-user-cross.docker new file mode 100644 index 0000000000..98284bc635 --- /dev/null +++ b/tests/docker/dockerfiles/debian-mips64el-user-cross.docker @@ -0,0 +1,16 @@ +# +# Docker mips64el user cross-compiler target +# +# This is a binfmt image for when the MIPS cross compilers are not +# available in the host architecture archives. This image is based of +# the debootstrapped qemu:debian-mips64el-user but doesn't need any +# extra magic once it is setup. +# + +FROM qemu:debian-mips64el-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