From patchwork Fri May 25 14:19:06 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: 136914 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3664025lji; Fri, 25 May 2018 07:28:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJGnXNPpFl/XVOpt+nW6KYjHQQ1Z+L688Wf1a7zr1kqBEi9MLPj3LanvcwW8ItcDqLdpOGI X-Received: by 2002:ac8:70d5:: with SMTP id g21-v6mr2423866qtp.393.1527258531859; Fri, 25 May 2018 07:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527258531; cv=none; d=google.com; s=arc-20160816; b=QT9SKiMvi4lFFecy+DRjPNVVfKFodt6ivvU/VW2UPze3IAw4ciQW9uhzGWqBysaLLK BdfOvbXkEqLjTMpiIvy0bjJMMnGuyvXLHgt0uCyxw4C7c2IApb+/9dV09yBRgdD+TS5d PqB0vtESrN+I8QFxCHT/uX+H/7dTRWx086qXFpNRZNELvp8f5RvUV3bMBAfhuaBmjvL+ Azy7Zv9oqt9lsl/08NKuCFmkIosu2nvLkeWzNqLlFj3RBm1g3MaEqwQqEhdsqBqCbd4b uwatyerQX5PCBcF3ha9X2z3R+Ir5cpZLfmMmBkFjTa+tH3Ay58nVVlMuAIPRLzumLE9l 9EAA== 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=SQCr6kmDjbtMa+C1oVYfdS/Eno6CUQWt/elYZsMYURI=; b=k1F4R7k4nUmXfNeNMNXSuh+1DZ15LVmwyF477anDt9dDczDyd4JFWT0c46X4f1nf5U Sy/gU++GtgdPHa2z2Qvp3yqdLJ9XcOOz8nsLYjRR5k+sgIq0XS4eyFXfu8+v7NPkRCUU 2PmSgagH+GxkyjAPwjt+4VfHy7RpG6uq5yc7C9abX2z0GFKYvDuRzc1N9bs+quKZf10I TsByDHW/Dg9KOfnO4lMvMG2TNuYnLNbRtu35K7rQ4SB4Ox4M5qPcVrBV9Yf+tq0Q6naB SiDA+d5EAhbUHCqzRLsGb0S0yoJf27lJKfnt/jvQFqeW2UgF4BCNQ3HKCAf9TQPYmNGh A3hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RzI/EYOq; 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 b14-v6si202423qvk.5.2018.05.25.07.28.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 May 2018 07:28:51 -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=RzI/EYOq; 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]:44345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMDi7-0000Mn-AP for patch@linaro.org; Fri, 25 May 2018 10:28:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMDZ0-00014n-O6 for qemu-devel@nongnu.org; Fri, 25 May 2018 10:19:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMDYz-0000Sy-Gh for qemu-devel@nongnu.org; Fri, 25 May 2018 10:19:26 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:38475) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMDYz-0000SA-7t for qemu-devel@nongnu.org; Fri, 25 May 2018 10:19:25 -0400 Received: by mail-wm0-x236.google.com with SMTP id m129-v6so15023203wmb.3 for ; Fri, 25 May 2018 07:19:25 -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=SQCr6kmDjbtMa+C1oVYfdS/Eno6CUQWt/elYZsMYURI=; b=RzI/EYOqnWSndQ7ZCSEx6QLaPUqA0PsQmp4EqcAZnrhqw+LZTUIyHv/jYBJ6MquvpC rZ9GYhvaQhvQ3uceAeW95JfSwSnbTR0c05siPAWFvsrahZkiPwV3cVxHmuvZYiHDKbHi DAoQ74HBH8ljJIxMfTGX756Xop6+rVj/OZaoM= 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=SQCr6kmDjbtMa+C1oVYfdS/Eno6CUQWt/elYZsMYURI=; b=uFYeK5Ry1m2dBVHLjguFxCTbLwEnCO1QHXaoAFnBADer0o6429ZYZD8+ySG0QtPtD0 R28tRbmEnTg8PpuLJJDthTEe/OI9Ey4BWYnHJsJrq5lqWARZY7CeTdVNtKcJ02t2ESqn QxaK6rMEzuWiwrMhuWrjzwWUZdQcTIqA7wSleS1vb9yhaKx/RMAHEIJ3kJjRnrp53glt gVtEFm9dZQ2/d0FgF+O3P2X7zFHtWQR+eQXoYMY0j7cDGcnJcNG2WBkizuQmWFkVW1Tk lhZ773xeqJJT4CmdXCmALgC4FxRHmGDxkorNoWDn91Fi95Zz7F6V5ef6aEV0qHm8RtNN JseA== X-Gm-Message-State: ALKqPwdOZWsZhgxa+2pgKuTBqwz8hJk6punWLeHC/3uUnV6GmivtFzyE ef0uuOInYCud4Ze1wKD5tIl+mQ== X-Received: by 2002:a1c:36e9:: with SMTP id y102-v6mr1885867wmh.152.1527257964134; Fri, 25 May 2018 07:19:24 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id s7-v6sm16848546wrc.5.2018.05.25.07.19.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 May 2018 07:19:14 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3E2283E0736; Fri, 25 May 2018 15:19:11 +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:06 +0100 Message-Id: <20180525141910.6384-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180525141910.6384-1-alex.bennee@linaro.org> References: <20180525133851.27161-1-alex.bennee@linaro.org> <20180525141910.6384-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] [PATCH v5 35/49] tests/tcg: enable building for Alpha 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, Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We can't use our normal Debian based compilers as Alpha isn't an officially supported architecture. However it is available as a port and fortunately cross compilers for all these targets are included in Debian Sid, the perpetual rolling/unstable/testing version of Debian. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v5 - drop the unused debian-cross-build docker image - add note to debian-sid docker image - echo reference to notes on build failure - include EXTRA_RUNS for mmap tests --- tests/docker/Makefile.include | 1 + .../dockerfiles/debian-alpha-cross.docker | 12 +++++++ tests/docker/dockerfiles/debian-sid.docker | 32 +++++++++++++++++++ tests/tcg/alpha/Makefile.include | 2 ++ tests/tcg/alpha/Makefile.target | 6 ++++ 5 files changed, 53 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-alpha-cross.docker create mode 100644 tests/docker/dockerfiles/debian-sid.docker create mode 100644 tests/tcg/alpha/Makefile.include create mode 100644 tests/tcg/alpha/Makefile.target -- 2.17.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index b56386f49e..5dc49c6a54 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -62,6 +62,7 @@ docker-image-debian-ppc64el-cross: docker-image-debian9 docker-image-debian-s390x-cross: docker-image-debian9 docker-image-debian-win32-cross: docker-image-debian8-mxe docker-image-debian-win64-cross: docker-image-debian8-mxe +docker-image-debian-alpha-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-alpha-cross.docker b/tests/docker/dockerfiles/debian-alpha-cross.docker new file mode 100644 index 0000000000..29a25d0dfd --- /dev/null +++ b/tests/docker/dockerfiles/debian-alpha-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-alpha-linux-gnu \ + libc6.1-dev-alpha-cross || { echo "Failed to build - see debian-sid.docker notes"; exit 1; } diff --git a/tests/docker/dockerfiles/debian-sid.docker b/tests/docker/dockerfiles/debian-sid.docker new file mode 100644 index 0000000000..9a3d168705 --- /dev/null +++ b/tests/docker/dockerfiles/debian-sid.docker @@ -0,0 +1,32 @@ +# +# Debian Sid Base +# +# A number of our guests exist as ports only. We can either use the +# ports repo or get everything from Sid. However Sid is a rolling +# distro which may be broken at any particular time. If you are +# unlucky and try and build your images while gcc is in the process of +# being uploaded this can fail. Your only recourse is to try again in +# a few hours when the repos have re-synced. Once built however you +# won't be affected by repo changes unless the docker recipies are +# updated and trigger a re-build. +# + +FROM debian:sid-slim + +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list + +# Install common build utilities +RUN apt update +RUN DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt install -y --no-install-recommends \ + bison \ + build-essential \ + ca-certificates \ + flex \ + git \ + pkg-config \ + psmisc \ + python \ + texinfo || { echo "Failed to build - see debian-sid.docker notes"; exit 1; } diff --git a/tests/tcg/alpha/Makefile.include b/tests/tcg/alpha/Makefile.include new file mode 100644 index 0000000000..c7dc48eadb --- /dev/null +++ b/tests/tcg/alpha/Makefile.include @@ -0,0 +1,2 @@ +DOCKER_IMAGE=debian-alpha-cross +DOCKER_CROSS_COMPILER=alpha-linux-gnu-gcc diff --git a/tests/tcg/alpha/Makefile.target b/tests/tcg/alpha/Makefile.target new file mode 100644 index 0000000000..bedf1b6444 --- /dev/null +++ b/tests/tcg/alpha/Makefile.target @@ -0,0 +1,6 @@ +# -*- Mode: makefile -*- +# +# Alpha specific tweaks + +# On Alpha Linux only supports 8k pages +EXTRA_RUNS+=run-test-mmap-8192