From nobody Tue Feb 10 06:25:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1500346165136393.14566690168317; Mon, 17 Jul 2017 19:49:25 -0700 (PDT) Received: from localhost ([::1]:53546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXIZf-00049K-OO for importer@patchew.org; Mon, 17 Jul 2017 22:49:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXIXl-0002pV-Ba for qemu-devel@nongnu.org; Mon, 17 Jul 2017 22:47:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXIXj-00080x-Sr for qemu-devel@nongnu.org; Mon, 17 Jul 2017 22:47:25 -0400 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:35781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXIXj-00080I-Nh for qemu-devel@nongnu.org; Mon, 17 Jul 2017 22:47:23 -0400 Received: by mail-qk0-x22e.google.com with SMTP id p73so6180874qka.2 for ; Mon, 17 Jul 2017 19:47:23 -0700 (PDT) Received: from yoga.offpageads.com ([138.117.48.223]) by smtp.gmail.com with ESMTPSA id p24sm697469qki.49.2017.07.17.19.47.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 19:47:22 -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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=2S7rO3E8B2aKxmg9sU5o9J8gTvgGOTqlqXDUG4ej9ek=; b=OlIT4j0XWnxU8/LCHSLYa5bbUzNZGNyfOqKrZsm2bEU6STxVMHGPdqtpog+AnkSFiA 0J+waOt0UmoAEfefgYpFctVHSGFCwygMOx9OVc06YLWMVk/wZXttlC2QT1XBUOI1Aorv WyxfV5hIx7dfU4MuHsU7tug2SA7STxBEJecjI346th/Vj/UcF703Ow/EpZn3e5wG8AHJ ShpbfurVl4JAqkjd35ONI/tq8or6sd3Khd2kcMfnkiD7fINF8m008m1w0U8/q9fqt4CH AscwTZc26zrmfp7hSMrFY58YONzDKVsq+fych9TVmdp7TC1OimpX0rtpqRBtBKHqzc6f go3w== 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:in-reply-to:references:mime-version :content-transfer-encoding; bh=2S7rO3E8B2aKxmg9sU5o9J8gTvgGOTqlqXDUG4ej9ek=; b=GPbZh4E9lWI8JwWPJisWcIg35/i1QF6vpzKZe76xxdB0ins+K4KFVh19VpBoPKIu31 HtwkuM8N/Gtq9HAoteqUUQ+T3oelAPQ4Ou9z4m0vtFEUJeXxQypQK2eM9lbbDATNpCN0 NVN0/6TPKEmawGAWEpUMDVejnmREwx+VX6KqPsRMnRhgdBbLWxFyJfUVNGPKiBXLaHyg CsLjmWguWb9+JUAY5OQe9+ICQ966j8xRhGIlKdj7mYd4ncmYgaHumSDLdNpld/fQpYoq Q+uhF3J1CnnihIqWLc4YX9/cQkaFrRkwRfbe8h2+ltvtc2xoFUtNK7hjia+qjzecMFGG 7gHw== X-Gm-Message-State: AIVw111u6t4L1Exb0AbMvdxf+9GjQbQnGUqOZ4C/WDKJ3ZB/XzxV8ESt sPy5BuN57tx8OnLKss0= X-Received: by 10.55.101.139 with SMTP id z133mr645781qkb.259.1500346043059; Mon, 17 Jul 2017 19:47:23 -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 23:47:09 -0300 Message-Id: <20170718024713.27557-2-f4bug@amsat.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170718024713.27557-1-f4bug@amsat.org> References: <20170718024713.27557-1-f4bug@amsat.org> In-Reply-To: <20170717144848.11793-1-alex.bennee@linaro.org> References: <20170717144848.11793-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::22e Subject: [Qemu-devel] [PATCH v2.5 1/5] docker: add MXE (M cross environment) base image for MinGW-w64 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 see http://mxe.cc/ Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/docker/Makefile.include | 3 ++ tests/docker/dockerfiles/debian-win32-cross.docker | 32 ++++++++++++++++++= ++++ tests/docker/dockerfiles/debian-win64-cross.docker | 32 ++++++++++++++++++= ++++ tests/docker/dockerfiles/debian8-mxe.docker | 18 ++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-win32-cross.docker create mode 100644 tests/docker/dockerfiles/debian-win64-cross.docker create mode 100644 tests/docker/dockerfiles/debian8-mxe.docker diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 5a8283674a..e993e149e7 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -58,6 +58,7 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker docker-image-debian-powerpc-cross: EXTRA_FILES:=3Dtests/docker/dockerfiles= /debian-apt-fake.sh =20 # Enforce dependancies for composite images +docker-image-debian8-mxe: docker-image-debian8 docker-image-debian-amd64: docker-image-debian9 docker-image-debian-armel-cross: docker-image-debian9 docker-image-debian-armhf-cross: docker-image-debian9 @@ -67,6 +68,8 @@ docker-image-debian-mips64el-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-win32-cross: docker-image-debian8-mxe +docker-image-debian-win64-cross: docker-image-debian8-mxe =20 # Expand all the pre-requistes for each docker image and test combination $(foreach i,$(DOCKER_IMAGES), \ diff --git a/tests/docker/dockerfiles/debian-win32-cross.docker b/tests/doc= ker/dockerfiles/debian-win32-cross.docker new file mode 100644 index 0000000000..dd021f2df0 --- /dev/null +++ b/tests/docker/dockerfiles/debian-win32-cross.docker @@ -0,0 +1,32 @@ +# +# Docker mingw32 cross-compiler target +# +# This docker target builds on the debian Jessie MXE base image. +# +FROM qemu:debian8-mxe + +MAINTAINER Philippe Mathieu-Daud=C3=A9 + +ENV TARGET i686 + +RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + mxe-$TARGET-w64-mingw32.shared-bzip2 \ + mxe-$TARGET-w64-mingw32.shared-curl \ + mxe-$TARGET-w64-mingw32.shared-glib \ + mxe-$TARGET-w64-mingw32.shared-libgcrypt \ + mxe-$TARGET-w64-mingw32.shared-libssh2 \ + mxe-$TARGET-w64-mingw32.shared-libusb1 \ + mxe-$TARGET-w64-mingw32.shared-lzo \ + mxe-$TARGET-w64-mingw32.shared-nettle \ + mxe-$TARGET-w64-mingw32.shared-ncurses \ + mxe-$TARGET-w64-mingw32.shared-pixman \ + mxe-$TARGET-w64-mingw32.shared-pkgconf \ + mxe-$TARGET-w64-mingw32.shared-pthreads \ + mxe-$TARGET-w64-mingw32.shared-sdl2 \ + mxe-$TARGET-w64-mingw32.shared-sdl2-mixer \ + mxe-$TARGET-w64-mingw32.shared-sdl2-gfx \ + mxe-$TARGET-w64-mingw32.shared-zlib + +# Specify the cross prefix for this image (see tests/docker/common.rc) +ENV QEMU_CONFIGURE_OPTS --cross-prefix=3D$TARGET-w64-mingw32.shared- diff --git a/tests/docker/dockerfiles/debian-win64-cross.docker b/tests/doc= ker/dockerfiles/debian-win64-cross.docker new file mode 100644 index 0000000000..4542bcc821 --- /dev/null +++ b/tests/docker/dockerfiles/debian-win64-cross.docker @@ -0,0 +1,32 @@ +# +# Docker mingw64 cross-compiler target +# +# This docker target builds on the debian Jessie MXE base image. +# +FROM qemu:debian8-mxe + +MAINTAINER Philippe Mathieu-Daud=C3=A9 + +ENV TARGET x86-64 + +RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + mxe-$TARGET-w64-mingw32.shared-bzip2 \ + mxe-$TARGET-w64-mingw32.shared-curl \ + mxe-$TARGET-w64-mingw32.shared-glib \ + mxe-$TARGET-w64-mingw32.shared-libgcrypt \ + mxe-$TARGET-w64-mingw32.shared-libssh2 \ + mxe-$TARGET-w64-mingw32.shared-libusb1 \ + mxe-$TARGET-w64-mingw32.shared-lzo \ + mxe-$TARGET-w64-mingw32.shared-nettle \ + mxe-$TARGET-w64-mingw32.shared-ncurses \ + mxe-$TARGET-w64-mingw32.shared-pixman \ + mxe-$TARGET-w64-mingw32.shared-pkgconf \ + mxe-$TARGET-w64-mingw32.shared-pthreads \ + mxe-$TARGET-w64-mingw32.shared-sdl2 \ + mxe-$TARGET-w64-mingw32.shared-sdl2-mixer \ + mxe-$TARGET-w64-mingw32.shared-sdl2-gfx \ + mxe-$TARGET-w64-mingw32.shared-zlib + +# Specify the cross prefix for this image (see tests/docker/common.rc) +ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Dx86_64-w64-mingw32.shared- diff --git a/tests/docker/dockerfiles/debian8-mxe.docker b/tests/docker/doc= kerfiles/debian8-mxe.docker new file mode 100644 index 0000000000..7bf1b59e54 --- /dev/null +++ b/tests/docker/dockerfiles/debian8-mxe.docker @@ -0,0 +1,18 @@ +# +# Docker mingw cross-compiler target +# +# This docker target builds on the debian Jessie base image. +# +FROM qemu:debian8 + +MAINTAINER Philippe Mathieu-Daud=C3=A9 + +# Add the foreign architecture we want and install dependencies +RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16= ABE9643FE1AFD8FFF16DB45C6AB && \ + echo "deb http://pkg.mxe.cc/repos/apt/debian jessie main" > /etc/apt/s= ources.list.d/mxeapt.list +RUN apt-get update +RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + $(apt-get -s install -y --no-install-recommends gw32.shared-mingw-= w64 gw32.shared-mingw-w64 | egrep "^Inst mxe-x86-64-unknown-" | cut -d\ -f= 2) + +ENV PATH $PATH:/usr/lib/mxe/usr/bin/=20 --=20 2.13.2