From patchwork Thu May 17 17:47:07 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: 136197 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp265040lji; Thu, 17 May 2018 11:15:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrfpYLqf2ZENSC1kgb9IfU2m1XvgGObNPTnVT91MRRQrV5ddiVnacTqHIC+YRw5tEjPTmsx X-Received: by 2002:a0c:b897:: with SMTP id y23-v6mr6133563qvf.188.1526580908680; Thu, 17 May 2018 11:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526580908; cv=none; d=google.com; s=arc-20160816; b=OWYapUDF5JEOoz3db1283Zc7wVxzOKQ3UwUHkptZ9z3oZLjr8RWng+qnaHqZOahuEU JUhVUcdnJBkJuOayFGzbfr03El97mm6rFfZdRJ1saOQ5CRYaXAbPAL32f2AH0jCy7+7R EvmulCvyhRzkPnG1Gshnw0XsC2czlLhshEju6ztix3wUql8nqHntFlVAVv4SJXguOemJ wTqgR+IaowO5wcjcNV/Gz0SIuJ7OpXF+N3Dh9hSNU9CGJP0apKZfV7ZvrnNXCdyCln0E TXKGO3tcyD54WaBnSt880HVR44vUGrruExmzN8NUDa+PapHMpLHjqaxdivmXSmIaqcMk OHMQ== 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=UUIcHZP39zG+ZkCDFCwsNqo26oXic/8QrqGp1tS/MQ8=; b=FgZtHozMoL+02TpzlFBWzLtavhvXjLw5FM3rC9w35mcVafHNv/DHuTaQXjdeW8l4eB Anh6rFb/sqc5cFUoDOAt7RWtIKdbHtwTeZRrmdKAtTlMikTugkPHlVUMX2Xct6xSbhfi zt4XcJw+opdXYsPR+2YEq30Gf2A0y4sEuH+zhu7vqPFkPWIJuiHysY1DrkICzrfddg4j Td0GOcGT1796BX52Psa1Hkx6+r8A2EgJjPcr7gYb7vrO1HFY/9wnEuyjgSOqcWubfN9z dPyCaOZn5m5N7vJL3siFknAdSIfl4FLR3VcxnQLSdNsBqdWVDziJi0ZWtNXGHc/HnvEu VtIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XswFQ/JF; 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 n26-v6si5859889qta.282.2018.05.17.11.15.08 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 May 2018 11:15:08 -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=XswFQ/JF; 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]:38577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJNQi-0003dX-3H for patch@linaro.org; Thu, 17 May 2018 14:15:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJN6G-00039s-J0 for qemu-devel@nongnu.org; Thu, 17 May 2018 13:54:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJN6F-000763-CQ for qemu-devel@nongnu.org; Thu, 17 May 2018 13:54:00 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:32853) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJN6F-00075X-2R for qemu-devel@nongnu.org; Thu, 17 May 2018 13:53:59 -0400 Received: by mail-wm0-x229.google.com with SMTP id x12-v6so475252wmc.0 for ; Thu, 17 May 2018 10:53:58 -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=UUIcHZP39zG+ZkCDFCwsNqo26oXic/8QrqGp1tS/MQ8=; b=XswFQ/JFq8LlFIfXPDGmTnNk1CY5axsjDMcU79ci/IMLt8m4SXztbiAooS1nYX+g1M QCcCKz0IcKUUVfJlRCfovk6ukDbt6hw4RU8Xx7lRXUEYyUDAZ0N2Ib+FdYnjklZO0YZ8 k+wX9miMVCzscWJ3t9DQ7/wJ3geOpf50zbJ7k= 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=UUIcHZP39zG+ZkCDFCwsNqo26oXic/8QrqGp1tS/MQ8=; b=EMThhYZAdxSsxcYsFPre7sDS0PVPhA/btuQa4RGOnnPyupEti99wXWlp69/IU6ciDq dCZznxhpAWmWy7gnONCUf28X5SXkX6vPFMBoxd6K919sFTKYdT7audYHPaxiQXA772pO AmIzuf11ZbjUGE3xa6hMeRa7m0uKtZRK+3DDuzFqys9nxrg2z72HZhALcHWZjErwCCOj Kh/Rzfcfq7LQT++m+ncdUCApnzgtELc7adHmLODoJGHTu2olIsnbF8Z6rh0VIwlYSXVT eaJRUqcmVEUa8omw8Kr5sOchU5JaN7whh6JOxCK9DtEz0XRygQi646TQxhIe61ITROTy fkSQ== X-Gm-Message-State: ALKqPwcLc6GtYyVF6MIzrb14HZSSVRZNsSZtd8srlwF798XBs79lnKCk +09GfcO+fB2fu1CpYprVfv71uA== X-Received: by 2002:a1c:f70b:: with SMTP id v11-v6mr2414495wmh.77.1526579637789; Thu, 17 May 2018 10:53:57 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id j9-v6sm5370795wri.55.2018.05.17.10.53.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 10:53:52 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 0041F3E0F4A; Thu, 17 May 2018 18:47:22 +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: Thu, 17 May 2018 18:47:07 +0100 Message-Id: <20180517174718.10107-39-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517174718.10107-1-alex.bennee@linaro.org> References: <20180517174718.10107-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::229 Subject: [Qemu-devel] [PATCH v4 38/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 --- tests/docker/Makefile.include | 1 + .../dockerfiles/debian-alpha-cross.docker | 12 +++++++ .../dockerfiles/debian-cross-build.docker | 36 +++++++++++++++++++ tests/docker/dockerfiles/debian-sid.docker | 23 ++++++++++++ tests/tcg/alpha/Makefile.include | 2 ++ 5 files changed, 74 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-alpha-cross.docker create mode 100644 tests/docker/dockerfiles/debian-cross-build.docker create mode 100644 tests/docker/dockerfiles/debian-sid.docker create mode 100644 tests/tcg/alpha/Makefile.include -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 6a5aa9ec71..bcf44e80c4 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..e446f7af3f --- /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 diff --git a/tests/docker/dockerfiles/debian-cross-build.docker b/tests/docker/dockerfiles/debian-cross-build.docker new file mode 100644 index 0000000000..c3611a7d3a --- /dev/null +++ b/tests/docker/dockerfiles/debian-cross-build.docker @@ -0,0 +1,36 @@ +# +# Docker multiarch cross-compiler target +# +# This docker target is builds on Debian cross compiler targets to build distro +# with a selection of cross compilers for building test binaries. +# +# On its own you can't build much but the docker-foo-cross targets +# build on top of the base debian image. +# +FROM debian:stretch + +# 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 \ + gettext \ + git \ + libgmp-dev \ + libmpfr-dev \ + libmpc-dev \ + pkg-config \ + psmisc \ + python \ + texinfo \ + wget \ + $(apt-get -s build-dep binutils | egrep ^Inst | cut -d\ -f2) \ + $(apt-get -s build-dep gcc | egrep ^Inst | cut -d\ -f2) \ + $(apt-get -s build-dep glibc | egrep ^Inst | cut -d\ -f2) diff --git a/tests/docker/dockerfiles/debian-sid.docker b/tests/docker/dockerfiles/debian-sid.docker new file mode 100644 index 0000000000..adeb7134ca --- /dev/null +++ b/tests/docker/dockerfiles/debian-sid.docker @@ -0,0 +1,23 @@ +# +# A number of our guests exist as ports only. We can either use the ports repo or get everything from SID +# + +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 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