From patchwork Sun May 21 03:29:47 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: 765019 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wVnXJ0hBjz9s2s for ; Sun, 21 May 2017 13:36:48 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cAUH/JYn"; dkim-atps=neutral Received: from localhost ([::1]:36173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCHfh-0005vA-NB for incoming@patchwork.ozlabs.org; Sat, 20 May 2017 23:36:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCHZn-0001Zx-SJ for qemu-devel@nongnu.org; Sat, 20 May 2017 23:30:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCHZm-0007KT-Rq for qemu-devel@nongnu.org; Sat, 20 May 2017 23:30:39 -0400 Received: from mail-oi0-x243.google.com ([2607:f8b0:4003:c06::243]:33449) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCHZm-0007K8-Mx; Sat, 20 May 2017 23:30:38 -0400 Received: by mail-oi0-x243.google.com with SMTP id h4so18064080oib.0; Sat, 20 May 2017 20:30:38 -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=8T2UJfmvTIKHD189Rk2Yx60QpHND0ikjPKHMhW2VyzU=; b=cAUH/JYnyEgw8lE1CC7m/Y6Q4ScO4vLrocRskcnhKlSXyQk7fvs8VsuCM/ZqpG2TXy 5lORarR1pSa/cnC9ffkccJuPJN+V77H+kj/X2pxsfZfLoRJdez57J8CsNwlK0+dfxm25 QCzZO7FktGsQslEeop0OvREHKOWjVZ8QM9/AsNN7FQfDU1pz0H7RSiB7pRgSOl/eHvFT B4ZlB9JKhgWtfU0zl+8AKaBPYoWbOEPzZ0uqvzMVSJxqNUmZj5SPf6BErREuA9r5JBX7 KLsdwLvR9PT/VrZLcDR0tz3SddmKm20OijVsjgiYBs+qHovqLDhLvGyRdKHy1LwpgB6H FtSg== 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=8T2UJfmvTIKHD189Rk2Yx60QpHND0ikjPKHMhW2VyzU=; b=t19BsmBlVW4yejA1qj99CrcYvQ9rI2Rq/U7qPxhzVsd0cMLOf15iWqciR2ByBHrG1t UvKentOme91Y7CTH4vcS3JohsuV8Ky4UdFFgp2yAgspUSDaKaKuPivQ3++2bmrQW250I Ks3g8Hq9iv3qWXzFY1hCxVtfL9EFzOZci/jGswHtrwGCLVZhtvSZQlj3qztDhJQKjHS1 E02z/3lLiQpJYXUXY9JXIYQD7BbpBxlHaVdM13TUrOVots+TgtVuclqfAyvr70SHuxPc 6VZwiCZFAovv71d9WgWSBgmgJjSwD5zdN+iZd1P0HBNVwCEOS2c9sgWJonBuw8o8YSMd k1Kw== X-Gm-Message-State: AODbwcAj8YASXYPpSnmrjDQ6nn74RR5rvoLXLfO4FrMKds2lXtz+5VRa wS9xcl9+q1zD1w== X-Received: by 10.157.14.230 with SMTP id 93mr10439946otj.97.1495337437979; Sat, 20 May 2017 20:30:37 -0700 (PDT) Received: from yoga.attlocal.net (162-231-236-127.lightspeed.miamfl.sbcglobal.net. [162.231.236.127]) by smtp.gmail.com with ESMTPSA id u23sm6499219otg.31.2017.05.20.20.30.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 May 2017 20:30:37 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng , David Gibson , Alexander Graf , qemu-ppc@nongnu.org, Aurelien Jarno , Riku Voipio , Vagrant Cascadian , Michael Tokarev Date: Sun, 21 May 2017 00:29:47 -0300 Message-Id: <20170521032956.27446-16-f4bug@amsat.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170521032956.27446-1-f4bug@amsat.org> References: <20170521032956.27446-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:4003:c06::243 Subject: [Qemu-devel] [PATCH v3 15/24] docker: add powerpc build target 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?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée --- tests/docker/Makefile.include | 4 +-- .../docker/dockerfiles/debian-powerpc-cross.docker | 40 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 tests/docker/dockerfiles/debian-powerpc-cross.docker diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 111b8090b2..9815976486 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -56,11 +56,13 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker "BUILD","$*") docker-image-debian-mipsel-cross: EXTRA_FILES:=tests/docker/dockerfiles/debian-apt-fake.sh +docker-image-debian-powerpc-cross: EXTRA_FILES:=tests/docker/dockerfiles/debian-apt-fake.sh # Enforce dependancies for composite images docker-image-debian-armhf-cross: docker-image-debian docker-image-debian-arm64-cross: docker-image-debian docker-image-debian-mipsel-cross: docker-image-debian +docker-image-debian-powerpc-cross: docker-image-debian # Expand all the pre-requistes for each docker image and test combination $(foreach i,$(DOCKER_IMAGES), \ @@ -111,8 +113,6 @@ docker: @echo ' NOUSER Define to disable adding current user to containers passwd.' @echo ' NOCACHE=1 Ignore cache when build images.' @echo ' EXECUTABLE= Include executable in image.' - @echo ' EXTRA_FILES=" [... ]"' - @echo ' Include extra files in image.' # This rule if for directly running against an arbitrary docker target. # It is called by the expanded docker targets (e.g. make diff --git a/tests/docker/dockerfiles/debian-powerpc-cross.docker b/tests/docker/dockerfiles/debian-powerpc-cross.docker new file mode 100644 index 0000000000..fa2cc7a657 --- /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 base debian image. +# +FROM qemu:debian +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