From patchwork Mon Feb 27 14:30:27 2017 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: 94552 Delivered-To: patch@linaro.org Received: by 10.140.20.113 with SMTP id 104csp899438qgi; Mon, 27 Feb 2017 07:03:10 -0800 (PST) X-Received: by 10.31.149.15 with SMTP id x15mr6350041vkd.130.1488207790561; Mon, 27 Feb 2017 07:03:10 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c27si5269377uaa.7.2017.02.27.07.03.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 27 Feb 2017 07:03:10 -0800 (PST) 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; 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]:53439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciMpQ-00035g-7P for patch@linaro.org; Mon, 27 Feb 2017 10:03:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciMJw-000156-3h for qemu-devel@nongnu.org; Mon, 27 Feb 2017 09:30:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciMJs-0007Zi-5Q for qemu-devel@nongnu.org; Mon, 27 Feb 2017 09:30:36 -0500 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]:35457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciMJr-0007Yd-Uw for qemu-devel@nongnu.org; Mon, 27 Feb 2017 09:30:32 -0500 Received: by mail-wr0-x232.google.com with SMTP id g10so53383021wrg.2 for ; Mon, 27 Feb 2017 06:30:31 -0800 (PST) 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=vRO5FYXbrYsL/YZalT5o03UUAsmQuH02eaGcxNCQ6aM=; b=AK8PK7t+4Q5KsAJLZz48RjeIY2NhDz8FEYFJ45vArvAqmdzbHG/86Mod6aRhJyFezD lFREczayxpt7rjz9bMkbsYUVdpxaqLwxluhU9XPosykyfbXeVQocZa6xSkLqqJUJCoHf +fB0y7PK+uK4Ef5A7lu+Nz+GYRvUOSvM8cQ0s= 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=vRO5FYXbrYsL/YZalT5o03UUAsmQuH02eaGcxNCQ6aM=; b=d6G2EGXqUygkYYNImyXWHYtz5RQY3getwIfJd39lBMceVaoQPjIhgS/BndJTaZWzCj hVKPr8RFT8SFwLuNiGFPsqnEC2fN/4JxRzv0epTkcmEY5tHnxGyZrtlrAYgXvclZA3Pn zqzN5vZeYVqkSncbNOr85cMxMeJM1CNttBytD9ewA6HAs9950JqX+VQU9UDnrApAY/g/ LCqo6o0WG8AISZgK+8oLUf9/5AYTxbTn0rseHZic653OxkffGzG4cD9CZvbnuZpsTIf7 JBZwyCpwk1Tu2aZfxkYCXdcK0lKI5YH1b0jSzA2pINJWIFY+GUauQTlEsXVTp26t7rdH OKow== X-Gm-Message-State: AMke39k9HFstHTrdZrDAM250vfLSmmXtqMYe88+wMTSOy80/+Feh2fHHyYnTPQ6tWDlOfm3G X-Received: by 10.223.136.253 with SMTP id g58mr8393171wrg.10.1488205830299; Mon, 27 Feb 2017 06:30:30 -0800 (PST) Received: from zen.linaro.local (host109-151-54-100.range109-151.btcentralplus.com. [109.151.54.100]) by smtp.gmail.com with ESMTPSA id 63sm14530930wmg.22.2017.02.27.06.30.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Feb 2017 06:30:29 -0800 (PST) Received: from zen.home (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C0EFE3E037F; Mon, 27 Feb 2017 14:30:28 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: famz@redhat.com Date: Mon, 27 Feb 2017 14:30:27 +0000 Message-Id: <20170227143028.16428-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170227143028.16428-1-alex.bennee@linaro.org> References: <20170227143028.16428-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:400c:c0c::232 Subject: [Qemu-devel] [PATCH v1 1/2] new: dockerfiles/debian-s390-cross 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: Christian Borntraeger , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This adds an s390 cross build target to our library of docker setups. There is an issue with the xfslibs-dev:s390x package having a clash so we do a || apt-get -f install to fixup the rest of the dependencies. This doesn't build on the debian.docker file as we are using the multilib compiler which is only available in stretch (the current testing repo). Signed-off-by: Alex Bennée CC: Christian Borntraeger --- tests/docker/dockerfiles/debian-s390x-cross.docker | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-s390x-cross.docker -- 2.11.0 Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/dockerfiles/debian-s390x-cross.docker b/tests/docker/dockerfiles/debian-s390x-cross.docker new file mode 100644 index 0000000000..bbb21ed088 --- /dev/null +++ b/tests/docker/dockerfiles/debian-s390x-cross.docker @@ -0,0 +1,22 @@ +# +# Docker s390 cross-compiler target +# +# This docker target is based on stretch (testing) as the stable build +# doesn't have the cross compiler available. +# +FROM debian:testing-slim + +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/deb/deb-src/" >> /etc/apt/sources.list + +# Add the s390x architecture +RUN dpkg --add-architecture s390x + +# Grab the updated list of packages +RUN apt update +RUN apt dist-upgrade -yy +RUN apt-get build-dep -yy -a s390x qemu || apt-get -f install +RUN apt install -yy gcc-multilib-s390x-linux-gnu binutils-multiarch + +# Specify the cross prefix for this image (see tests/docker/common.rc) +ENV QEMU_CONFIGURE_OPTS --cross-prefix=s390x-linux-gnu-