From patchwork Tue Oct 31 14:43:55 2023 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: 739580 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1688851wrt; Tue, 31 Oct 2023 07:48:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3jVX+aQnHKJC9sPVcVR/H6BrBMdmV1XNTrJ+iv0ZAW2KgDw4Qj9RDIe/Gjcw2Nb3xB94t X-Received: by 2002:a05:6871:a083:b0:1e9:97eb:15a with SMTP id vq3-20020a056871a08300b001e997eb015amr15210113oab.36.1698763713711; Tue, 31 Oct 2023 07:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698763713; cv=none; d=google.com; s=arc-20160816; b=DhbzZG6Q4VpNx/O0uLXETaVWgRYi4WLp1VDVxYGpiPr3y9r6yENCiRPPtlwvo0Pjfo FTPXGMezf8jNrxkCmrYedH9RM+i3HgAqkvQGSr6nBVuJFh3/iv+nVQLT3WzZDDNtRGBs qeqaRPlyu8qm+tkmaf2/XvfnRuTvTNFFoPD1GaTPG1m/4C9CNssGQrq5bu1OQlr5yOqQ L2w5nDDeXvrtU8U/k05qd2KjYm5Bziox2ofKaw5IPu3VSag9GWInhzKZgPea6l4y1Eec orgOId0rX3l6nhCfOEvbk2Ke+1lOjdFRSIrbemmWsqsQD8LmekUJinmk3TK84QcX/Rln Gb3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FNAPZGi/6P6pcPJMsH3EA8QH82A+OUjUKwQzzU5zh3E=; fh=iQhuiDV2VMzZap4FvpkgpU0qMcJoW98sda1euw91HsY=; b=cQkJXdyWB7wHlQTVvnjLKoay5mSZC35A+s7orOG+fdjVWRHFBG2BbMquZmfzorpNic gv9tMuB2xWJdrb1RGRFtuWtPu8kaNRte8cc5nczvEN/TebETXTsz+xFLJ37K5ZrzdJZt k1Zs5A01H+fEat6ZXzg5BNyg15EiavLCUCsRCotw8bVMawHnp/kgNejuOJlULWj7chrt rHy7EDn9MCZJpE114EEnL/77d9pISI/3t0cz0nmYIOWOpwG8ogZaPqpQmzJX9dVEUZTH Nwrigmpw/RN28K/KY4aVAnA/68Kv84r1qTFkHEc/QGewCEi9/kN3oCjfGLjV34gNb9o9 VWwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nYaRJMdn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v7-20020a0cf907000000b0066d12fe2089si1143824qvn.608.2023.10.31.07.48.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Oct 2023 07:48:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nYaRJMdn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxpya-0004r5-I9; Tue, 31 Oct 2023 10:44:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxpyY-0004os-0C for qemu-devel@nongnu.org; Tue, 31 Oct 2023 10:44:14 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxpyW-0002Ah-88 for qemu-devel@nongnu.org; Tue, 31 Oct 2023 10:44:13 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-32dc918d454so3656545f8f.2 for ; Tue, 31 Oct 2023 07:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698763451; x=1699368251; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FNAPZGi/6P6pcPJMsH3EA8QH82A+OUjUKwQzzU5zh3E=; b=nYaRJMdniZtAkS6mT50SX9z9XLazprI9DFLc6IB/NxB6mcInXKtS67DOhRmOEy/+zn lN1syDL+1xuqTkyE11e/jt2Uso0XTvqw/7JC6WtDkghM4Jt6dAYZrLUStbwQQkPr+ZSu 5CYzYY/+8hLyPAgrp0YywKV5mJ0fzjPw9klT0rtF9HYRsfpVck/UyJdkDAp0YBhnLZwr 8txx2WW9Pxhq7pIMr4CyHKV5apelC/udQwj2OFDJLyDeM85Ai3QL8JNMMatxLZs6eV+l FypaEO+4aBNcVm0MEgDiIdj2Ck2x9TMw8TkpcLyvrAXm+NfgvQ1mdiiv25Izwkyzpx4H ADYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698763451; x=1699368251; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FNAPZGi/6P6pcPJMsH3EA8QH82A+OUjUKwQzzU5zh3E=; b=gf2c5AcwnJbPZo59WovZyGJhNnVXiSlPGMYkIxPPLvPasJ+F9drZXbcLQuUhCdIt3n atRApkMrKEYB+kxgJJZFaQ5stm6lqTm0oAE+rQvLYwJLyimdX2olXxob5POxtH+rszTc oktelrJpc7Pl8Ew09Poal7QbKjVaJxS/bMaEsN7hXJNxA2hCeSYAJWjenp4Y8EqT5FQF EsGH2gIjkC1jW5jSDpucTjF7EGpjXByrK3zB9KHql4llwh3SByWhImxX3WzF5Y57wbZ5 +60MFXv5iDfLeH4jJFNnQ82iIIt4MqeAFbL2uWHKaPv6m3PrBye2+WxvzBc5lpFcwZmT GNfg== X-Gm-Message-State: AOJu0YyY3FP+lIZiC8rJ/0Cp3NfJos2RLEE3lIRqiJTwQwTFfgLKwgLo iKsEbnWGFC5/VI0eMPMxthh623VkxgY/6INVHjI= X-Received: by 2002:a5d:6a85:0:b0:32f:7ebc:cf71 with SMTP id s5-20020a5d6a85000000b0032f7ebccf71mr5524422wru.1.1698763450853; Tue, 31 Oct 2023 07:44:10 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id l12-20020adffe8c000000b0030647449730sm1652141wrr.74.2023.10.31.07.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 07:44:10 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 144C96572D; Tue, 31 Oct 2023 14:44:03 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal , Paolo Bonzini Subject: [PULL 13/19] tests/docker: use debian-all-test-cross for riscv64 Date: Tue, 31 Oct 2023 14:43:55 +0000 Message-Id: <20231031144401.1238210-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231031144401.1238210-1-alex.bennee@linaro.org> References: <20231031144401.1238210-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Maintaining two sets of containers for test building is silly. While it makes sense for the QEMU cross-compile targets to have their own fat containers built by lcitool we might as well merge the other random debian based compilers into the same one used on gitlab. Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20231029145033.592566-14-alex.bennee@linaro.org> diff --git a/configure b/configure index 791c48c4e4..0e0f0c60b5 100755 --- a/configure +++ b/configure @@ -1347,6 +1347,10 @@ probe_target_compiler() { container_image=debian-all-test-cross container_cross_prefix=powerpc${target_arch#ppc}-linux-gnu- ;; + riscv64) + container_image=debian-all-test-cross + container_cross_prefix=riscv64-linux-gnu- + ;; sh4) container_image=debian-legacy-test-cross container_cross_prefix=sh4-linux-gnu- diff --git a/.gitlab-ci.d/container-cross.yml b/.gitlab-ci.d/container-cross.yml index 053330d6f4..98940d0f3b 100644 --- a/.gitlab-ci.d/container-cross.yml +++ b/.gitlab-ci.d/container-cross.yml @@ -73,13 +73,6 @@ riscv64-debian-cross-container: NAME: debian-riscv64-cross QEMU_JOB_OPTIONAL: 1 -# we can however build TCG tests using a non-sid base -riscv64-debian-test-cross-container: - extends: .container_job_template - stage: containers - variables: - NAME: debian-riscv64-test-cross - s390x-debian-cross-container: extends: .container_job_template stage: containers diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index dfa9617bb9..dc55ecf001 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -124,7 +124,6 @@ docker-image-debian-nios2-cross: $(DOCKER_FILES_DIR)/debian-toolchain.docker \ # These images may be good enough for building tests but not for test builds DOCKER_PARTIAL_IMAGES += debian-microblaze-cross DOCKER_PARTIAL_IMAGES += debian-nios2-cross -DOCKER_PARTIAL_IMAGES += debian-riscv64-test-cross DOCKER_PARTIAL_IMAGES += debian-sparc64-cross DOCKER_PARTIAL_IMAGES += debian-xtensa-cross DOCKER_PARTIAL_IMAGES += fedora-cris-cross diff --git a/tests/docker/dockerfiles/debian-riscv64-test-cross.docker b/tests/docker/dockerfiles/debian-riscv64-test-cross.docker deleted file mode 100644 index 6e631295bc..0000000000 --- a/tests/docker/dockerfiles/debian-riscv64-test-cross.docker +++ /dev/null @@ -1,19 +0,0 @@ -# -# Docker cross-compiler target -# -# This docker target builds on the Debian Bullseye base image. -# -FROM docker.io/library/debian:11-slim - -RUN export DEBIAN_FRONTEND=noninteractive && \ - apt-get update && \ - apt-get install -y eatmydata && \ - eatmydata apt-get dist-upgrade -y && \ - eatmydata apt-get install --no-install-recommends -y \ - gcc-riscv64-linux-gnu \ - libc6-dev-riscv64-cross -# As a final step configure the user (if env is defined) -ARG USER -ARG UID -RUN if [ "${USER}" ]; then \ - id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi