From patchwork Mon May 8 22:17:49 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: 9716791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 67D696035D for ; Mon, 8 May 2017 22:24:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A81C206E2 for ; Mon, 8 May 2017 22:24:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4EEF826CFC; Mon, 8 May 2017 22:24:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C3D77206E2 for ; Mon, 8 May 2017 22:23:59 +0000 (UTC) Received: from localhost ([::1]:33942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7r4Q-0003eh-Sf for patchwork-qemu-devel@patchwork.kernel.org; Mon, 08 May 2017 18:23:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7qzL-0000D6-Eo for qemu-devel@nongnu.org; Mon, 08 May 2017 18:18:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7qzI-0006w8-7x for qemu-devel@nongnu.org; Mon, 08 May 2017 18:18:43 -0400 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:35903) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7qzI-0006vy-33 for qemu-devel@nongnu.org; Mon, 08 May 2017 18:18:40 -0400 Received: by mail-qk0-x244.google.com with SMTP id y128so12142665qka.3 for ; Mon, 08 May 2017 15:18:40 -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=6rtI2Q4G3PENzSWydWWpHT+gmQxoR5kPPrW6pc6EmXo=; b=cLuI8mssDQFx1Me10R+nRTVzTWFeC+IzqCqjG9fp3Ij1EH8EnWmjKaRqGZ9cVpLiel XFEKNlvnS8wQUM+TsC5sDUQ+e2AK2KmztQy4xwVD+s//+5XZ54uOJfyGo4JFwNoZwIMy aBcEaASkSXcX+DxGQQZPisXuD+63SsLB9L5wfRMEINzWh8bPt6xY9nbE5Pu8uMduLojZ jk6F6U8/DKlU50fQkbThozZIf2Ftzz8w4aAEXXlR9yA6tFzwqgno0PblKXypaQ5f68rs zDoef4Ex6Mc44bYKpa+Y59tz2A8CXeJb944R6nNggx0qZbqQRIClCPO1/MliHhn6HP4R xcJg== 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=6rtI2Q4G3PENzSWydWWpHT+gmQxoR5kPPrW6pc6EmXo=; b=cM1iHIWVsss71cXfTg4O/oVqMTNbA9r+EmUwrIRFoS4Glv/67AhwVyqRFwe71io5+z ENEkhmN1xKocWkbvy+bVv9gM2ZCMgL6xf+4YXPoL7rnF683pnLy6ySBT0+9TKIyPioJG odY6/JlTIFSD4cVfZ3lvG4U+1cFfWq2kVPousMov8/e7bT/6OGyoaBaeoLqTnEw96M30 h/J26+gINLKLD1fhfdJmV+GTIsqT0vOPV0I2wTQNV7WKoQjpzPlDq8lhD2m+eYZh+9AS WZ+fezTtw/qeriZqp9Vh5bDWR4LqcxPv6lv3CJXZ5avcwr5TrN8QdgHpVuMJ71XmRZ1J PnCw== X-Gm-Message-State: AODbwcC8WruxMVC5g4pa8aADGbM2Y6KELoX4xWiuaoK2rLQxRVkV3nEU sz5o2nJbweHmRw== X-Received: by 10.55.24.9 with SMTP id j9mr25341756qkh.25.1494281919662; Mon, 08 May 2017 15:18:39 -0700 (PDT) Received: from localhost.localdomain ([138.117.48.226]) by smtp.gmail.com with ESMTPSA id k65sm10157286qkf.18.2017.05.08.15.18.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 15:18:39 -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 , Aurelien Jarno , Yongbok Kim , Riku Voipio , Vagrant Cascadian , Michael Tokarev Date: Mon, 8 May 2017 19:17:49 -0300 Message-Id: <20170508221759.15616-12-f4bug@amsat.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170508221759.15616-1-f4bug@amsat.org> References: <20170508221759.15616-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:c09::244 Subject: [Qemu-devel] [PATCH v2 11/21] docker: add mipsel 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Philippe Mathieu-Daudé --- tests/docker/Makefile.include | 3 +++ .../docker/dockerfiles/debian-mipsel-cross.docker | 31 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-mipsel-cross.docker diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index c99ce702ea..f34282a2cb 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -55,9 +55,12 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker $(if $(EXTRA_FILE),--include-file=$(EXTRA_FILE)),\ "BUILD","$*") +docker-image-debian-mipsel-cross: EXTRA_FILE:=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 # Expand all the pre-requistes for each docker image and test combination $(foreach i,$(DOCKER_IMAGES), \ diff --git a/tests/docker/dockerfiles/debian-mipsel-cross.docker b/tests/docker/dockerfiles/debian-mipsel-cross.docker new file mode 100644 index 0000000000..e4e8d22a7c --- /dev/null +++ b/tests/docker/dockerfiles/debian-mipsel-cross.docker @@ -0,0 +1,31 @@ +# +# Docker mipsel 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 mipsel && \ + apt-get update && \ + DEBIAN_FRONTEND=noninteractive eatmydata apt-get install -y --no-install-recommends \ + crossbuild-essential-mipsel + +# 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 && \ + apt-fake install pkgconf:mipsel=0.9.7-fake pkg-config:mipsel=0.28-1.1-fake && \ + ln -s pkg-config /usr/bin/mipsel-linux-gnu-pkg-config +ENV PKG_CONFIG_PATH /usr/lib/mipsel-linux-gnu/pkgconfig +# + +# Specify the cross prefix for this image (see tests/docker/common.rc) +ENV QEMU_CONFIGURE_OPTS --cross-prefix=mipsel-linux-gnu- + +RUN DEBIAN_FRONTEND=noninteractive eatmydata apt-get build-dep -yy -a mipsel qemu && \ + DEBIAN_FRONTEND=noninteractive eatmydata apt-get install -y --no-install-recommends \ + glusterfs-common:mipsel \ + libncursesw5-dev:mipsel libnfs-dev:mipsel \ + libbz2-dev:mipsel liblzo2-dev:mipsel \ + libsnappy-dev:mipsel librdmacm-dev:mipsel