From patchwork Mon Jul 17 14:48:47 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: 107990 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp4684593obm; Mon, 17 Jul 2017 08:11:52 -0700 (PDT) X-Received: by 10.55.209.86 with SMTP id s83mr9425598qki.171.1500304312356; Mon, 17 Jul 2017 08:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500304312; cv=none; d=google.com; s=arc-20160816; b=TWD+vv9bbuZyAOqiRnE90Yy8rvEFteKLqHEyzwoG6EX13KGMAio7izkQmcXywnPEH+ bDBcoSCGmQ2d4DiwZ9cxB7HqaJQf0HSRx3qR3UeCnpz2ovpLY7yidcD5zzPnMvWHLyxC nnF6woo5dxub414LXNwVb6sfA2nC9vNoO21tkCGpHfswVcJF4X2D1y4A6AqG7My4uXY3 qFD3o46st/CUDCQ89vpY9osOY/IM+O3B5ICAEUhHybAwvGGLJ21XyIqB7kRWKdQiF5e7 AKnh+s4M1QPN8xDWqHmTlqhNXd4/Q93raOs2FJ+GxpzrPmpSr2bQC5TNcap/33Ef2p3x t/+g== 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=Lff4B6WYB4WrxknVXye3gACTvYw0sB/wy0twGeKuE2E=; b=xMZHW5KkcYz5V8PzvzXRSLBy8G6MuFAu4hFN+25QNPVDSVJY4FCkOXQc5VZrLy6NwR o10avHD2EWfKPBXW5EdEM5rLyWitymKZnclIJX0Z9zR6uyFdWf0qvLYIhC4iFfUIdQfs pnmkmppCABR1qTCYOup6GuGt749g8HFNaRlybRvkde6rObfUpIS37tu9h5w92nIrnfZc QPu3E8QYw/KtLGX7pWFDz7rIwI5Jev/uw+jhbEZJ+bAhxNRP8JHu1FLQokfewc3eEVry Z7Z5xPUAS2pE5b7uYafDnyivm6CPWiWB0T5apPTuyerXVD39zSoAX9bo14QyVRAGOLX/ SZHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=Q6waF2kq; 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 r12si5701358qke.208.2017.07.17.08.11.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 17 Jul 2017 08:11:52 -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.b=Q6waF2kq; 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]:50975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7gb-0000sY-P9 for patch@linaro.org; Mon, 17 Jul 2017 11:11:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7Sg-0005dS-Uv for qemu-devel@nongnu.org; Mon, 17 Jul 2017 10:57:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX7Sf-0005vn-Rm for qemu-devel@nongnu.org; Mon, 17 Jul 2017 10:57:27 -0400 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:33804) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dX7Sf-0005vG-Lu for qemu-devel@nongnu.org; Mon, 17 Jul 2017 10:57:25 -0400 Received: by mail-wm0-x22b.google.com with SMTP id 70so22946705wmo.1 for ; Mon, 17 Jul 2017 07:57:25 -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=Lff4B6WYB4WrxknVXye3gACTvYw0sB/wy0twGeKuE2E=; b=Q6waF2kqY2xDBTy7VULk9BM2RE3H34ROA6uAK756G8ipWA8F1KVkSR/b+Aj/iqjc4m 5FQyGj6DvCgPj4r77KiZrDlsVpdRzpAkuATG7uYgYphdiy6QOeVMZZsu5WXK4585QZ4V acxAPYEvZhVSv2LckXnOsYFMpLlN8BCr9Adic= 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=Lff4B6WYB4WrxknVXye3gACTvYw0sB/wy0twGeKuE2E=; b=R5UNyivpAMzOgyNWJ/xSO02V0g1b7X5atHOea2hXyaPz3GU30VfjdYi2DxVxPTDaoH gIqWGkAKwpOGOWdvUozC7K1yrj5i7VcyDItkfIprN9CEcoqTl5YZPH5X1SVF5AKz/GKL m3AbCeZ5QMlOvmjmIb9fP2EDfwGsWrFzLy3de/JITAqoBPYTWcxPWmX+nXQP29ft8C2E pqrOCRnEQL4lrvllR/lYGBDOSrqQJeLjZY7PRC9NgP+bJ/NSkQgD1bQjZy83/bcUIqP6 YTYsPfEHrT9xTlysNfw6a1jTzkTt04NsUO//JIT2GaMRlL1Z46W9GeVKefA1xl5we6kg gnPw== X-Gm-Message-State: AIVw111c0hJHqQfaBUjDLB+DzLn4PlCXqwGZbN4ydWuo6zej1v6WvDw9 fNHxhrP1eMxfec8i X-Received: by 10.28.65.66 with SMTP id o63mr5023728wma.71.1500303444535; Mon, 17 Jul 2017 07:57:24 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 94sm1773680wrb.55.2017.07.17.07.57.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 07:57:23 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id EAEEA3E07A1; Mon, 17 Jul 2017 15:48:49 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 17 Jul 2017 15:48:47 +0100 Message-Id: <20170717144848.11793-23-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170717144848.11793-1-alex.bennee@linaro.org> References: <20170717144848.11793-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:c09::22b Subject: [Qemu-devel] [PATCH v1 22/23] 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: Fam Zheng , =?utf-8?q?Alex_Benn=C3=A9e?= , 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" 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.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 8d45551476..51496ba485 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -55,11 +55,14 @@ 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-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 docker-image-debian-amd64: 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