From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QMi7LDqZaWcR2wAAe85BDQ:P1 (envelope-from ) for ; Mon, 23 Dec 2024 17:09:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QMi7LDqZaWcR2wAAe85BDQ (envelope-from ) for ; Mon, 23 Dec 2024 18:09:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=iHdnHkUU; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=kOVYgL0O; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734973754; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wvCDH7kdYI7H8ZAgh/sXkvqov2XvS2xGZcT/vYzhYRA=; b=OrkcvzlTZfBA38RX0zesMpTunVD/hr8K3T2Osy2aILdZEoGkM5SPs1Z/dnX67csMuR1ipC hJYxrYPUMSHiIG4wFloo9YG1JEopL4puAEmTtKMHkqU9CKULnbBYTb6+wnLCVT8eNQdvBH 1EnGDTI4/2oNSC6GJvKYPWrFOjjMNvUD1Retri07W3BqE9rGvsUJvMUlC5HHPKK6oKgq+t XOAhPJ5pcGbwERAYfeIDBYUcki88qMGNbrGBVUlTqYHaE5yjFrZ+Q/qX9CvXTd2BOOoJTj 3INU5dPadxIc1UxwsWdowqGivB5I+Sd3n2Tc9vfqin94eY/a1hdzX8LpC+cLoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=iHdnHkUU; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=kOVYgL0O; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734973754; a=rsa-sha256; cv=none; b=RCoaDD1P0/em7FxNtMkqqEU8pGxeyCRfvlDZzSYhqsNDlY78oTIz7FcpbFq7hVC8k5ydeR itU1WiUyfg4KxNZCrS7BzIzljG2X+MjvyARD9zWswdYoFWJPlmsdncx/PN1J6ZiREVMnQo QJ8OB/GrVRnLJe7VPccNCx1dz5YxGz11aZPmo43mwMsItcXSuDS9IUpb+UymjzVBz6zoD/ buWHRgH+yzgBf6WauWn0DIdhU9WgLJGaCsHdrbgf+ef2ZvlNxMCR1Mg7TtTs7+abnGG/ze Db/Ej2IRI9IE2Dvg86CVKgbE6iCvP3YoagRvwLar6cBOyKFiAB0ajZENptcWXA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CBB9C9522E for ; Mon, 23 Dec 2024 18:09:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPlvW-0006aq-8x; Mon, 23 Dec 2024 12:09:06 -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 ) id 1tPlvV-0006aU-0r for guix-patches@gnu.org; Mon, 23 Dec 2024 12:09:05 -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 ) id 1tPlvU-0000lr-6X; Mon, 23 Dec 2024 12:09:04 -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=wvCDH7kdYI7H8ZAgh/sXkvqov2XvS2xGZcT/vYzhYRA=; b=iHdnHkUUh4tVYS7M17J6AX00agSnOiM1cyrWkqeClVqiY/N2JZiW6KxztR6CzC8SZop7CejudFfVn/66n2QdLTNhUhGUKgGSKvLVXq1NKqRFn9zDkfcDiO+IlNMf91QraTvDpB1Ic2/1yMwkhzVtaRTTf7QfRkRN1gmGB1x9ccluezLig21aG9MW4mUOQtSmhTbVYUumFcYZtVJVMlivwwlju5LPz80B4UfqJK2h5Qn4MhYpcHfCBZMye101kePw0JtzrbqSYaBcb5XOxtKGbzw1AhsKniJqHwWG1X5/md5nf2T9387aadYvFnSXVr29aQn5SLFM06vTx6fhfdma8g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPlvS-0007lI-K2; Mon, 23 Dec 2024 12:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 02/14] utils: Add target-loongarch64?. Resent-From: Zheng Junjie <873216071@qq.com> Original-Sender: "Debbugs-submit" 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: Mon, 23 Dec 2024 17:09:02 +0000 Resent-Message-ID: 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: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.173497371329796 (code B ref 75051); Mon, 23 Dec 2024 17:09:02 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:08:33 +0000 Received: from localhost ([127.0.0.1]:55847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPluy-0007kV-SD for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:08:33 -0500 Received: from out162-62-58-216.mail.qq.com ([162.62.58.216]:54589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPluw-0007kA-Jq for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:08:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973702; bh=wvCDH7kdYI7H8ZAgh/sXkvqov2XvS2xGZcT/vYzhYRA=; h=From:To:Subject:Date:In-Reply-To:References; b=kOVYgL0OjSItj7EhA3LVX1Dp4nCbWegud0pPOmKQyYG7FWRBHP3harA/Apq7GQmV4 vqfRaR9R1upPmS13loT0dLmcZ+oZfxlANNviIEFxpL25jJxfAB/l1tTwblf+aUcvK0 4fa+OwDuWypjQlL4vjobFLBzGUib6t3R11d0rhLo= Received: from m.tailaa68d.ts.net ([107.174.64.25]) by newxmesmtplogicsvrszc16-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O2JZGowPPKuKnLDASR uONIuJ3IMyNCDUx4Zs0/hk3iBIpqd5h3/ksACpis0= X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= Date: Tue, 24 Dec 2024 01:08:00 +0800 X-OQ-MSGID: <836b95f22ebf980093d384f94f5e25a4a56c981b.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Zheng Junjie <873216071@qq.com> X-ACL-Warn: , Zheng Junjie via Guix-patches From: Zheng Junjie via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.51 X-Spam-Score: -4.51 X-Migadu-Queue-Id: CBB9C9522E X-Migadu-Scanner: mx10.migadu.com X-TUID: B787O3ShVNb/ * 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 537d0490e01..a07f26054d4 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -112,6 +112,7 @@ (define-module (guix utils) target-ppc64le? target-powerpc? target-riscv64? + target-loongarch64? target-mips64el? target-64bit? target-little-endian? @@ -801,6 +802,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)) -- 2.46.0