From nobody Tue Oct 7 06:50:04 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 155138586505722.301358299399; Thu, 28 Feb 2019 12:31:05 -0800 (PST) Received: from localhost ([127.0.0.1]:46051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSKc-0004A2-0A for importer@patchew.org; Thu, 28 Feb 2019 15:31:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFV-0000RS-TU for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFU-0007Hn-W6 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:45 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:34041) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFU-0007GG-OG for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:44 -0500 Received: by mail-wr1-x444.google.com with SMTP id f14so23462233wrg.1 for ; Thu, 28 Feb 2019 12:25:44 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o18sm54598841wrg.40.2019.02.28.12.25.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:40 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AA12B1FF89; Thu, 28 Feb 2019 20:25:37 +0000 (UTC) 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=QXJ3lfkk33PrrjtnU8P/06NiWtLnegdIM7eA8oCO+u4=; b=mQF2hdLBO4Wt/DTB/whPToYkTvWiCE7uOplf1EJdh8x5GnyUB0JPiXMRwNuD4ZpIZR bo2v2HZ4PjVLz/HKAZ3pTh5pgv0KRdV/UGM8dZhyGVPfUUi37XGgQ//GqydK/3oByYyQ vI0BesLynQCvzadY3DX/+Y/+jSZeupioeojSrJWp3pobpjEqVWA+FnkcW9x1xfMXoTLM 1U3vEJcJGHy+beKVxHfd43mEOXgvY0aY2PMbBaZKEotG23XiVzy+n7cnaRid3B4I202/ SYA2Z4P5IlE7Z0DuyDQN2bcu0IOLBQiAZ7xgaleVj9/+dvfe9MqmuznY1Y4Exhp1NE+b fqmA== 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=QXJ3lfkk33PrrjtnU8P/06NiWtLnegdIM7eA8oCO+u4=; b=ECIDeawVo8LRBmc8CJo3nU/iuyaVaTLtTXXINakc0dy0D4idArHoWcc4aJ/+4OnlHw wAk0G9Pp+TaxJwQDVYOMqf9+2kPe1tyYKsOv4BkYVtdBsU4qGG4M3J4SCZeFdzUkr/LZ 3tqYH2IF1imG9J4Ida7Nr4NUB1zfIAm4zqX23oX/pQDq6+l8uRuKe3cqmNi3B1SxL8Vu bQCBfQ3f879IzVqD5M0GjxXkzRSUIFKCgi9oaP5CvNSfXuaZvQNiyVDdzFF5sQoWDeBZ Jf21gWcqNjnZJxXg9Szp676XKyERCyML6XaLazCJsrEfhdx42lIjRANAZAT1YZfFD94g uZ4g== X-Gm-Message-State: APjAAAX0zZQ+7kOIQNsvNihOPZxkRr0fqXnX+Ob6lKsv6QvsUHJqTbJa kPgZudrgHF7XIT2Iby7aVmQxUg== X-Google-Smtp-Source: APXvYqx3yTKVH6FQme3T66GMb4NLXqx6QKDm6DCaXMMNRVTlWsmvoYrolYY7CCMjt8Ult4fBTSt+0A== X-Received: by 2002:adf:f103:: with SMTP id r3mr951571wro.50.1551385543760; Thu, 28 Feb 2019 12:25:43 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 28 Feb 2019 20:25:27 +0000 Message-Id: <20190228202537.4638-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190228202537.4638-1-alex.bennee@linaro.org> References: <20190228202537.4638-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 Subject: [Qemu-devel] [PATCH v2 06/16] 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: edgar.iglesias@gmail.com, qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , jcmvbkbc@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 Xtensa cpu supported: - dc232b - dc233c - csp Signed-off-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Alex Benn=C3=A9e --- v2 - the compiler only works for system tests (no libc) --- .../dockerfiles/debian-xtensa-cross.docker | 31 +++++++++++++++++++ tests/tcg/xtensa/Makefile.include | 11 +++++++ 2 files changed, 42 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-xtensa-cross.docker create mode 100644 tests/tcg/xtensa/Makefile.include diff --git a/tests/docker/dockerfiles/debian-xtensa-cross.docker b/tests/do= cker/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=3Dnoninteractive apt install -yy eatmydata +RUN DEBIAN_FRONTEND=3Dnoninteractive 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/downloa= d/$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/$TOOLCHA= IN_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=3Ddebian-xtensa-cross + +# default to the dc232b cpu +DOCKER_CROSS_COMPILER=3D/opt/2018.02/xtensa-dc232b-elf/bin/xtensa-dc232b-e= lf-gcc +DOCKER_CROSS_LINKER=3D/opt/2018.02/xtensa-dc232b-elf/bin/xtensa-dc232b-elf= -ld +endif --=20 2.20.1