From patchwork Tue Jun 19 15:44:19 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: 139192 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5394249lji; Tue, 19 Jun 2018 09:10:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKy9EXNVYtZoOm0RK16xWSTj7zp5nazigMmyRdoCJTKzKjXUdOdais2w2QPD/ztQfhu6xG0 X-Received: by 2002:aed:3c42:: with SMTP id u2-v6mr15667140qte.198.1529424647773; Tue, 19 Jun 2018 09:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529424647; cv=none; d=google.com; s=arc-20160816; b=fCwcrStfymftuhr0u5lykDA6b8qmgJfo5OReW9Zi7cvzGdq6R9Uz0IXk06EJ3MQ++r F6gLyg8FHOZufWTiXEYK1rgYyDNahbb+LU47XgYz58YtSoQ0jWuWApMydUUzVYJAWz7r 2Bim2pK1TQPwr6Ju0e+u+k29rxFC2/4+IOB4ywBVl0SpUJbWr6hQN3FGBAip+WCAaPJ3 2TRn0KK7tvFiV3HGSu1TBDFf1IyZOPrlmctD613z10CC/T6UiHaDqTaq4O5VyVHRKBkQ VzViIdqRZcTdCTKKFEzSMF/Liim/08ZSqmB4ZaFCwOUf9U59oEpewSFulqOA7d88OcgS aSIA== 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=FMaRKpZbxiupWBIPDH/+LH+3B3IIVv0+kaFyg9vGY9w=; b=YVGwC4EFprOrqGWSYjYay0NHv4R6oxxAUa5j1RRV61piifg0dYlX5urOMFsWLdQoRj GLS5n8NHUWGngkQzarifxwF19NAlO4V8mJUPNYBNKd0t/zU1eaVlK/0apUTFt0Vd3JsZ dghVAiVo02pOsaXxU3BN02mUBnmYhyyPG/T5WybpC/qxanijAKkIlGsrxNag7F9LtYHO 7st3QMCklLyfwdUm5KJ48zPjQSfTH8lhBbe+Br1oWtRBd9Z0wjGEmEgaksA2qvbc+WjZ 1I3wB2GK7zXC4oapOSwmVFB1mBl9mSLlK1SPrQ3eWxpr2YeRQqGrTsE/u4G/31vsG5XU AjHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ErajYPRg; 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 e187-v6si43906qkb.358.2018.06.19.09.10.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Jun 2018 09:10:47 -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=ErajYPRg; 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]:43492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVJDT-0002x3-6L for patch@linaro.org; Tue, 19 Jun 2018 12:10:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVIvR-0004E7-GE for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:52:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVIvG-0001pj-9u for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:52:09 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:39348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVIvF-0001oB-R1 for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:51:58 -0400 Received: by mail-wm0-x236.google.com with SMTP id p11-v6so1346770wmc.4 for ; Tue, 19 Jun 2018 08:51:57 -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=FMaRKpZbxiupWBIPDH/+LH+3B3IIVv0+kaFyg9vGY9w=; b=ErajYPRgInNpLGTAcnk8FXJDSbp9Bj01MKLE6wggY0x4WfG/gCNAWsXAt5jfugKg11 2QH+53RtVRvyUojRWTVAkDyPEAI4Am4e/YBrG1ax7JkpGrjRalXZSL0Q39SKtNGducle nr7M83nnt4BXGVFU5/V1yISvx9jSg/xsovGqc= 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=FMaRKpZbxiupWBIPDH/+LH+3B3IIVv0+kaFyg9vGY9w=; b=Jy0CY6Ot6lwnYJjelhtFZBdyL6WqO6lnX6wu+L2tdbYoL1n0Z/pIzhHQuysu3KyMaL J5o3ybFaqvF7rWodVKlsbuEuxGhwLatuk2BD4gsufUtxeECLActsSTX8bi2PQVzoBedM F8ku9cnLX/NzwivaMiLBoxtwcV02vddxLnU2iK8N60qbsvYQ5OydSfNv7fOEmOnW5L/V 0TwNh2fYwF7iTgogToBy/UMkoTfmXRZajWBUeHZp4GjlUzVK4piOO87W5m4hFebo1OjP k76FT2A89gBJ7rWefhq7UatkTuVPMUId77m0dGq9cz8QhRnF7TmXaYMsiZwFsIJ5pAYF exvQ== X-Gm-Message-State: APt69E1Bh5fFTGzlQyEwm0MKlu0FV4o52kCnfaYVDauTTg4rvZ2DY4LH UPraXhMdvvMAUBFTdH+FqYC1TA== X-Received: by 2002:a1c:d2cb:: with SMTP id j194-v6mr11528653wmg.129.1529423516673; Tue, 19 Jun 2018 08:51:56 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id j131-v6sm517805wmb.35.2018.06.19.08.51.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jun 2018 08:51:51 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 1314D3E08B3; Tue, 19 Jun 2018 16:44:39 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 19 Jun 2018 16:44:19 +0100 Message-Id: <20180619154435.18898-41-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619154435.18898-1-alex.bennee@linaro.org> References: <20180619154435.18898-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:c09::236 Subject: [Qemu-devel] [PULL 40/56] 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: agraf@suse.de, =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, qemu-devel@nongnu.org, f4bug@amsat.org, cota@braap.org, famz@redhat.com, aurelien@aurel32.net 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é -- 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