From nobody Tue Feb 10 06:07:20 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1618526183; cv=none; d=zohomail.com; s=zohoarc; b=gnJhbjjMBh71uSYc/yQuTtk7MYOz7TPz9BVLJc0qp9g27ID+1p4+jRuICt9RPAU9iMepiANphSVOhjImmqWu2gaG8wyrseW7/yV8aGouXe4dQMWnGUoRwHNY+L9YiZs61p0XeVZOiJeZy/QWy215bjGVb3+JV0V70XUWYKXNae0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618526183; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=9Db5XTp7j49/KplNfHp7YW32/tmMcnv4K2Lafyief+Y=; b=D3taWKglT3cDFaJl2w0swDbjRV/yPSbcPF94HpUA7VF3tIZZdyxbVH/JRZXXZPyWaeHJFyxR/0ApUxVobSFbipScnJ/OWwp118BZR7J21MWQh+hOnloaVsIW/NLBaTaha025rIPA1m+DLk9dj0wmNfQepAxFy3p8IG/Wkd0X6UI= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1618526183519436.9242834134948; Thu, 15 Apr 2021 15:36:23 -0700 (PDT) Received: from localhost ([::1]:46284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXAaz-00054Y-A3 for importer@patchew.org; Thu, 15 Apr 2021 18:36:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXATw-0007bA-Cf; Thu, 15 Apr 2021 18:29:04 -0400 Received: from [201.28.113.2] (port=9244 helo=outlook.eldorado.org.br) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXATu-0007aM-SM; Thu, 15 Apr 2021 18:29:04 -0400 Received: from power9a ([10.10.71.235]) by outlook.eldorado.org.br with Microsoft SMTPSVC(8.5.9600.16384); Thu, 15 Apr 2021 18:41:49 -0300 Received: from eldorado.org.br (unknown [10.10.70.45]) by power9a (Postfix) with ESMTP id 96DA7801328; Thu, 15 Apr 2021 18:41:48 -0300 (-03) From: matheus.ferst@eldorado.org.br To: qemu-devel@nongnu.org Subject: [RFC PATCH 1/3] tests/docker: gcc-10 based images for ppc64{, le} tests Date: Thu, 15 Apr 2021 18:41:36 -0300 Message-Id: <20210415214138.563795-2-matheus.ferst@eldorado.org.br> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210415214138.563795-1-matheus.ferst@eldorado.org.br> References: <20210415214138.563795-1-matheus.ferst@eldorado.org.br> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 15 Apr 2021 21:41:49.0082 (UTC) FILETIME=[23CF8FA0:01D73240] X-Host-Lookup-Failed: Reverse DNS lookup failed for 201.28.113.2 (failed) Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=201.28.113.2; envelope-from=matheus.ferst@eldorado.org.br; helo=outlook.eldorado.org.br X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thuth@redhat.com, Matheus Ferst , gustavo.romero@protonmail.com, f4bug@amsat.org, wainersm@redhat.com, luis.pires@eldorado.org.br, qemu-ppc@nongnu.org, alex.bennee@linaro.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Matheus Ferst A newer compiler is needed to build tests for Power10 instructions. As done for arm64 on c729a99d2701, new '-test-cross' images are created for ppc64 and ppc64le. As done on 936fda4d771f, a test for compiler support is added to verify that the toolchain in use has '-mpower10'. Signed-off-by: Matheus Ferst --- tests/docker/Makefile.include | 4 ++++ .../dockerfiles/debian-ppc64-test-cross.docker | 13 +++++++++++++ .../debian-ppc64el-test-cross.docker | 17 +++++++++++++++++ tests/tcg/configure.sh | 12 ++++++++---- 4 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 tests/docker/dockerfiles/debian-ppc64-test-cross.docker create mode 100644 tests/docker/dockerfiles/debian-ppc64el-test-cross.dock= er diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 9f464cb92c..1f8941d290 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -152,10 +152,14 @@ docker-image-debian-sparc64-cross: docker-image-debia= n10 docker-image-debian-tricore-cross: docker-image-debian10 docker-image-debian-all-test-cross: docker-image-debian10 docker-image-debian-arm64-test-cross: docker-image-debian11 +docker-image-debian-ppc64-test-cross: docker-image-debian11 +docker-image-debian-ppc64el-test-cross: docker-image-debian11 =20 # These images may be good enough for building tests but not for test buil= ds DOCKER_PARTIAL_IMAGES +=3D debian-alpha-cross DOCKER_PARTIAL_IMAGES +=3D debian-arm64-test-cross +DOCKER_PARTIAL_IMAGES +=3D debian-ppc64-test-cross +DOCKER_PARTIAL_IMAGES +=3D debian-ppc64el-test-cross DOCKER_PARTIAL_IMAGES +=3D debian-hppa-cross DOCKER_PARTIAL_IMAGES +=3D debian-m68k-cross debian-mips64-cross DOCKER_PARTIAL_IMAGES +=3D debian-powerpc-cross debian-ppc64-cross diff --git a/tests/docker/dockerfiles/debian-ppc64-test-cross.docker b/test= s/docker/dockerfiles/debian-ppc64-test-cross.docker new file mode 100644 index 0000000000..66abfdeb47 --- /dev/null +++ b/tests/docker/dockerfiles/debian-ppc64-test-cross.docker @@ -0,0 +1,13 @@ +# +# Docker ppc64 cross-compiler target (tests only) +# +# This docker target builds on the debian Bullseye base image. +# +FROM qemu/debian11 + +# Add the foreign architecture we want and install dependencies +RUN dpkg --add-architecture ppc64 +RUN apt update && \ + DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt install -y --no-install-recommends \ + libc6-dev-ppc64-cross gcc-10-powerpc64-linux-gnu diff --git a/tests/docker/dockerfiles/debian-ppc64el-test-cross.docker b/te= sts/docker/dockerfiles/debian-ppc64el-test-cross.docker new file mode 100644 index 0000000000..7582508467 --- /dev/null +++ b/tests/docker/dockerfiles/debian-ppc64el-test-cross.docker @@ -0,0 +1,17 @@ +# +# Docker ppc64el cross-compiler target (tests only) +# +# This docker target builds on the debian Bullseye base image. +# +FROM qemu/debian11 + +# Add the foreign architecture we want and install dependencies +RUN dpkg --add-architecture ppc64el +RUN apt update && \ + DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt install -y --no-install-recommends \ + crossbuild-essential-ppc64el gcc-10-powerpc64le-linux-gnu + +# Specify the cross prefix for this image (see tests/docker/common.rc) +#ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Dpowerpc64le-linux-gnu- +#ENV DEF_TARGET_LIST ppc64-softmmu,ppc64-linux-user,ppc64abi32-linux-user diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index fa1a4261a4..5f5db91a01 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -170,13 +170,13 @@ for target in $target_list; do ;; ppc64-*) container_hosts=3Dx86_64 - container_image=3Ddebian-ppc64-cross - container_cross_cc=3Dpowerpc64-linux-gnu-gcc + container_image=3Ddebian-ppc64-test-cross + container_cross_cc=3Dpowerpc64-linux-gnu-gcc-10 ;; ppc64le-*) container_hosts=3Dx86_64 - container_image=3Ddebian-ppc64el-cross - container_cross_cc=3Dpowerpc64le-linux-gnu-gcc + container_image=3Ddebian-ppc64el-test-cross + container_cross_cc=3Dpowerpc64le-linux-gnu-gcc-10 ;; riscv64-*) container_hosts=3Dx86_64 @@ -280,6 +280,10 @@ for target in $target_list; do -mpower8-vector -o $TMPE $TMPC; then echo "CROSS_CC_HAS_POWER8_VECTOR=3Dy" >> $config_target_mak fi + if do_compiler "$target_compiler" $target_compiler_cflags \ + -mpower10 -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_POWER10=3Dy" >> $config_target_mak + fi ;; i386-linux-user) if do_compiler "$target_compiler" $target_compiler_cflags \ --=20 2.25.1