From patchwork Tue Jul 18 00:31:53 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: 789805 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 3xBM3l65BLz9ryk for ; Tue, 18 Jul 2017 10:48:51 +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="GGxbSPXx"; dkim-atps=neutral Received: from localhost ([::1]:53251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXGgx-0006h9-Sy for incoming@patchwork.ozlabs.org; Mon, 17 Jul 2017 20:48:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXGSI-0001ch-Gd for qemu-devel@nongnu.org; Mon, 17 Jul 2017 20:33:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXGSD-0005TU-ND for qemu-devel@nongnu.org; Mon, 17 Jul 2017 20:33:38 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:34588) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXGSD-0005TC-JM for qemu-devel@nongnu.org; Mon, 17 Jul 2017 20:33:33 -0400 Received: by mail-qk0-x243.google.com with SMTP id q66so734375qki.1 for ; Mon, 17 Jul 2017 17:33:33 -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=r4ozQjxE42AJH0ln8PKlHX7hzheA8ID+GHRkBP5Basw=; b=GGxbSPXxImbzLx9GJTpYbofagQw75sLR4VrhpRG0daPB2pOjd89pBH28UDC9+MmTc2 iKnEnIT4pbP5QfMCQUdsM9EyqaZPMWYhi/KkUh/Uj9i/5zyulfjFsCCR4M+66XGDAmCX yHYH2/dkq6whdOY+olQhXSgimmdwQqd2NYtNXkUHA2+X81weEZrBlezLeAhRhf4yLPB8 6lkH+/sa4MLVvayebXU38VzNcPeRhWXivSUkE82cB6gEyVs0e0ohUSS7nxAuLfzaWxT8 GEnuG/5QzyQ3EJQCXRt6h7tj9f+0nqqCrr5hHjZul/UTgEPAyxeYnXqDz38tWx4thZ3f LDyg== 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=r4ozQjxE42AJH0ln8PKlHX7hzheA8ID+GHRkBP5Basw=; b=lA9lWkImWw4SNeL9PIXyqgaVM1wuqDTHoN4NPVyi0ZF8MwyIYFSbiwu5vZwnoES1hq INdOl06cnnDx01fkOgUF6S9ulMVoPykGMqM/Avcp05mHsaYDsDFfnu47CNiKs+ajxFw7 7b0cKVptSzyELJUFqEFgrOKsaxvAozuzpNVYxtYZBUjkiuj6cPFuJPVvjzyU+30aYqtq 7cv7mlxtA0uteewR5Z62Fgd1Wte38JBaiPlh8OS1plmeUK7z6nlazUWAtQ01n/ubYC+m D/fladD+gTGBNgt4bao/ogfCBhzDmI/GoHodgg3vPu+yztDNKrvR1ds+u4qwX183UKp2 XzAg== X-Gm-Message-State: AIVw1113MGAZyARQTP/R5dLlUb26htBulz4Y4pI+Sd7pWiyTniALO/nH TYYnofFfkb+wNQ== X-Received: by 10.55.183.129 with SMTP id h123mr232175qkf.75.1500338013015; Mon, 17 Jul 2017 17:33:33 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 17:33:32 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng , Peter Maydell Date: Mon, 17 Jul 2017 21:31:53 -0300 Message-Id: <20170718003159.10200-26-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:c09::243 Subject: [Qemu-devel] [PATCH v2 25/31] docker: add debian/mips[eb] images 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?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" change image mips little -> big endian Signed-off-by: Philippe Mathieu-Daudé --- tests/docker/Makefile.include | 2 +- tests/docker/dockerfiles/debian-mips-cross.docker | 29 ++++++++++++++++++++++ .../docker/dockerfiles/debian-mipsel-cross.docker | 9 ++++--- 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 tests/docker/dockerfiles/debian-mips-cross.docker diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 202efe9ee6..e0807c0917 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -62,7 +62,7 @@ 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-mips-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-mips-cross.docker b/tests/docker/dockerfiles/debian-mips-cross.docker new file mode 100644 index 0000000000..550f43281b --- /dev/null +++ b/tests/docker/dockerfiles/debian-mips-cross.docker @@ -0,0 +1,29 @@ +# +# Docker mips cross-compiler target +# +# This docker target builds on the debian Stretch base image. +# +FROM qemu:debian9 + +MAINTAINER Philippe Mathieu-Daudé + +# Add the foreign architecture we want and install dependencies +RUN dpkg --add-architecture mips +RUN apt-get update +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + gcc-mips-linux-gnu + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get build-dep -yy -a mips qemu + +# Specify the cross prefix for this image (see tests/docker/common.rc) +ENV QEMU_CONFIGURE_OPTS --cross-prefix=mips-linux-gnu- + +# Install extra libraries to increase code coverage +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + libbz2-dev:mips \ + liblzo2-dev:mips \ + librdmacm-dev:mips \ + libsnappy-dev:mips diff --git a/tests/docker/dockerfiles/debian-mipsel-cross.docker b/tests/docker/dockerfiles/debian-mipsel-cross.docker index eb279c5044..6378bd41e7 100644 --- a/tests/docker/dockerfiles/debian-mipsel-cross.docker +++ b/tests/docker/dockerfiles/debian-mipsel-cross.docker @@ -4,6 +4,7 @@ # This docker target builds on the debian Stretch base image. # FROM qemu:debian9 + MAINTAINER Philippe Mathieu-Daudé # Add the foreign architecture we want and install dependencies @@ -11,13 +12,15 @@ RUN dpkg --add-architecture mipsel RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive eatmydata \ apt-get install -y --no-install-recommends \ - crossbuild-essential-mipsel + gcc-mipsel-linux-gnu + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get build-dep -yy -a mipsel qemu # 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 +# Install extra libraries to increase code coverage RUN DEBIAN_FRONTEND=noninteractive eatmydata \ apt-get install -y --no-install-recommends \ libbz2-dev:mipsel \