From patchwork Wed Jul 18 10:05:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 142257 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp346901ljj; Wed, 18 Jul 2018 03:08:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpccF+e2YS+N41fR8KksnMNE5cDLlu4s1dM4VQ2Y7eMyExXC+ISuDJxWIIgJet2RwzHjFX0l X-Received: by 2002:a0c:92e4:: with SMTP id c33-v6mr5602324qvc.178.1531908521299; Wed, 18 Jul 2018 03:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531908521; cv=none; d=google.com; s=arc-20160816; b=lZBXIBHjIeSCktBzF062hJ6/B62jJqulCdVdNxpdCnxZ0HktxoW4AA9Fv4wVriqS2V 6CixvOfjRin8sc963iL45YSFdtDSYsUU24UGhk+n1ErhSVOr03hbWrHLCb5BduvTyCwj eiVAnoFfICK2whGPjYuqKKAYpBsdSO/2YUC+UilzD+aGVwyBgqjiZ7DTJIcs55c/iskg 2+7KrVmqTlQS/6L6v54Fad+LELr2UtcxLbUYPYXWFuy1mMTDZZuBTZa+FKQRIvvbRrAA jAHZSAm8LKj/Y43WU0OFkz422zIcpZWcsXc7oYkg7aHnJ+0ruPLCZE1Fdwxt6Wh9fX8V QSUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=wB5QLvKgza/3ik6x0KL+ybnuoOZ3Eql2kkihjb4u7aQ=; b=hNs7l3TSMczA9qwOrgN04RwRxTx7qUB1aFR7khJ+z8meDekwdSuRSpZhl7xBKwG5WP zzJke18W37o13bmfWfK5NJ0lmqeQ0jrIDqoJvFeP322OIl4gzZZnv+tmzjbVhBSoIRQ2 Ift5rJSg5ALpuYLhvMNa9cnKHEcJCnZ1wgFwuv/QwQCAbaupcBWqXg/SKy9x5IsNAjtO zfn43kj8MWCjg5bOHfdI4OHVjcFRkpwNZxbGvOEE5Jpk+DhYeMZns4b5laNbOLKJ+ht7 oL94XCHCiBhZufo1jE9U6DLZjAA0m75WhJ2zhk3E1quRxMaXn7O3oD1Zbm1NW6XxxOId FDvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UGAHXNf6; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x67-v6si2959311qkc.134.2018.07.18.03.08.41 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 18 Jul 2018 03:08:41 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UGAHXNf6; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:35673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffjNw-0005Uf-Q1 for patch@linaro.org; Wed, 18 Jul 2018 06:08:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffjKc-000395-3n for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffjKa-00016K-Cs for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:14 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:40332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ffjKa-00014y-4h for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:12 -0400 Received: by mail-wr1-x434.google.com with SMTP id t6-v6so4045672wrn.7 for ; Wed, 18 Jul 2018 03:05:12 -0700 (PDT) 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=wB5QLvKgza/3ik6x0KL+ybnuoOZ3Eql2kkihjb4u7aQ=; b=UGAHXNf6AihSz7fFco7L8HWzfBPAKHHjnJ7C/O18V5H6+WetJxXvbYSGAZh8inRRmJ 3q5E1V/9hs4txfsYs1CgXUiIOTPpNmanIrD2zToCZUGVkQ9BnVZQK2CMASTEY4Q4yMo0 xnUi6QMQEMfTGMhfcpPbZ4ZO4IunA0bOXFXmU= 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=wB5QLvKgza/3ik6x0KL+ybnuoOZ3Eql2kkihjb4u7aQ=; b=gsE3pviB5Lk2wILz22LxccbPO5Rwf0zKGf7Wq1b6FFRHci43dNe+VizG4JPBSJ25Ly FvY0VAZn1uyqtjE38bVzKgZVxuXOs2tIwHPSYyVfCUCNgjAozlMpVPW9eEgbefWuqolT GlqrSsXUBUJIkLVwZbaT+iXeWqovzS+RGtk8Tt0q7oAUXZGMQOPj7nUaYr5kMirV+rLj ur/WmsbbcLVZUL6zgCDmjgG39arPck8XQqIiPHAf1uyO7RN4UGkwGt2FomSR7tNIhfC/ oESf0HjVggA9JDUaderq5aqQ4vxEu8dYQga8WX0KUsY3TPl90INEHO29cGdsKsRL/MT8 5Izw== X-Gm-Message-State: AOUpUlERkuscKHEgOoaW88BJDqJc8foilECWRrblz0qdiivRkgWp8hA+ zVkRYf/DLTfVzWW3t3OGIuHgfw== X-Received: by 2002:a5d:4701:: with SMTP id y1-v6mr3944528wrq.107.1531908311133; Wed, 18 Jul 2018 03:05:11 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id w9-v6sm8904399wrk.28.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 A6CC93E055C; Wed, 18 Jul 2018 11:05:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=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:01 +0100 Message-Id: <20180718100505.7546-7-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 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::434 Subject: [Qemu-devel] [PATCH RFC 06/10] docker: fall-back to binfmt_misc debian-ppc64el-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_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The Debian archives don't package their large array of cross compilers for all host architectures. For ppc64el let's fall back to a linux-user based image when we can't use the native ones. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 10 +++++++++- .../dockerfiles/debian-ppc64el-user-cross.docker | 16 ++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 tests/docker/dockerfiles/debian-ppc64el-user-cross.docker -- 2.17.1 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 5cfb1a57bb..879bacde93 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -161,8 +161,16 @@ docker-image-debian-mips64el-user-cross: docker-binfmt-image-debian-mips64el-use DOCKER_USER_IMAGES += debian-mips64el-user-cross DOCKER_PARTIAL_IMAGES += debian-mips-cross debian-mipsel-cross debian-mips64el-cross +# No ppc64el cross-compilers in non-x86 Debian images, so use linux-user +docker-binfmt-image-debian-ppc64el-user: DEB_ARCH = ppc64el +docker-binfmt-image-debian-ppc64el-user: DEB_TYPE = stretch +docker-binfmt-image-debian-ppc64el-user: EXECUTABLE = ${BUILD_DIR}/ppc64le-linux-user/qemu-ppc64le +docker-image-debian-ppc64el-user-cross: docker-binfmt-image-debian-ppc64el-user +DOCKER_USER_IMAGES += debian-ppc64el-user-cross +DOCKER_PARTIAL_IMAGES += debian-ppc64el-cross + else -DOCKER_PARTIAL_IMAGES += debian-mips64el-user-cross +DOCKER_PARTIAL_IMAGES += debian-mips64el-user-cross debian-ppc64el-user-cross endif diff --git a/tests/docker/dockerfiles/debian-ppc64el-user-cross.docker b/tests/docker/dockerfiles/debian-ppc64el-user-cross.docker new file mode 100644 index 0000000000..aeb207e9c2 --- /dev/null +++ b/tests/docker/dockerfiles/debian-ppc64el-user-cross.docker @@ -0,0 +1,16 @@ +# +# Docker ppc64el user cross-compiler target +# +# This is a binfmt image for when the ppc64el cross compilers are not +# available in the host architecture archives. This image is based of +# the debootstrapped qemu:debian-ppc64el-user but doesn't need any +# extra magic once it is setup. +# + +FROM qemu:debian-ppc64el-user + +MAINTAINER Alex Bennee + +RUN echo man-db man-db/auto-update boolean false | debconf-set-selections +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get build-dep -yy qemu