From patchwork Tue Jul 19 17:59:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 591659 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5817:0:0:0:0 with SMTP id j23csp4206708max; Tue, 19 Jul 2022 11:01:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgux5CarOVl/Emplpk+TJXGzB92KlcxkP1vV8mrlVTr5pJlmdL7l1cY6b/Q+0rMcOhiooP X-Received: by 2002:ac8:5a08:0:b0:31e:fcc6:cbf3 with SMTP id n8-20020ac85a08000000b0031efcc6cbf3mr3446237qta.158.1658253694076; Tue, 19 Jul 2022 11:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658253694; cv=none; d=google.com; s=arc-20160816; b=RGyUXRe08RwoY7Yluj2+aFUyRK1o3Gc6EkHIaUehyMWdcCkFAl62WqPGV2+86VlB+4 uQC9QabHcBG8rAaSzvu1TQ9bTmil95KXKMVZUXp1ZcCHDPUxpv6SqJXxqGhd0NCIimRb 4YpL3QTlgHqsvCZl7RsN252d/2Uy2S7lCnwgTAUV7MB99dU6Z+NwvZvmgaCkJSmOWRpJ sbfSdNMEuhD0L49t7VX8FK2ER2mdHqcxQrnvIv6NcwGgbLj57QGGFG+KozaJyRpD+oP0 Rhlhh4jdES6qOnGaLrsUfUuxajg7SNkQoPwFmWxG+/XmLv0a/3nVvkOMftgFDAVvI7+e 81AA== 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=9k1lHk5UkpDkzX36210DaCgkLVnTlKXqf0lgSSEv3hY=; b=BdNNVw56eMpmuCIPQyMnft4NUW7rMLtmUPDAAYeZJiUXmp8C/7Z7SfeIUoUL6X3ady KFH6Auivup3XDw7X9Gz7LttsNh3tx1bse0RBqohxJ/0qk1QXOY3SH13jgemCISsnOtSH LVXXN17uwgFuimQdKgyWERrAv8IDOnSw9Ye6R5qgpui+tDKkrDbD282jy+IhAvfyhLsw UBzU/LDfzZ2AaEqY+jAJod3T6RAlREXgIvR6jtq3eLxTNqi+SFDTzz3NiZZsJxymLYci JZGa97CmX0HyabDmC9ua3dyKLOMhITnRqNpxKQ6KHn1D8JJvQybUAXKQyNU/RCH2wce8 6C6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="h0n2/M/0"; 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 gg15-20020a056214252f00b004702ce84e44si7978857qvb.383.2022.07.19.11.01.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jul 2022 11:01:34 -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="h0n2/M/0"; 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]:52058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDrXJ-0005kM-Jp for patch@linaro.org; Tue, 19 Jul 2022 14:01:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDrW5-0005iK-3h for qemu-devel@nongnu.org; Tue, 19 Jul 2022 14:00:17 -0400 Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]:38849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDrW3-00069v-2n for qemu-devel@nongnu.org; Tue, 19 Jul 2022 14:00:16 -0400 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-10c8e8d973eso32947223fac.5 for ; Tue, 19 Jul 2022 11:00:14 -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=9k1lHk5UkpDkzX36210DaCgkLVnTlKXqf0lgSSEv3hY=; b=h0n2/M/09VgUk8idtLcVTuOYxT91NrYQb+yUQczPeSYTG/AXly7Sv98AcQIRZEbb5c AY1E6TYuUicNttQiruzevWfH6gEnFCo0QOZ+HXxRM/6cxbT0CiobGbVK7/WiH/cIuqTj 0wXAXuXnFkWSRyq4GlMdfSXccBjo3F3j/gGt6puC2fsocBQyxUAUXzi7LAAL5sOUV8La DgFbQp4x/qFDBxtR5BdZpMQavYgS9zJyjuBJcCpxJiJ94lVns5VBTwx2RM6RYAZGe3Rg VyUvGGY08nvMR+RWAjMiMcBARBPIE3QAz5QBfHIJ29yW+4o6gx4qSXhGyPdqFgZr/rfC M0ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9k1lHk5UkpDkzX36210DaCgkLVnTlKXqf0lgSSEv3hY=; b=TRYAEWFj75PESToZK7s5FSdX2GX5/smaZHrFUY7YNybXhtqCllSsBRkjVhm712Y5Oh GFTU692hzJb28CUMs2bz0JHKhaaeD8W5h+bCCUAcG71B+mKspsoZLdttWjF1j2DlICfF 4c6eas/y2x4CRMmPegqoPqthmwKkoZNi0bxJvBz0Z2RYwA7/sorXzLh0cnGXA+UXCH9H 3+Q+9WIDzfYkZlbQkpt5vahYUK++7sVJ+EaECEvLj4zu79RfWylwl7M3r3yh0QShwnY/ TLes6/OVcUo62TlQqTIMi2jNJ9WAbQFZQTIONRYufqCNLoeUc3QCc9eAkG7V8aBLzwXc BFNQ== X-Gm-Message-State: AJIora94DCD9uRpH109ZXlbvqwi/i/IZVBi4KKg10RJIC7Esci8P3vMt TZp70hJ1gq2Qp1s6MW22yCQz1FonTTVicL9W X-Received: by 2002:a05:6870:c5a0:b0:10c:5a7f:1e1c with SMTP id ba32-20020a056870c5a000b0010c5a7f1e1cmr369603oab.250.1658253613765; Tue, 19 Jul 2022 11:00:13 -0700 (PDT) Received: from stoup.. ([172.58.110.182]) by smtp.gmail.com with ESMTPSA id c25-20020a4ae259000000b0035eb4e5a6cesm6286747oot.36.2022.07.19.11.00.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 11:00:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Song Gao , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 01/21] tests/docker/dockerfiles: Add debian-loongarch-cross.docker Date: Tue, 19 Jul 2022 23:29:40 +0530 Message-Id: <20220719180000.378186-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220719180000.378186-1-richard.henderson@linaro.org> References: <20220719180000.378186-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::31; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x31.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" Use the pre-packaged toolchain provided by Loongson via github. Tested-by: Song Gao Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20220704070824.965429-1-richard.henderson@linaro.org> --- configure | 5 ++++ tests/docker/Makefile.include | 2 ++ .../dockerfiles/debian-loongarch-cross.docker | 25 +++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-loongarch-cross.docker diff --git a/configure b/configure index 4f12481765..35e0b28198 100755 --- a/configure +++ b/configure @@ -1933,6 +1933,7 @@ probe_target_compiler() { hexagon) container_hosts=x86_64 ;; hppa) container_hosts=x86_64 ;; i386) container_hosts=x86_64 ;; + loongarch64) container_hosts=x86_64 ;; m68k) container_hosts=x86_64 ;; microblaze) container_hosts=x86_64 ;; mips64el) container_hosts=x86_64 ;; @@ -1987,6 +1988,10 @@ probe_target_compiler() { container_image=fedora-i386-cross container_cross_prefix= ;; + loongarch64) + container_image=debian-loongarch-cross + container_cross_prefix=loongarch64-unknown-linux-gnu- + ;; m68k) container_image=debian-m68k-cross container_cross_prefix=m68k-linux-gnu- diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index ef4518d9eb..9a45e8890b 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -140,6 +140,7 @@ docker-image-debian-nios2-cross: $(DOCKER_FILES_DIR)/debian-toolchain.docker \ # Specialist build images, sometimes very limited tools docker-image-debian-tricore-cross: docker-image-debian10 docker-image-debian-all-test-cross: docker-image-debian10 +docker-image-debian-loongarch-cross: docker-image-debian11 docker-image-debian-microblaze-cross: docker-image-debian10 docker-image-debian-nios2-cross: docker-image-debian10 docker-image-debian-powerpc-test-cross: docker-image-debian11 @@ -149,6 +150,7 @@ docker-image-debian-riscv64-test-cross: docker-image-debian11 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-nios2-cross diff --git a/tests/docker/dockerfiles/debian-loongarch-cross.docker b/tests/docker/dockerfiles/debian-loongarch-cross.docker new file mode 100644 index 0000000000..ca2469d2a8 --- /dev/null +++ b/tests/docker/dockerfiles/debian-loongarch-cross.docker @@ -0,0 +1,25 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian11 base image, +# using a prebuilt toolchains for LoongArch64 from: +# https://github.com/loongson/build-tools/releases +# +FROM qemu/debian11 + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ + DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + build-essential \ + ca-certificates \ + curl \ + gettext \ + git \ + python3-minimal + +RUN curl -#SL https://github.com/loongson/build-tools/releases/download/2022.05.29/loongarch64-clfs-5.0-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