Message ID | e42601ae52b6a8d36aec3022507917fdbaab1dce.1737736020.git.zhengjunjie@iscas.ac.cn |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4F53A27BBEE; Fri, 24 Jan 2025 16:47:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0F7A327BBE2 for <patchwork@mira.cbaines.net>; Fri, 24 Jan 2025 16:47:12 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1tbMjw-0005SG-55; Fri, 24 Jan 2025 11:41:04 -0500 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 <Debian-debbugs@debbugs.gnu.org>) id 1tbMj2-000497-DP for guix-patches@gnu.org; Fri, 24 Jan 2025 11:40:16 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tbMj2-0008O9-2u; Fri, 24 Jan 2025 11:40:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=ir1qxwT/DAUqLy2V7g4B0gFwe0DXC6+9IGj+RBjcq5k=; b=aoKmXl0a2+KCXXQz92424Tmw3EZza849xKCJ4ugGknJ1mvtwZ+Krm9UCSlmtCwTQ8idz1Ie/BUmgetzXYeu/feefMnDtigT4/mFgLrizwYFXkB+VAYJLp/lMLNxKCJmBy0hYvBeIoKIP4h1/qefks303pgDQ2tiJ+ES/wN+Z5m3DREG7OMS87qnfLghhaKacGiB2zMIW/ugpctJS1qxyXpQk5XfzYCjoUwwpZb+ZO+pnlObwyRCEBWrWsr2HEyxq9T4gdvZ4TbyZ4rgGcklEe1dTdqT2TVhGIGnKQUeSYD0NLbr2cj3EQaL6jXnIrQy7++bCdwJ5UJ8cbpDwAZ7kvw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tbMiy-00016k-Bk; Fri, 24 Jan 2025 11:40:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH v2 03/15] utils: Add target-loongarch64?. Resent-From: Zheng Junjie <zhengjunjie@iscas.ac.cn> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Fri, 24 Jan 2025 16:40:04 +0000 Resent-Message-ID: <handler.75051.B75051.17377367824089@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75051 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75051@debbugs.gnu.org Cc: Zheng Junjie <873216071@qq.com>, Christopher Baines <guix@cbaines.net>, Josselin Poiret <dev@jpoiret.xyz>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Mathieu Othacehe <othacehe@gnu.org>, Simon Tournier <zimon.toutoune@gmail.com>, Tobias Geerinckx-Rice <me@tobias.gr> X-Debbugs-Original-Xcc: Christopher Baines <guix@cbaines.net>, Josselin Poiret <dev@jpoiret.xyz>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Mathieu Othacehe <othacehe@gnu.org>, Simon Tournier <zimon.toutoune@gmail.com>, Tobias Geerinckx-Rice <me@tobias.gr> Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.17377367824089 (code B ref 75051); Fri, 24 Jan 2025 16:40:04 +0000 Received: (at 75051) by debbugs.gnu.org; 24 Jan 2025 16:39:42 +0000 Received: from localhost ([127.0.0.1]:46722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1tbMib-00013i-Rv for submit@debbugs.gnu.org; Fri, 24 Jan 2025 11:39:42 -0500 Received: from smtp81.cstnet.cn ([159.226.251.81]:49398 helo=cstnet.cn) by debbugs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from <zhengjunjie@iscas.ac.cn>) id 1tbMiX-000130-NG for 75051@debbugs.gnu.org; Fri, 24 Jan 2025 11:39:38 -0500 Received: from m.tailaa68d.ts.net (unknown [107.174.64.25]) by APP-03 (Coremail) with SMTP id rQCowABnbAw1wpNnvBI5CQ--.23013S4; Sat, 25 Jan 2025 00:39:28 +0800 (CST) From: Zheng Junjie <zhengjunjie@iscas.ac.cn> Date: Sat, 25 Jan 2025 00:39:01 +0800 Message-ID: <e42601ae52b6a8d36aec3022507917fdbaab1dce.1737736020.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2.47.1 In-Reply-To: <cover.1737736020.git.zhengjunjie@iscas.ac.cn> References: <cover.1737736020.git.zhengjunjie@iscas.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8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIda VFxhVjvjDU0xZFpf9x07UiIDcUUUUU= X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
guix: Add loongarch platform.
|
|
Commit Message
Zheng Junjie
Jan. 24, 2025, 4:39 p.m. UTC
From: Zheng Junjie <873216071@qq.com>
* guix/utils.scm (target-loongarch64): New procedure.
Change-Id: I8d21bcf04d479937039f6f507b5460bb560fd8ec
---
guix/utils.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/guix/utils.scm b/guix/utils.scm index 2d82329cb75..b0712aaac37 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -113,6 +113,7 @@ (define-module (guix utils) target-ppc64le? target-powerpc? target-riscv64? + target-loongarch64? target-mips64el? target-64bit? target-little-endian? @@ -810,6 +811,10 @@ (define* (target-avr? #:optional (target (%current-target-system))) "Is the architecture of TARGET a variant of Microchip's AVR architecture?" (or (string=? target "avr") (string-prefix? "avr-" target))) +(define* (target-loongarch64? #:optional (target (or (%current-target-system) + (%current-system)))) + (string-prefix? "loongarch64-" target)) + (define* (target-ppc32? #:optional (target (or (%current-target-system) (%current-system)))) (string-prefix? "powerpc-" target))