From patchwork Fri May 25 14:19:08 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: 136922 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3674183lji; Fri, 25 May 2018 07:37:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKITCzaUU1L/wSGMK+k9GtOyYTVbIDtlUp/1r8R9rNedC9Mcx5D/tLc/DDtXpn8r+ajjlTyX X-Received: by 2002:aed:3fb8:: with SMTP id s53-v6mr2568957qth.113.1527259057443; Fri, 25 May 2018 07:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527259057; cv=none; d=google.com; s=arc-20160816; b=avF946Zj2J3Xux6WQ3w2BDTMRQigbnsbZEAN/R2+FtZoCQycTuuNY3BW0Mi/VlXzz3 1HHNMlGI5Vrl3Bp7q09gRYaf5QwNdPgzdQwIOFmVLCNe2P5hN6wFJrA93dhm2DHG0L8g 6QQ23ABkyu8RSUTdmTaODXuaO8ykV4bNXoeoW3ZBeR1iejsUF2M6POnA/lrmjbNABUbI kgzkby4GhjM+LVNGZ7B/VVKOY9V5xs2lag+gj/QX5GhGSa5Gqm4KlOtoxaXcTnw1XV+M TYzbjZnWKmgI+zxDh6/4ybFcVPxCrP15Jg/AKww4bG+ITjELTQceDpTM6mnf3B1Ye1m3 bHxQ== 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=Yuu+GC6yL6ywKxeF0PAKFUOpE2EcbQeU3DYDEriQ9Wo=; b=ZB9maS7vAXlJW7Z9mJxfjWUbFJW4Ls8CnlPEYcB7aYxO4Gnc/KnVbL4gEYPm624Uaq 0OqKM+ST/nFEDutZGS1cI06mwyidAylendGKkfiUzmpywoWLEk435sd7EhD1+DhIAIOU A/MC2hmOl+wiBukiwEreSVyX7WgUI9XP3+5T+ogjXS35bexKXT6J/qPn4K7TNayXSXMl /ZK/DGpxeWdY2UJM2VNRF9wuo75O9J0LbMh7llrvRtzecFmdjwj0vnTernF9crAbE3MS 3zAlAK3Ha7AOw4P+6A/xFOs9hHbKNuW8f5mRNSRHVYrMHw2lrq5SH7OZd4ym3vDSj+Q5 69tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DTDf+9x8; 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 p186-v6si6482759qkf.49.2018.05.25.07.37.37 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 May 2018 07:37:37 -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=DTDf+9x8; 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]:44388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMDqa-0006mg-PH for patch@linaro.org; Fri, 25 May 2018 10:37:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMDZ7-0001B4-UA for qemu-devel@nongnu.org; Fri, 25 May 2018 10:19:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMDZ6-0000c4-Vi for qemu-devel@nongnu.org; Fri, 25 May 2018 10:19:33 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:41401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMDZ6-0000bN-P8 for qemu-devel@nongnu.org; Fri, 25 May 2018 10:19:32 -0400 Received: by mail-wr0-x22c.google.com with SMTP id u12-v6so9526708wrn.8 for ; Fri, 25 May 2018 07:19:32 -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=Yuu+GC6yL6ywKxeF0PAKFUOpE2EcbQeU3DYDEriQ9Wo=; b=DTDf+9x8JoTRANvNquebvywZInWXy5PLRSvEqSE8gS4FiY3sFmXWTnJfsmJ09LdeI+ isVKY2RgLzds/kuhBbNUUdRPPXSoFxrdQmOy5NJ2aMVvH+rQ/+ghQwFBK9sQqX1KV6Ou 8jtEu/umBLDEs0bNKzSF52YCT6wSMPGHEYcxQ= 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=Yuu+GC6yL6ywKxeF0PAKFUOpE2EcbQeU3DYDEriQ9Wo=; b=rYMx3QxLc+kTeFO1A+C5lRq2gxBShZHPLIsAq0fMp4XFYPk0fG0xlF8C/ErDhB8EoD kduOp/17dkiaDwdbwKd/YDLu0WAuyJgi6o7SWdtGlFmA2c+DXfOac5g2WnXnVimyQUCY c0QIHWSC5LrygMnS2qnx7/pbprqh8/FGcteTnl4UtMwulrb1cd0rXy9LyBuu2oEbKr+x rX3PTYJNDdesmsNvb+w/TTntD+hzIWIp+brWEAjZyEAVi0A/52Fdef/Dpx88dwNbPwKW 4bH7ht23H+A5UIwWnxsxiBMBT6HHW6IuLWl1q4wHV7aNgT6aaeA/2X9gWl0cdF+4TweB yqWA== X-Gm-Message-State: ALKqPwegYH0civXREABzniRHLecc+AqBZxm4WGwQFEmbn+CQpzD8pR/B NZ2HSlcHQya6+xrr5ChUJUwHOg== X-Received: by 2002:adf:dfc2:: with SMTP id q2-v6mr1481887wrn.113.1527257971675; Fri, 25 May 2018 07:19:31 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p5-v6sm1685066wre.83.2018.05.25.07.19.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 May 2018 07:19:27 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 65ED13E07D1; Fri, 25 May 2018 15:19:15 +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: Fri, 25 May 2018 15:19:08 +0100 Message-Id: <20180525141915.6497-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180525141915.6497-1-alex.bennee@linaro.org> References: <20180525133851.27161-1-alex.bennee@linaro.org> <20180525141915.6497-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::22c Subject: [Qemu-devel] [PATCH v5 42/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 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.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index ccd824a329..36779645d7 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