From patchwork Tue Jul 18 00:31:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 108037 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp5214870qge; Mon, 17 Jul 2017 17:48:14 -0700 (PDT) X-Received: by 10.55.9.9 with SMTP id 9mr264274qkj.53.1500338894369; Mon, 17 Jul 2017 17:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500338894; cv=none; d=google.com; s=arc-20160816; b=BxGcl7XGx0ca4g2QoSOHnXyrFDReS47rj5igfkfPV1u80BzBevRMDh3A3xbuV6hvlG ZTFu10Zp2Z2+p17IEv6hAd3NnmK48lmxf2ZPcHFrjgHdWUm7jG3ZIZpXe+hs0cKNYJwS bz2OmE81DBRNdZPeichjIZYv+sCQ1l0CBgMKXPUt6qiM9MYotwHDQffUyCfu4usbdREF G0y/+eHPbfNjAmSkvpg3uCfrV+KEwjslYPvcqqJNpRcNBRHx8o/JUkqDn+GHgpIK5vEh 6s6auzA4ZmSx6JyyBglqu5CidFFsBVlaoM4gq+BZamy9PuNRr69SRpGbYgcB/D1Wm9C1 ZalQ== 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=o7SmzasNVaKkZ1fWIgVLfREHCd2dwI7BB9JB6WdvaLk=; b=YRhyxXsCiva3JCIW7eqeSxr4Ml1WbzgydhOo02hkmwdkBfrUljbb6/UlGu9C4Q+3Cu oL+i7S8mQawSdiDGDcWp8vFJaE++3pHnuynQTR7dqp4krIhlmXXL7PXxVbNHQeGwAWoc le4JXghxMNcES+SZWrSchiktshAJMa2qWmlD1Jgp6iOucqqq8/wnJrp2OtSZXD1/lXdy cyfkLxO1j2+DMOazkRPTpxXCd6P6RHcD4GhzsRlYslLpaxRn/y0hg8nw9mx+7vAsFrur v9GSRxA+EV/I8oyj0CayUC1wESB6/yX5TBdYDbEnUkamQMEPPMhFTKQ6nM/WWZkDZj9c 2Mgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.b=UahYVqRX; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id i44si661732qtc.310.2017.07.17.17.48.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 17 Jul 2017 17:48:14 -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=@gmail.com header.b=UahYVqRX; 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 Received: from localhost ([::1]:53250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXGgN-0006Sf-Vq for patch@linaro.org; Mon, 17 Jul 2017 20:48:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXGS9-0001N8-UX for qemu-devel@nongnu.org; Mon, 17 Jul 2017 20:33:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXGS8-0005QU-8U for qemu-devel@nongnu.org; Mon, 17 Jul 2017 20:33:29 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:35218) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXGS8-0005QL-3z for qemu-devel@nongnu.org; Mon, 17 Jul 2017 20:33:28 -0400 Received: by mail-qt0-x242.google.com with SMTP id h15so717935qte.2 for ; Mon, 17 Jul 2017 17:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=o7SmzasNVaKkZ1fWIgVLfREHCd2dwI7BB9JB6WdvaLk=; b=UahYVqRXafbecqk0l1bMlqeB4H6EQe48aWk8ono/NvK9NQlJXdxYU4Hc7lWPR/NJTV clDJ8oA0EIkqcjGJhF6CRxSgJl6ezpaHCWL8578nrRZAjjcFscDvkJfZxAdDyUBsSPUU x5uE4HQgxtN6mnqklUfrsm1nCVUJESMKYhCDCa25th/iXpmMfZDdPJ2CP7e520sCO1mP SnwiEiRzSZIjf6NLx3KsTZ71O4KkKKlLMGCOvc+M1wL2CEwf1ozF1RxtrxdrEB+6ASIO eK70d8a7iVrhYo0diaBDTCaxbPpW5GqpOWV1W4tPBOdF7ctF0qBKFTeKDO2WH7pUpVzz ynuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=o7SmzasNVaKkZ1fWIgVLfREHCd2dwI7BB9JB6WdvaLk=; b=RW2ZT6fLLZ0WAGjPfvY5lMhPyYi1ZjR58nhvx0Ls5sxEB4d/qd9qx5DBhXRZzxQV7y d6R9hMLA/LQw8Pr6FtoteizhxjGGe+XX8cQkS1KPFLcqVg1TOWaQNKjF0h5Y1NquAGpm 98zatPakiFCxzV6tiWHxi1jf/5SUAH8W8iaScTnCLokppcH1EFiRGRYg0nKeIAOL3JXL 004d0buVKXHmMY1I04lBfoW1NHIu81jt/rAHb+oqaahHFLZN3xIksslbfXpsvJOuZA7n py//NcyxcE1UU1FE0McGjRY9UcaG9t1MCZgNq4UhlgMGDUJSQHsoeo66hjGXvqxHHdlw UbrA== X-Gm-Message-State: AIVw110+h4PiG8awwBghMR1Z6CgubxrKWG9zPhUltha0MpXdX2XZKPNo eeY4fkmGsCB4Tw== X-Received: by 10.200.11.65 with SMTP id m1mr238826qti.229.1500338007658; Mon, 17 Jul 2017 17:33:27 -0700 (PDT) Received: from yoga.offpageads.com ([138.117.48.223]) by smtp.gmail.com with ESMTPSA id d14sm548638qtc.58.2017.07.17.17.33.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 17:33:27 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: =?utf-8?q?Alex_Benn=C3=A9e?= , Fam Zheng , Peter Maydell Date: Mon, 17 Jul 2017 21:31:51 -0300 Message-Id: <20170718003159.10200-24-f4bug@amsat.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170718003159.10200-1-f4bug@amsat.org> References: <20170717144848.11793-1-alex.bennee@linaro.org> <20170718003159.10200-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::242 Subject: [Qemu-devel] [PATCH v2 23/31] docker: add debian/powerpc based on Jessie 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: qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée [AJB: split from merged patch] Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 3 ++ .../docker/dockerfiles/debian-powerpc-cross.docker | 40 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-powerpc-cross.docker -- 2.13.2 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index b5eec5dc68..202efe9ee6 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -55,12 +55,15 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker $(if $(EXECUTABLE),--include-executable=$(EXECUTABLE)),\ "BUILD","$*") +docker-image-debian-powerpc-cross: EXTRA_FILES:=tests/docker/dockerfiles/debian-apt-fake.sh + # Enforce dependancies for composite images docker-image-debian-amd64: docker-image-debian9 docker-image-debian-armel-cross: docker-image-debian9 docker-image-debian-armhf-cross: docker-image-debian9 docker-image-debian-arm64-cross: docker-image-debian9 docker-image-debian-mipsel-cross: docker-image-debian9 +docker-image-debian-powerpc-cross: docker-image-debian8 docker-image-debian-ppc64el-cross: docker-image-debian9 docker-image-debian-s390x-cross: docker-image-debian9 diff --git a/tests/docker/dockerfiles/debian-powerpc-cross.docker b/tests/docker/dockerfiles/debian-powerpc-cross.docker new file mode 100644 index 0000000000..a5dd46b4ac --- /dev/null +++ b/tests/docker/dockerfiles/debian-powerpc-cross.docker @@ -0,0 +1,40 @@ +# +# Docker powerpc cross-compiler target +# +# This docker target builds on the debian Jessie base image. +# +FROM qemu:debian8 +MAINTAINER Philippe Mathieu-Daudé + +# Add the foreign architecture we want and install dependencies +RUN dpkg --add-architecture powerpc +RUN apt-get update +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + crossbuild-essential-powerpc + +# to fix "following packages have unmet dependencies" ... +ADD debian-apt-fake.sh /usr/local/bin/apt-fake +RUN apt-get install -y --no-install-recommends \ + equivs \ + pkg-config +RUN apt-fake install \ + pkg-config:powerpc=0.28-1.1-fake && \ + ln -s pkg-config /usr/bin/powerpc-linux-gnu-pkg-config +ENV PKG_CONFIG_PATH /usr/lib/powerpc-linux-gnu/pkgconfig +# + +# Specify the cross prefix for this image (see tests/docker/common.rc) +ENV QEMU_CONFIGURE_OPTS --cross-prefix=powerpc-linux-gnu- + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get build-dep -yy -a powerpc qemu +RUN DEBIAN_FRONTEND=noninteractive \ + apt-get install -y --no-install-recommends \ + glusterfs-common:powerpc \ + libbz2-dev:powerpc \ + liblzo2-dev:powerpc \ + libncursesw5-dev:powerpc \ + libnfs-dev:powerpc \ + librdmacm-dev:powerpc \ + libsnappy-dev:powerpc