From patchwork Tue Mar 12 15:59:33 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: 1055518 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Edjs3XlP"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44JgBG54R3z9s5c for ; Wed, 13 Mar 2019 03:18:14 +1100 (AEDT) Received: from localhost ([127.0.0.1]:55198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3k6W-0004RM-JK for incoming@patchwork.ozlabs.org; Tue, 12 Mar 2019 12:18:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3jtb-00023a-HC for qemu-devel@nongnu.org; Tue, 12 Mar 2019 12:05:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3jop-0000Lx-SQ for qemu-devel@nongnu.org; Tue, 12 Mar 2019 11:59:56 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:42407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3jop-0000LX-Lg for qemu-devel@nongnu.org; Tue, 12 Mar 2019 11:59:55 -0400 Received: by mail-wr1-x442.google.com with SMTP id o9so3279642wrv.9 for ; Tue, 12 Mar 2019 08:59:55 -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=QXJ3lfkk33PrrjtnU8P/06NiWtLnegdIM7eA8oCO+u4=; b=Edjs3XlPKBWFUgdXbJWFbGYKvlva76a0zOffhRjXwKVAR42nae4PSUr6FRKfoesu/h LqlbYPHtGJozVlstcY/yhG2VpHvlkwQH6tpG3u+EjTeVqbqxFbLHgdZxtJe9Zy0MqYVm ZtaOMQCXdZPMUKCM0IrC9kA1jsREyNA1RQzOxc9H1e/koxxLw2/K9o417cqRQZ5tjCHW NGqM23o/G/2nWRI5GyH+ehLoT+SaXCa6YJuN5pyTtjB+T70124VkGztdl3/7VhU5dKnh VMXcLWu/pYvIdPX5ZJlnUTLDLlVcoUij6FZUPXrkVtEIS19MIq1dtlNh/zU2sUM8oBuU wECQ== 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=WFZ1N8C27YizeDr6F2VEB1PcoALEyiVBFXzpPobtp1/Zy7yT2n/IlM5y/muulexffl 9Accn4OpncCXfFmpIZ4kJK6IYIxWC/RGAJ8eL7PkHqcOJXpLS2Uh0pVK5dP3SZmH5ARG TUs7bhd5DBIZqEvD9T4p6YgUJiT/kMU4z6JZVa4dGHy2slzoow+MWVLXMi+6zyFlfs4l a6e7P3bg+l+WVVV0mMTMhHxBU6adAEmp34q5goa0eR62GAixnymIiB6XelsO7hkOFxui MyVmwluAXiKFqqSIcBaB4Pudhir+1/Z/23jTga3e1DZoU9B+wMTweBHp7AqMfPM/aoxl 2Ivg== X-Gm-Message-State: APjAAAW0/ePjvRYAOjhWuNbS6p31YrKs+Yho+dnwfCv6Z4TS/LpD/lns CEgyFgYEVZxq8MoK9RPGr2sAiw== X-Google-Smtp-Source: APXvYqzDCR+S4DTBEvZ58/zWphKihgbAe+RvDkSbMaMt6AkhQYp7Bs5NJxA0YLxQJLAuRL2Hz15otA== X-Received: by 2002:a5d:5386:: with SMTP id d6mr23228805wrv.104.1552406394537; Tue, 12 Mar 2019 08:59:54 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d9sm20488422wrn.72.2019.03.12.08.59.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 08:59:51 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id EF3671FF8F; Tue, 12 Mar 2019 15:59:47 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 12 Mar 2019 15:59:33 +0000 Message-Id: <20190312155947.14918-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312155947.14918-1-alex.bennee@linaro.org> References: <20190312155947.14918-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::442 Subject: [Qemu-devel] [PATCH v4 07/21] 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: peter.maydell@linaro.org, famz@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, agraf@suse.de, cota@braap.org, aurelien@aurel32.net Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.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 --- 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/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