From patchwork Fri Jun 15 19:46:51 2018 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: 138802 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1282806lji; Fri, 15 Jun 2018 13:26:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ8EAhC8VWT0cwnJAKopjm+yrT0Vz7pFr+YcU17kPmn1k+F+YgcjvWvV32aI3iuqyiA0+3g X-Received: by 2002:ac8:281:: with SMTP id p1-v6mr3001323qtg.274.1529094384699; Fri, 15 Jun 2018 13:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529094384; cv=none; d=google.com; s=arc-20160816; b=TffEIosVjfub7ZU3h9WOSiriOonBS/tmz+i7kEv/PP2YHQqX5lah4fA0KEi7V+mtze RGY/wJaQktTX3TSjV1egl9hJ9g7+iCF7wQPVC3egG0J+R+FfoNY4Z/YjMl4s9cocwtb5 Gk68IB2wm/7ue3aWqWk4QrohfDKuEDgtWh3QwcxOM4zeX8lF0/K1JnugYupsHQmAjfKy hIfTHs65qODEvy+DkQDPXUTvBdXnNuCrJFpU1Ne0ZScZW0oXC0APuE5bzO8NyXB1c2F0 R0fvWjpMd4JYL5+czwBuVlBuUAX1/XRF24tKctHWUh9nhggHTyvFtCMeyI8rh/zJhKon au6A== 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:arc-authentication-results; bh=9Q0ZuHm7DrMWdzK/OyHVwGRENmTU2JsAiYcYabTtOZQ=; b=JONh0w9d8Gwwvjf+DBp9+I+CAFd09kEtczJ1sdnQSG3E8f8bvimbTLwnvOgZLNr37+ DNB/bm8l2ZYXqCfEWp23l+RXpzitJZiwNmCI5l5cZ1CI5vw9DFprfwWBTNer6DHswcwr rv3f7nAHHeNj5/Rt1VVdo7bMHwm975k/HrUfvJq/CJRtdZglomzwYgOEhPzxvM7EmAB6 dU77SnxVRQ8oNO58OmLc5X4IyHetGT/iMLnUB0H7QKCXKBEp7oloLH96TjS1AO6JyDoM UxRwEvPdJoQTDiNRXICZrjwCMYLcjkDaRO3jYAxwf+tnBc6EuEioToOr3J8UNrvLIXmi 1Pcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QUaDYim3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id m44-v6si3501853qta.390.2018.06.15.13.26.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 15 Jun 2018 13:26:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QUaDYim3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:49201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTvIe-000861-6u for patch@linaro.org; Fri, 15 Jun 2018 16:26:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTuoi-0000lO-Gu for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTuog-0006rj-IP for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:28 -0400 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:46331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTuog-0006qr-6R for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:26 -0400 Received: by mail-wr0-x234.google.com with SMTP id v13-v6so10957046wrp.13 for ; Fri, 15 Jun 2018 12:55:26 -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=9Q0ZuHm7DrMWdzK/OyHVwGRENmTU2JsAiYcYabTtOZQ=; b=QUaDYim3zwbSF9ML8n4yQUTdOt/yYaT8wS1wGH0/nawT80yegK80CYzLhimKam85rz gQ/mtylfZ+8zMB170ft0zTrkbxRM9kMzIApRYZ1Uc345pR46YbONfWkfhVaBRkXxbcW4 e69WpiweR7E0Rj94vZEzZLgFlfeqd42dcLZHw= 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=9Q0ZuHm7DrMWdzK/OyHVwGRENmTU2JsAiYcYabTtOZQ=; b=fnOBmfu3MAmjaYKXze1YpP1X9kghRtjnrd++uqGYUR68+XpubEFhlIRYLNZMcmk7oj /ngJqbpVqgMzv+mqKwwiLo7TP8IAvn7mWFMqZAuaBFeN7ncgo+ZoNeOrw3qnJY7j/drg zSt6y/TIK4Z9SEKnRhhSh+PD57o7WAeLh8xmb9dLQaX33KrWAPWL4/y5Xzh/I1063oKd KVcRbGF31TNpoctgoS/AZxJmPGp2DrSs1pISOy9b7sZMVm2bF0ZPm5zDJdUNOWyvT/Kk zvlG30CKVOUSZYb97YBJIbtnDNtXYykHlsbHrj/44m4j81V2nsWfUwNPGjHJOO/rP3z6 Ddxw== X-Gm-Message-State: APt69E1WlEUOl5LVNYcd5EN73fO9J2I18Ye5c3tN7sxHASnNQXmNw7uX mNX/pBKZpAjh0MfaLeccaAvK4A== X-Received: by 2002:adf:f6c9:: with SMTP id y9-v6mr2974869wrp.4.1529092525077; Fri, 15 Jun 2018 12:55:25 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b190-v6sm3367910wma.24.2018.06.15.12.55.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 12:55:21 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id EB02C3E0EF2; Fri, 15 Jun 2018 20:47:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de, peter.maydell@linaro.org Date: Fri, 15 Jun 2018 20:46:51 +0100 Message-Id: <20180615194705.28019-41-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180615194705.28019-1-alex.bennee@linaro.org> References: <20180615194705.28019-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:400c:c0c::234 Subject: [Qemu-devel] [PATCH v7 40/54] tests/tcg: enable building for RISCV64 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?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As before, using Debian SID compilers. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/docker/Makefile.include | 1 + tests/docker/dockerfiles/debian-riscv64-cross.docker | 12 ++++++++++++ tests/tcg/riscv/Makefile.include | 10 ++++++++++ 3 files changed, 23 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-riscv64-cross.docker create mode 100644 tests/tcg/riscv/Makefile.include -- 2.17.1 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 8fd4041716..a680743ae8 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -76,6 +76,7 @@ docker-image-debian-m68k-cross: docker-image-debian-sid docker-image-debian-sh4-cross: docker-image-debian-sid docker-image-debian-sparc64-cross: docker-image-debian-sid docker-image-debian-mips64-cross: docker-image-debian-sid +docker-image-debian-riscv64-cross: docker-image-debian-sid docker-image-travis: NOUSER=1 # Specialist build images, sometimes very limited tools diff --git a/tests/docker/dockerfiles/debian-riscv64-cross.docker b/tests/docker/dockerfiles/debian-riscv64-cross.docker new file mode 100644 index 0000000000..2b2e64cee6 --- /dev/null +++ b/tests/docker/dockerfiles/debian-riscv64-cross.docker @@ -0,0 +1,12 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian sid base image which +# contains cross compilers for Debian "ports" targets. +# +FROM qemu:debian-sid + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + gcc-riscv64-linux-gnu \ + libc6-dev-riscv64-cross diff --git a/tests/tcg/riscv/Makefile.include b/tests/tcg/riscv/Makefile.include new file mode 100644 index 0000000000..d92ac6c89f --- /dev/null +++ b/tests/tcg/riscv/Makefile.include @@ -0,0 +1,10 @@ +# +# Makefile.include for all RISCV targets +# +# Debian only really cares about 64 bit going forward +# + +ifeq ($(TARGET_NAME),riscv64) +DOCKER_IMAGE=debian-riscv64-cross +DOCKER_CROSS_COMPILER=riscv64-linux-gnu-gcc +endif