From nobody Thu Apr 25 22:25:31 2024 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 (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1549553888065499.31562787142093; Thu, 7 Feb 2019 07:38:08 -0800 (PST) Received: from localhost ([127.0.0.1]:42239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grlkX-0004W7-Rn for importer@patchew.org; Thu, 07 Feb 2019 10:38:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grljc-0004FD-03 for qemu-devel@nongnu.org; Thu, 07 Feb 2019 10:37:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grlja-0002bw-3B for qemu-devel@nongnu.org; Thu, 07 Feb 2019 10:37:03 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:46134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grljY-0002ab-Ce for qemu-devel@nongnu.org; Thu, 07 Feb 2019 10:37:02 -0500 Received: by mail-wr1-x443.google.com with SMTP id l9so236556wrt.13 for ; Thu, 07 Feb 2019 07:36:59 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id z18sm23162740wml.36.2019.02.07.07.36.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 07:36:57 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 56F4C1FF80; Thu, 7 Feb 2019 15:36:57 +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:mime-version :content-transfer-encoding; bh=0p9CepSmw+J0bre4oYf734vjdMApYhMC0x/lmXsAmmA=; b=RUMTz0yTiYgzNcEacQ+HJVTwbzopCUXvku52UaVsrNqsEXGO9afrcpkrHQZ/eJpj+H HGR91XV5CDVnPHOIuJ8uX5dtKOnEedaEHl5ivi5hs1ydtalRC+S5k6z1xudb0H1EI/1c PxgV0rxCvs0BGrWikCLccnIFq1hpbpgvoKru2LM3TcGN3vXgJmScUkNyAmpS1Aql+JgX ri4FQ43aS0Ysus5sRu2IVwl+HsIKnfSxqsLX5Xyixgv2p76gKTxXms7KeclB6ToPJ6fh 8+CltqjcwduYffC4oZ0BrqlzN8hYV0TqdbhLuu5MSesgeTqFu/P3+nZQMALgNShd1CqU FCTg== 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:mime-version :content-transfer-encoding; bh=0p9CepSmw+J0bre4oYf734vjdMApYhMC0x/lmXsAmmA=; b=k5mlux0KMsNH/KkZ9xxSWP3yxUV4uJUrGmWXSIZy1P3GeJdRO9mmCDxgTaVksq/49g POR2vtUnQl7nTY9MKKC1jylYhqMFrKIql4YdWJGhWo8B30ohu/h88+9uCU0NzTRznmG7 u/IBdMOQEehN1f/zUy2/yycv+KJFHZbih3tYEuQzLuXj8ciC1ea2zQcHhjM1fiPR1O3K S7PQhcMkcdcPyAIUk3cGgUUTA8xDLl9zcjZMkI2LaHHa4P7CA5QbK14VlVAxOLr8HwRi DJbJ6uu5fJA5q2E1AFfayw6n5BLdnlxSZzkP1RMvgd2/L+30MivuSMnzrEpvY4kvRd1J z45w== X-Gm-Message-State: AHQUAuam+O5As8lnPINY6jAAZgXInquZdSNuJekIuyPCqbbA+VfjJmT/ 16JwS573JRbWTdzxkkXNDbeVTw== X-Google-Smtp-Source: AHgI3IYzO6czbE9B/AInwGXHiruyUYGWVXuXfLm15Ia/10JCsAW7O7ekiNAMWs46sDultmpNpaofkg== X-Received: by 2002:a5d:4d46:: with SMTP id a6mr13043583wru.28.1549553818417; Thu, 07 Feb 2019 07:36:58 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Thu, 7 Feb 2019 15:36:51 +0000 Message-Id: <20190207153651.19271-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 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::443 Subject: [Qemu-devel] [PATCH] tests/docker: add debian-buster-arm64-cross 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=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) We can't build QEMU with this but we can use this image to build newer arm64 testcases which need more up to date toolchains to build. Signed-off-by: Alex Benn=C3=A9e --- tests/docker/Makefile.include | 1 + .../debian-buster-arm64-cross.docker | 15 +++++++++ tests/docker/dockerfiles/debian10.docker | 31 +++++++++++++++++++ tests/tcg/aarch64/Makefile.include | 2 +- 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 tests/docker/dockerfiles/debian-buster-arm64-cross.dock= er create mode 100644 tests/docker/dockerfiles/debian10.docker diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 7032c68895..83d43c50e4 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -90,6 +90,7 @@ docker-image-debian-amd64: docker-image-debian9 docker-image-debian-armel-cross: docker-image-debian9 docker-image-debian-armhf-cross: docker-image-debian9 docker-image-debian-arm64-cross: docker-image-debian9 +docker-image-debian-buster-arm64-cross: docker-image-debian10 docker-image-debian-mips-cross: docker-image-debian9 docker-image-debian-mipsel-cross: docker-image-debian9 docker-image-debian-mips64el-cross: docker-image-debian9 diff --git a/tests/docker/dockerfiles/debian-buster-arm64-cross.docker b/te= sts/docker/dockerfiles/debian-buster-arm64-cross.docker new file mode 100644 index 0000000000..33ada13806 --- /dev/null +++ b/tests/docker/dockerfiles/debian-buster-arm64-cross.docker @@ -0,0 +1,15 @@ +# +# Docker arm64 cross-compiler target +# +# This docker target builds on the Debian's Buster base image. There +# are no QEMU pre-requistes so this image can only be used to build +# test cases. +# +FROM qemu:debian10 + +# Add the foreign architecture we want and install dependencies +RUN dpkg --add-architecture arm64 +RUN apt update +RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + crossbuild-essential-arm64 diff --git a/tests/docker/dockerfiles/debian10.docker b/tests/docker/docker= files/debian10.docker new file mode 100644 index 0000000000..aeeb151b52 --- /dev/null +++ b/tests/docker/dockerfiles/debian10.docker @@ -0,0 +1,31 @@ +# +# Docker multiarch cross-compiler target +# +# This docker target is builds on Debian cross compiler targets to build d= istro +# 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:buster-slim + +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sourc= es.list + +# Install common build utilities +RUN apt update +RUN DEBIAN_FRONTEND=3Dnoninteractive apt install -yy eatmydata +RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt install -y --no-install-recommends \ + bison \ + build-essential \ + ca-certificates \ + clang \ + flex \ + gettext \ + git \ + pkg-config \ + psmisc \ + python \ + texinfo \ + $(apt-get -s build-dep qemu | egrep ^Inst | fgrep '[all]' | cut -d= \ -f2) diff --git a/tests/tcg/aarch64/Makefile.include b/tests/tcg/aarch64/Makefil= e.include index de32c91235..5d4e4c6f99 100644 --- a/tests/tcg/aarch64/Makefile.include +++ b/tests/tcg/aarch64/Makefile.include @@ -3,6 +3,6 @@ # We don't have any bigendian build tools so we only use this for AArch64 =20 ifeq ($(TARGET_NAME),aarch64) -DOCKER_IMAGE=3Ddebian-arm64-cross +DOCKER_IMAGE=3Ddebian-buster-arm64-cross DOCKER_CROSS_COMPILER=3Daarch64-linux-gnu-gcc endif --=20 2.20.1