From patchwork Thu May 17 17:47:14 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: 136208 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp281241lji; Thu, 17 May 2018 11:31:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpSPI9W8GI6Hbd5LrKtmUXKB5OqhPKPG/9usFa92ONNORYh9CjKsZOyFjZstxzfPJOnFOwU X-Received: by 2002:a0c:9825:: with SMTP id c34-v6mr6160238qvd.150.1526581910558; Thu, 17 May 2018 11:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526581910; cv=none; d=google.com; s=arc-20160816; b=T+lfGW0kIBRmdrBcuB5tTeYZBp6sJ/E7ul+9F7TqF5xBkXZxoJino3XPAR/9RR7+es NQdzZRUBYmZQUqD0gtYfwgWKXs4k74wYkZqmMVqJ+O9pnJFGJGLSs9wBWtKzB71rHLRH WUQonFbet/toJ6Z9s6vFUJJNuqF60YMbnmRTsGtMgPiQn/neYLz+yFtedNEdF4Exu/as f9hkepUAPVYyQcahLuazCIN7kYdQEiuBHxgNSVe2ZuhJ9EXlQQ1+mR5vTu5bwGBmkC6d RNWuDZD17SCuMdmJSpVRpbUAdmWTAdw+u3eJBZoF+M0RCvLrqY46TwJSZgdx3yJn2HmH +RYQ== 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=4k6Et3Un6MS+3/6cxYeDlsieJy5PdQ4T40yhzC7xNnk=; b=ykj28Ebk4XVilH/ykzwIT6zZjt5oNCEHV939nXQx2ofm5K5pJnjpvYGn1FTl1MTS1X V2L50O304eU0+XaVyBBgwEGhmIbSI4eQdu2qamMTXGwmjgHf1KIEhq2b6S4nltdo3kFl 3VqTutM3xxkly9/PMsOWHz4TBJoowOyxOf5ErAfiunGiVj3RB26YDXHZYJs5fW6n4M8B j2FoayaFxEha+sZmZ5z4ABoe5Eb0XgyKCmcN+XvO07RHFnwkTUarJxmEQWzfbuxCX5ja fvTDsc3Olqg5qlrBPGEpT7Rs+aelNP3o9/Gdp2hG8KpcVUTBgWpgV2NoSmDkkaXPQAXX a7wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=IOeCSJ9b; 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 o62-v6si4221816qkd.19.2018.05.17.11.31.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 May 2018 11:31:50 -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=IOeCSJ9b; 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]:38691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJNgs-00027E-1r for patch@linaro.org; Thu, 17 May 2018 14:31:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJNFx-0003b1-A9 for qemu-devel@nongnu.org; Thu, 17 May 2018 14:04:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJNFw-00051M-9P for qemu-devel@nongnu.org; Thu, 17 May 2018 14:04:01 -0400 Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:46330) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJNFw-00050Q-0o for qemu-devel@nongnu.org; Thu, 17 May 2018 14:04:00 -0400 Received: by mail-wr0-x22e.google.com with SMTP id x9-v6so3725951wrl.13 for ; Thu, 17 May 2018 11:03:59 -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=4k6Et3Un6MS+3/6cxYeDlsieJy5PdQ4T40yhzC7xNnk=; b=IOeCSJ9b+lqFPl5tvwnYDpi4KI2x4yBqglCNynFVxn0+zbj14wMr7KsgjqT1Z5H1yS IADU1zWLdxRAMe5gkhRM7WTGby9JVUl4zaU2m/PRC8IrK8qBZFcjMqg5hrEKfbcqiLNR WfpPWlzl+xuNVeCqk55jqpU55FVgY2yendIL4= 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=4k6Et3Un6MS+3/6cxYeDlsieJy5PdQ4T40yhzC7xNnk=; b=U68sKtlz1Wf52GksaT+yWs9z3cpF/1U99bnilChrIT3cwlj18dyq2Aph451xQvMHF1 PFMI6EnSYCtthbzfRMVOmSbGumtEtUvgTWCQR5JMc2Qp6AhFQeVOFl+7d57jyExEWury ciwQwziSk004PmzgqEVzhIuLP+NMLyZ479+vdS1LZEu6F8OhcQrIGkOrxx4NKLBvFf22 +r+Sl0ZMx2U86QWH4PgBVU+IgGhJXbU9RyR+K6uHkR63L81t8DgtXheh+32kLJyRgI1g eQmK+UXuTOClIquWhIxuMzwKfSQk3NBRaPRg+0BN2mTssDFF5ftSzhjHskonK6/IDg9/ SIjQ== X-Gm-Message-State: ALKqPweSdHXAu22bQQcCu37uW/9z6BHDa6ePp+ZVwAYI1gxcfT28NmYB vqTn0TFmA5HdMy48MybRQYdTDg== X-Received: by 2002:adf:e0c7:: with SMTP id e7-v6mr2460832wri.70.1526580238874; Thu, 17 May 2018 11:03:58 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u69-v6sm6809818wma.37.2018.05.17.11.03.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 11:03:57 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9776B3E0CF5; Thu, 17 May 2018 18:47:22 +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 Date: Thu, 17 May 2018 18:47:14 +0100 Message-Id: <20180517174718.10107-46-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517174718.10107-1-alex.bennee@linaro.org> References: <20180517174718.10107-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::22e Subject: [Qemu-devel] [PATCH v4 45/49] 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 --- 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.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index f58afb8c5d..d00887bdf1 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -68,6 +68,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 # Expand all the pre-requistes for each docker image and test combination 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