From patchwork Tue Mar 12 17:09:17 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: 160146 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp13363318jad; Tue, 12 Mar 2019 10:26:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQlAJ4DFELLioCjnU/iipVVKDWo2JSCVS48Gw/I137Gh53FOhhNww2TD1bliUYxtHubZqp X-Received: by 2002:a25:6607:: with SMTP id a7mr4148686ybc.71.1552411592035; Tue, 12 Mar 2019 10:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552411592; cv=none; d=google.com; s=arc-20160816; b=jPghB219aKoMSACxDclYXEX03xs0aRTXddZ8Ix73l92xFSDaT0hhszBapPHJzyNr3K aSZ2VhYEgXQhuGO++DQV8ZZrLh8ZSFl87Da3WYGf3pRPvFCc45jPvP2xOKbojc7dJJR/ IV7OWJdY+UeXIgTen/3BsQ759YGHAYYgQ5usgALwwakTpw50ah0SbC9id/kZ0dIJZdyR Pb6r53TdYyHSWF+hhVVGnZ3F0/70pU6yoEwiF4CZlY16EHgAJGIK+/s0BdtHWzO5CE68 CKc6dqkJ6DeMa8x0XXDVxMNqEQLV1gjr219tiYT8/bonfQj5OIyBBDl0f0OA6TpqhE7C bjyA== 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=7ATSlDml04RtK4bZEzwPkz9XSwfh2pVDONM2uQX3sVU=; b=cTa9L+xHOKQy25VdlA/KSmlVsShRurHIf4kOdoTuGNaSm97g5PJuZGr4VNdtnF+I8B t4Hi3aSLB38l04T1lBnb87uAfrpURaptnbQqNhE9GvzVKATkGJTqVOWaRSgfLhXm9rcf qbSIrZn9UwDpCEWjpm+ljhh96XsFs9Qxk3lOf/inspsS+xhdTxAXhru99NNkyIPKRNC+ 7oQQ3exewZm64drj/+Us1PKeTMaK/hQCh9rUAAYWI6lJ2Fa8iHzprYac/UzyXPDr4IFN IBtPanXSNf58lake7dA5S1jhqxUpFeMwfL1/VQ7yMk60aYWIfiDGj//++VaScP4RX39m otfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=wrWfUlN+; 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 r126si5651304ywf.15.2019.03.12.10.26.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 12 Mar 2019 10:26:32 -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=wrWfUlN+; 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 ([127.0.0.1]:56375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3lAd-00046T-D9 for patch@linaro.org; Tue, 12 Mar 2019 13:26:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3l2h-0005SB-B0 for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:18:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3kzn-0003vE-I1 for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:15:21 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:38131) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3kzn-0003rB-5W for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:15:19 -0400 Received: by mail-wm1-x332.google.com with SMTP id a188so3441136wmf.3 for ; Tue, 12 Mar 2019 10:15:16 -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=7ATSlDml04RtK4bZEzwPkz9XSwfh2pVDONM2uQX3sVU=; b=wrWfUlN+8lPgtxVlntxWPefhOEpmbK1JA7yHWLm3ZXFnJxyiMowq2xwBkx4We/GypX +gV5MTawJVxaSkZbXpy8MayzGnLrhrHkMVWWllkHOF3SGRlHbvZUVGgyBYBRcSlr35Fb Ys7+pvA/dFNMtKJIdUXO7IqqZoCrfIexjCVkkbP4x4G6H1tDbEyIBDRSm1M1H/k9obqW TIF0NZEDwPdIFYuic/3nRJmirAn3fvKVO13qe3966J5JiF35MJWpewqaQKQ5PipvCgia z47aiDoTWfGI0FqpKvy5T7R6TRmyMhgdeNoMCC7ErV1/eukNOHHqiyBQz+hLKM2auDvT ZRrQ== 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=7ATSlDml04RtK4bZEzwPkz9XSwfh2pVDONM2uQX3sVU=; b=YlHof+p39yKgBcbCcemSYWxMQsYU1c7yCRML6R5V83dOljs0nHDsuZodRUghSA4rx5 fw8MI4VftA1R970doAfgJunPXv4NlksKoIcclLggCjp6bgDqcKEOpEi1uAPkezgjYREY mPByQ2+JmB0B4sofODeRmfIWjy+qJVf/wVOKGh/sFdI/UO9qGPUfvN5m8XzWVRUPimz2 A6oLtxmJTQcVvPt9kU5Ar/WZ9fkQQo3QLy8c1dH+AvMcxkGvIw3IAES6zmt+eZDXF3Na iFkPAKobRqMGXwsG+/5aPvcAFGzeGeDTvIDTs/ZDGh8hWzjLf9tjroZrscCOyanELLm2 Mv8A== X-Gm-Message-State: APjAAAVn9e2Oqzb9k8lmhQjnmejBQ95sXpUaWUf/m1sykR/VQhxOWJ9h TqEUm67kL7W1TTK+oatAppQRd25SFYg= X-Received: by 2002:a05:600c:2144:: with SMTP id v4mr3140178wml.4.1552410915028; Tue, 12 Mar 2019 10:15:15 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d5sm3575967wrx.12.2019.03.12.10.15.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 10:15:12 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id F384E1FF99; Tue, 12 Mar 2019 17:09:31 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 12 Mar 2019 17:09:17 +0000 Message-Id: <20190312170931.25013-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312170931.25013-1-alex.bennee@linaro.org> References: <20190312170931.25013-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::332 Subject: [Qemu-devel] [PULL 12/26] tests/docker: add debian-xtensa-cross image 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, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Xtensa cpu supported: - dc232b - dc233c - csp Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée -- 2.20.1 diff --git a/tests/docker/dockerfiles/debian-xtensa-cross.docker b/tests/docker/dockerfiles/debian-xtensa-cross.docker new file mode 100644 index 0000000000..afd2ab9163 --- /dev/null +++ b/tests/docker/dockerfiles/debian-xtensa-cross.docker @@ -0,0 +1,31 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian stretch base image, +# using a prebuilt toolchains for Xtensa cores from: +# https://github.com/foss-xtensa/toolchain/releases +# +FROM debian:stretch-slim + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + bison \ + build-essential \ + ca-certificates \ + curl \ + flex \ + gettext \ + git \ + python-minimal + +ENV CPU_LIST csp dc232b dc233c +ENV TOOLCHAIN_RELEASE 2018.02 + +RUN for cpu in $CPU_LIST; do \ + curl -#SL http://github.com/foss-xtensa/toolchain/releases/download/$TOOLCHAIN_RELEASE/x86_64-$TOOLCHAIN_RELEASE-xtensa-$cpu-elf.tar.gz \ + | tar -xzC /opt; \ + done + +ENV PATH $PATH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dc233c-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-csp-elf/bin diff --git a/tests/tcg/xtensa/Makefile.include b/tests/tcg/xtensa/Makefile.include new file mode 100644 index 0000000000..423c00a5d3 --- /dev/null +++ b/tests/tcg/xtensa/Makefile.include @@ -0,0 +1,11 @@ +# Makefile.include for xtensa targets +# +# The compilers can only be used for building system tests + +ifeq ($(CONFIG_SOFTMMU),y) +DOCKER_IMAGE=debian-xtensa-cross + +# default to the dc232b cpu +DOCKER_CROSS_COMPILER=/opt/2018.02/xtensa-dc232b-elf/bin/xtensa-dc232b-elf-gcc +DOCKER_CROSS_LINKER=/opt/2018.02/xtensa-dc232b-elf/bin/xtensa-dc232b-elf-ld +endif