From patchwork Wed Sep 4 20:29:57 2019 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: 173082 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp458083ilq; Wed, 4 Sep 2019 14:26:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWxmbi2IL/uMiKLOHxNGdD39jUBrwSCGPK3zt8wYy+acFGc/ZZnfXQYYr6hwHpP3xnghey X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr97449eju.239.1567632414029; Wed, 04 Sep 2019 14:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567632414; cv=none; d=google.com; s=arc-20160816; b=KbLJYC3tlR6Dj7eVF6b7GrgH0OYMoPWq0Dsv8oosk8CvcgDMeVshV+JZLjPm4znYxb WUyGPdmfbo9TCHEvnZ+bFG6h9yZYhKwW6IuOMCHrJZM+iy1z01+0J0jlU1FIRfFYdX5J 6aoukrZ1FOtdDLQHf0OsLlm9wkVl32tptRas5uLxv6Cc0sZbiolIK0xE0Tnh+Oc/Yr5E H6ixTKnfpbUBAeXb9zwFZ67Ph0WwqGGzuRCXQ5UfkD0NTOTVlpFTWW4a9a1Y/z5Qc27g RWJ9vblcV2/qFDnB1Pk2rKiRYQuUXGJ3Qif3CnoGLQALc3V+Nq4faueedjz3yeQiaM9H mD3Q== 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; bh=7DN2Mz1jlphjeBD6Hgfr/tcOfOE2X7DGMlU3BQxiSxE=; b=ibFTm9rWclMZc4qeuulG+CXa61Iy+Ejtjgwb9hS0fIgNhf5x+HVHK6YTJgXmI0hM6H bNsBHAo6wbMFmqIa3z2H6jHy9UPrHPvzzwVk1kf1bvhn//hz1zRCTYNS8tb0iHOORI9E pVPxgFZtuJKDEgfMdSkMjBzFflqKGa3u0aRfMavK1ljjhBckkBczp7mQ/PSsWqzH1Mlv 7Xgg9yIo8+KdPW+wHS5Gst4fMLCGSGYZgAJB5D/8ks84XhS7J6VVuObx1LrzroWlG7uT EQITIM9IqRif3yk/mUd/Ndp/ql//tqGBzS9/+tHzgJHdGcb1l0n3fTI+Ej3sqTDPI35v gV+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cAnDLgN4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id w3si126716ejq.400.2019.09.04.14.26.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Sep 2019 14:26:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cAnDLgN4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:40148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5cnk-0007mF-9a for patch@linaro.org; Wed, 04 Sep 2019 17:26:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51663) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5c40-00014e-9Q for qemu-devel@nongnu.org; Wed, 04 Sep 2019 16:39:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5c3y-0003ZE-W6 for qemu-devel@nongnu.org; Wed, 04 Sep 2019 16:39:36 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:34614) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5c3y-0003YX-M5 for qemu-devel@nongnu.org; Wed, 04 Sep 2019 16:39:34 -0400 Received: by mail-wm1-x32e.google.com with SMTP id y135so3360195wmc.1 for ; Wed, 04 Sep 2019 13:39:34 -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=7DN2Mz1jlphjeBD6Hgfr/tcOfOE2X7DGMlU3BQxiSxE=; b=cAnDLgN4AEjP9y/AdcF7Qad0MexMWbLi1FxkPzh9cRZnESXJki8NPyezG2BsNCb3M3 jWfhihJNGNNHMwhNx+ccV003tzJRxqy+r5hlDET37Gve1DGLbN1eLBGkLtbdphMtTyIU SBXJRRl1ec4eoTmYp7KMWY9PATyjKc0aW5u3qP1gV1lf+4p4LcQtcr/rNXMMRmh4IA8V n/vy+ptkxGP3qjBcUMia/RX+1xUuVXSNV84+khTdnGpH9I3imoXbh/ZxOR4SWyot9BQT oNu7zAPjAXGUULtyOLRj7oRnQSibj7NiZyNETobSnQEa2mDnmvtcjjWDG8EvYwnVRTIC swxw== 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=7DN2Mz1jlphjeBD6Hgfr/tcOfOE2X7DGMlU3BQxiSxE=; b=GrG2Hlxjl9w3+sezSFLcr6pDilDIRxAk5aA2YkmxN55y1pTXnGs3uh+bApzozK/IAW 0Pg7l1GzOjqMoDi2231s4DaSwkUJdGTu8wnvQnL9tK1pOWmuEsiWsGgJxO0iuJJvMNQL Jch5+cnKyRCmXpLDxJGs57GlLzaS9RhiJjo/hgvP3aw92OA/ID6QdYF8qYjy++XdrL2p 4a9e0S/CyMjkOtpujUbtlEsTDm0pGLhCR0FCFt44Hwp7U7Nu015TTTX9ZnniuT1MgmgR jkQQ+PLIc+118ZNV2dxI9J+5WL5uoj6mWhYgLzBT+rH00m6PLzBaNl0H0BG4TlVeOuBk JzpA== X-Gm-Message-State: APjAAAXdp+HqhPWxkxtUY7LVRQH6NB4JEi6wGc7Z0uNvr51q/2Ht7bP9 b2kCa72aFaZ5viq55rkn0ZFibw== X-Received: by 2002:a7b:c7cc:: with SMTP id z12mr132592wmk.80.1567629573695; Wed, 04 Sep 2019 13:39:33 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id a18sm4336262wrh.25.2019.09.04.13.39.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 13:39:31 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CAD6E1FF8C; Wed, 4 Sep 2019 21:30:15 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 4 Sep 2019 21:29:57 +0100 Message-Id: <20190904203013.9028-27-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190904203013.9028-1-alex.bennee@linaro.org> References: <20190904203013.9028-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:4864:20::32e Subject: [Qemu-devel] [PATCH v1 26/42] tests/docker: add debian-amd64-cross for non-x86 hosts X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" When building on a non-x86 host we need to setup the x86 build like any other cross compiler. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 6 +++++ .../dockerfiles/debian-amd64-cross.docker | 22 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-amd64-cross.docker -- 2.20.1 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 2c8cb790ad0..cb0961a69e4 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -87,7 +87,13 @@ endif # Enforce dependencies for composite images docker-image-debian9-mxe: docker-image-debian9 +ifeq ($(ARCH),x86_64) docker-image-debian-amd64: docker-image-debian9 +DOCKER_PARTIAL_IMAGES += debian-amd64-cross +else +docker-image-debian-amd64-cross: docker-image-debian10 +DOCKER_PARTIAL_IMAGES += debian-amd64 +endif docker-image-debian-armel-cross: docker-image-debian9 docker-image-debian-armhf-cross: docker-image-debian9 docker-image-debian-mips-cross: docker-image-debian9 diff --git a/tests/docker/dockerfiles/debian-amd64-cross.docker b/tests/docker/dockerfiles/debian-amd64-cross.docker new file mode 100644 index 00000000000..5d890419251 --- /dev/null +++ b/tests/docker/dockerfiles/debian-amd64-cross.docker @@ -0,0 +1,22 @@ +# +# Docker x86_64 cross target +# +# This docker target is used on non-x86_64 machines which need the +# x86_64 cross compilers installed. +# +FROM qemu:debian10 +MAINTAINER Alex Bennée + +# Add the foreign architecture we want and install dependencies +RUN dpkg --add-architecture amd64 +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive eatmydata \ + apt install -y --no-install-recommends \ + crossbuild-essential-amd64 +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive eatmydata \ + apt build-dep -yy -a amd64 --arch-only qemu + +# Specify the cross prefix for this image (see tests/docker/common.rc) +ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-linux-gnu- +ENV DEF_TARGET_LIST x86_64-softmmu,x86_64-linux-user,i386-softmmu,i386-linux-user