From patchwork Tue Oct 31 14:43:47 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: 739571 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1687578wrt; Tue, 31 Oct 2023 07:46:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETmaUdWyM9wth4xYPGe/yTh+C9vo/m39eEsHgW5Nxy/GqeftwtyiRHLQHa2hprFM/wqC7B X-Received: by 2002:a05:6102:108a:b0:458:6173:8d4 with SMTP id s10-20020a056102108a00b00458617308d4mr8414113vsr.20.1698763562102; Tue, 31 Oct 2023 07:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698763562; cv=none; d=google.com; s=arc-20160816; b=SZwP8qO4eNk/FZr5Mkv51tD53Y9wVEFbOaeCFJqyAiMZ3lPsDWiVpl0VriEH0lhqMP jC+OHq4kFp2nshdD7RNxcFFYvCptEalMhaIhQMm4zHimCgsFqgOMqlNF7LLjzUxzG39h bUl/Agovgd4SPCIY9BApHeV6BMHTURr6xVgfYjlDiBhZngsFvhRlwVWOYOmyqMYTrnZ2 ZJPryb4ON73E6IyD2RoWrDpk+Kx/eKWnFBngsROHbnSTuESsTS4O1KO916QBQll0Y/fM ZaJTkguwFBD/eNGdVWc3ezzvNZZiK71mQyC/wfBjkTNQ9E/G0Q2vanEaXhHLhZDnzHKP nJgA== 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=UP+el9zXc/Zi57Qh90eA4w6Sr5YdMSWfNVrtYXcuHAY=; fh=RNVWmd7TwlX/wyQcdhmnon4JQcsRaZwH7hItUZb0D88=; b=JzW/ZecvIqIUBaEV/jx5mLvdi4h9QG1V2ghH78nbzCjHEbM13AkEVNLHMWUvp4hAb4 ZiQ7pp4jIqvsAhI4XNXDRBoP7PjJ9qWj7x5UKlCXEQkDNKGhdGEJplocRyXtgi+IK51q BQToTnJD74OBPY7pup8Tfr1TK9i7nsAm6wn6D7m2Ko1Wr4iHX9KiSiqYpQVDe0jNMI11 tvb1DxrF1udDJwkeYT3zSJzhSbX+zE7J/RVfeOfxXO+LDVI0KIx8MJrVuW3rC5G1GneD Kt1P+2eHx5Jvq1X5uNRzVIvGs3EQiJLm+agMACej3ee5LUULoqJaR91Z0zKcgiFv6IDi 0tcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FjI0SGCl; 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 t30-20020a05610210de00b004475488d4a7si149995vsr.481.2023.10.31.07.46.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Oct 2023 07:46:02 -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=FjI0SGCl; 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 1qxpyX-0004oo-Lr; Tue, 31 Oct 2023 10:44:13 -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 1qxpyW-0004oI-8A for qemu-devel@nongnu.org; Tue, 31 Oct 2023 10:44:12 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxpyT-00029t-Ae for qemu-devel@nongnu.org; Tue, 31 Oct 2023 10:44:11 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40859c46447so37953825e9.1 for ; Tue, 31 Oct 2023 07:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698763448; x=1699368248; 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=UP+el9zXc/Zi57Qh90eA4w6Sr5YdMSWfNVrtYXcuHAY=; b=FjI0SGClXsOb1d5TeCO9Ut9dorBVqQOsp4xdafhJb66m6WbSREZXg5zzCMOylqkvCI WEBL0ii1/Pr0iuwZW5UYtzZxtTtS5f00S/gBzTsSl5Mngk0S5nBhdSWtOQvM3aTUUoOA TwRC/+Ih7q16S9aPCPRiKVIADI+740Q5DKvfx4fT5w9RXvAZbQY0rzAjeuh/oFkKXylG XTMLRdgi9VHX8JM/C0lHu9vokoCsoKiMEldjBAU0A0t1ufCqX4VraRVYfhvcet+rYJsn E44SzRQgdm6xsa6lQ97pt8OnyMdL4ECvRcqs/kAjzarGp+jRNCTUexo/RRZyOjrU4asv T2+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698763448; x=1699368248; 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=UP+el9zXc/Zi57Qh90eA4w6Sr5YdMSWfNVrtYXcuHAY=; b=j+c1QQCyC9eM2YcAzH3wg0c1UH/OZHUG9Qid91B80T6P47GvUKiiuVXTG9NlUEqbl5 7FYOlainECH/NueQnq3j13j3TPNVx3bB1V9ALKN9xAhjiSiXPQU8pC2Jj4rea17wHn3v LlzjSSV40mZ5JeaPpWBX/RD8CekqZQP2Q9fTD6eMsDk0mJkk/6BG+BbDsZ+jEDqemrnO qSLROgs7rzZFGwD5wq+2AL4hBFHsohXoRIUW1j4RaJ7PiEwA3FkR47Tr2ihZxbmziHRC pWGn6g8MQ3ZdhE8niI67ofl66bK/MQTrctnQNQOseqYR7yFn/YWlNw4GHhNC9prg21un Hp5Q== X-Gm-Message-State: AOJu0YxbLm/pQePCoBBM3rIOhUwNy2anLL4dJvxIIZ9XAqoCyB59t7NH mib2wC1tuaRbppYnvJuNXLjMTNbBf4Uzlehyz+Q= X-Received: by 2002:a05:600c:4e89:b0:406:545a:f8fe with SMTP id f9-20020a05600c4e8900b00406545af8femr11441935wmq.29.1698763447933; Tue, 31 Oct 2023 07:44:07 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a18-20020a5d5092000000b0032db8f7f378sm1662959wrt.71.2023.10.31.07.44.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 07:44:05 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 42EC065725; Tue, 31 Oct 2023 14:44:02 +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 Subject: [PULL 05/19] gitlab: add build-loongarch to matrix Date: Tue, 31 Oct 2023 14:43:47 +0000 Message-Id: <20231031144401.1238210-6-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::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.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 We have the compiler and with a few updates a container that can build QEMU so we should at least run the check-tcg smoke tests. Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20231029145033.592566-6-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 5e9cbf9385..9500ea6e2c 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -303,6 +303,15 @@ build-some-softmmu: TARGETS: arm-softmmu aarch64-softmmu i386-softmmu riscv64-softmmu s390x-softmmu x86_64-softmmu MAKE_CHECK_ARGS: check-tcg + +build-loongarch64: + extends: .native_build_job_template + needs: + job: loongarch-debian-cross-container + variables: + IMAGE: debian-loongarch-cross + CONFIGURE_ARGS: --disable-tools --enable-debug + TARGETS: loongarch64-linux-user loongarch64-softmmu MAKE_CHECK_ARGS: check-tcg # We build tricore in a very minimal tricore only container diff --git a/.gitlab-ci.d/container-cross.yml b/.gitlab-ci.d/container-cross.yml index 80c540230a..d200f3e00d 100644 --- a/.gitlab-ci.d/container-cross.yml +++ b/.gitlab-ci.d/container-cross.yml @@ -52,6 +52,12 @@ hppa-debian-cross-container: variables: NAME: debian-hppa-cross +loongarch-debian-cross-container: + extends: .container_job_template + stage: containers + variables: + NAME: debian-loongarch-cross + m68k-debian-cross-container: extends: .container_job_template stage: containers diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index ab68b2dbad..5635d1537f 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -125,7 +125,6 @@ docker-image-debian-nios2-cross: $(DOCKER_FILES_DIR)/debian-toolchain.docker \ DOCKER_PARTIAL_IMAGES += debian-alpha-cross DOCKER_PARTIAL_IMAGES += debian-powerpc-test-cross DOCKER_PARTIAL_IMAGES += debian-hppa-cross -DOCKER_PARTIAL_IMAGES += debian-loongarch-cross DOCKER_PARTIAL_IMAGES += debian-m68k-cross debian-mips64-cross DOCKER_PARTIAL_IMAGES += debian-microblaze-cross DOCKER_PARTIAL_IMAGES += debian-mips-cross diff --git a/tests/docker/dockerfiles/debian-loongarch-cross.docker b/tests/docker/dockerfiles/debian-loongarch-cross.docker index b4bf265717..b25e779a2c 100644 --- a/tests/docker/dockerfiles/debian-loongarch-cross.docker +++ b/tests/docker/dockerfiles/debian-loongarch-cross.docker @@ -9,22 +9,42 @@ FROM docker.io/library/debian:11-slim # Duplicate deb line as deb-src RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list +RUN export DEBIAN_FRONTEND=noninteractive && \ + apt-get update && \ + apt-get install -y eatmydata && \ + eatmydata apt-get dist-upgrade -y && \ + apt build-dep -yy qemu + RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ DEBIAN_FRONTEND=noninteractive eatmydata \ apt-get install -y --no-install-recommends \ build-essential \ + bison \ ca-certificates \ + ccache \ + clang \ + flex \ curl \ gettext \ git \ - python3-minimal + ninja-build \ + python3-pip \ + python3-setuptools \ + python3-venv \ + python3-wheel + +RUN /usr/bin/pip3 install tomli RUN curl -#SL https://github.com/loongson/build-tools/releases/download/2023.08.08/CLFS-loongarch64-8.1-x86_64-cross-tools-gcc-glibc.tar.xz \ | tar -xJC /opt ENV PATH $PATH:/opt/cross-tools/bin ENV LD_LIBRARY_PATH /opt/cross-tools/lib:/opt/cross-tools/loongarch64-unknown-linux-gnu/lib:$LD_LIBRARY_PATH + +ENV QEMU_CONFIGURE_OPTS --disable-system --disable-docs --disable-tools +ENV DEF_TARGET_LIST loongarch64-linux-user,loongarch-softmmu + # As a final step configure the user (if env is defined) ARG USER ARG UID