From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wJTnE8+YaWfqSgEAe85BDQ:P1 (envelope-from ) for ; Mon, 23 Dec 2024 17:07:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wJTnE8+YaWfqSgEAe85BDQ (envelope-from ) for ; Mon, 23 Dec 2024 18:07:27 +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=LPbgHMgJ; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=gWa45RCy; 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=1734973647; 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-type:content-type: 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=CqtPsXZcaw6cRT5gfD+bR9lFWdTL51lSoFbE0Ki5D90=; b=Wxb0l9MLX1W96V65fmKvJgQPsD/ijenqCEbcG/NeABpTFq2dNkn8LhqMdIFZpqdBUH4h1r A1EfxTRXZyTNJOi8fKjap+iZtzqePK5Ijyw7P42etbv5WL2s0CIPbZrf39LpYuTw8WF/vs BMSifEh9Amd1vkVlWumwUNQC7e4CiLsvaHGi1JfKJ7Nf8RvMGZyE+vLWD8JidhXjrgG12J hhxPN0BDE8lY5rE1/cD4dA4Y4PYu4t/l/XadZsiqFFo+uMebcIUvuqV9JPIWs0cILu8d7o vYmNqxp3EfyYAC+7y21ufnJtOxPqDou7/WvwpaqWqqLXhZkL0y+YefbE0u0SnA== 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=LPbgHMgJ; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=gWa45RCy; 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=1734973647; a=rsa-sha256; cv=none; b=hxvDShTP//BKaDiwp0IwITdpfJ4e/X8qLXlZ/VLVouKgGvntocyfa+/bPC+CqTBPmRhFDD 7rxzBK9ciRuj09g9S84eGW8ye9g08v5F49Yn4/OpKx7jiSi8aPJ+UoAoV1xlaz5/wss9fw 1jw6OsIxvpavvSBQDw/Pjub3s6IKbGfRZ9iDCLE8GlaS6SKITZb7jg0FSWA1/qEzxLV1Xl 3s/DM7njKIw8sZdLInDnwx9EQlPl+JJRCgXy3b3HMVjcWFKqvBkRdM5zkbZcIOtpX/nw5L Zez8Dz2MNrqw3umKKkBy2CSosY+X+D7NpSNC4mPPtRh5NK2X8mWS3diWYXVjxw== 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 1FE307F685 for ; Mon, 23 Dec 2024 18:07:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPltj-0006Pu-KV; Mon, 23 Dec 2024 12:07:15 -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 1tPltb-0006PP-Oj for guix-patches@gnu.org; Mon, 23 Dec 2024 12:07:07 -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 1tPlta-0000db-BO; Mon, 23 Dec 2024 12:07:06 -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=CqtPsXZcaw6cRT5gfD+bR9lFWdTL51lSoFbE0Ki5D90=; b=LPbgHMgJ5mAQ+/bAKEcS7t/LrozXjhZg8P3e7iOGPmE+zwxSxJXaOQhJFiJaqyco7aqUYaGweNEARbyThwkL6vkMUtDmXkl1BYZ10PMAW+zULPdvjKyf2N1Wd1sK/01QEWTmA7adkNv5eZp8G3k8s3jsDyNlaOZjjrOiZ/XUldrdgHT9dIwZBWwWoQFalTr2mvmO4AvcwFOZ9s2sOfnRKt4CNQdu1YStycxFKfOB9g8WIY0ML+4UJBVVtl0fc0C9NaZr+CEwKJ9p7ydCN6JSEuvHbGfFSsRbpj5PQtBu/L49XnbxaoECeHF+991WTcB2g2VgGe4wCXHoNd5vUlb2Kg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPltV-0007hw-Ru; Mon, 23 Dec 2024 12:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 01/14] guix: Add loongarch platform. 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, maxim.cournoyer@gmail.com, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:07:01 +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 , Maxim Cournoyer , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Maxim Cournoyer , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.173497359229577 (code B ref 75051); Mon, 23 Dec 2024 17:07:01 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:06:32 +0000 Received: from localhost ([127.0.0.1]:55839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlt2-0007gx-2b for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:06:32 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:46953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlsx-0007gf-Af for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:06:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973577; bh=CqtPsXZcaw6cRT5gfD+bR9lFWdTL51lSoFbE0Ki5D90=; h=From:To:Subject:Date:In-Reply-To:References; b=gWa45RCy7saD+MYNfsNWiGZC2OWswprJ6rBgSQOgF80d0XNW5VHcyk6mUgMlRiPrx irv0uykxtBWm8DZdM2oQpzE1kgFJxHQK4xkuswXtNsg7T2Sbiv0TUn9v2SfVReaZD5 oaI1e8nYbm3F7P+Mx347K7jwqDjLF4vTDsJEKcvI= Received: from m.tailaa68d.ts.net ([107.174.64.25]) by newxmesmtplogicsvrszb21-0.qq.com (NewEsmtp) with SMTP id 18A9C8A6; Tue, 24 Dec 2024 01:06:10 +0800 X-QQ-mid: xmsmtpt1734973570t04bjzr5x Message-ID: X-QQ-XMAILINFO: NB2Y38G+/V2YbWAVkJnn0Iva03Uf6bayLtl+x6D2azTSCw53guAmPfNkVTVMQT K5vcEH46ue07CJ8SIL1vSFGvyPmDQZvJlp4GeEUnCX9+mV5x81+p4AqZQ+FCUd+aSL00lGaVZHyV ddV8yvx/SUH4pZU1/hTJQCTrOtktBNUGw87a6rYMDGSRX16VGFglbw/FlmvoKtb4kFPg4wOj2W6k NETbYfU/QlX1mwktt5azuEOCl4r7dQ3LXzLmESUGjqYDmniUULWthaMaJKCeSuKadf5f+eMzK8mr GHyAmaCmi2O7F08GO5ROdV2aUDMs1StsP6Nu78hLS8E7GUYihanqc/xC9E9n05U5U6D/OSxlrUmv LPb0O4uJl21mMKaZcH78W3tJq15gSGZQiCC5+kpR3pq15ZdzYVy4l8/lh3bJ86a+ZXyzlr6tQeSC 0NCJmFFfJy5HFfRn1YFKXynl+QDv2RgFUUbNaKdUEqUN2N7z5kK8jS8kNAs+7hWFRiCYaho0GN8E pXcgtQzP6RSGc+jpXArm44e3GfZgvnJUfEtia1/fARzCwkoceqyv3rBlnkOGkpSvzFMLjK+1u7Y+ goXTdlapk8PYZg3Y5imSSfHpc1QTE1EH9Ggh4nICWg0OOyC7CsuP/fkjmfOXHlbd1WmnLFUVOw/3 +fZCIrT4ZI1Xl76JFZbTamcxZA8eiOX/p2IdGMqeSaw20cwmgQahsWRPeGRziSYSqLRNPeSCWKJB Xtpvd0iqdV3ti4N4ncqZUedwcsfT8ZfTtt4gc0DcH52XhvIHTfFCWBWIrU0BOsjN0OR3QkNuHNGd 2h6JzE8ODD2fhe96KWgoPlBXaGGycRlpGkkOhe1O4cz8upb4YV4UuPB9BODRXkCZ2ooXjVQ5Esx+ DS6xeN1WCjaRCrVLb69Le62pkgUkGYv3fsZK+qy3WJdCCjMCKeKkAskL01dxOgJJu6UkuZN0GKDZ RBKa9bfNk= X-QQ-XMRINFO: NI4Ajvh11aEj8Xl/2s1/T8w= Date: Tue, 24 Dec 2024 01:05:53 +0800 X-OQ-MSGID: <19f664258a3f4cbb5ca8e233052b1988b4a57108.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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-Queue-Id: 1FE307F685 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 0.30 X-Spam-Score: 0.30 X-TUID: 2WLZOLVYWIg7 * Makefile.am (MODULES): Add loongarch platform module. * doc/guix.texi: Add documentation for loongarch platform. * guix/platforms/loongarch.scm (loongarch64-linux): New variable. Change-Id: I71b8f3cb3b2f0d9562bbbefdc1f2fc4b2dcc4fbb --- Makefile.am | 1 + doc/guix.texi | 7 ++++++- guix/platforms/loongarch.scm | 30 ++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 guix/platforms/loongarch.scm diff --git a/Makefile.am b/Makefile.am index d3eeaddaf4a..413f3caf518 100644 --- a/Makefile.am +++ b/Makefile.am @@ -140,6 +140,7 @@ MODULES = \ guix/platform.scm \ guix/platforms/arm.scm \ guix/platforms/avr.scm \ + guix/platforms/loongarch.scm \ guix/platforms/mips.scm \ guix/platforms/or1k.scm \ guix/platforms/powerpc.scm \ diff --git a/doc/guix.texi b/doc/guix.texi index f7b75698870..576bd45ba3d 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -116,7 +116,7 @@ Copyright @copyright{} 2023 Karl Hallsby@* Copyright @copyright{} 2023 Nathaniel Nicandro@* Copyright @copyright{} 2023 Tanguy Le Carrour@* -Copyright @copyright{} 2023, 2024 Zheng Junjie@* +Copyright @copyright{} 2023-2024 Zheng Junjie@* Copyright @copyright{} 2023 Brian Cully@* Copyright @copyright{} 2023 Felix Lechner@* Copyright @copyright{} 2023 Foundation Devices, Inc.@* @@ -17021,6 +17021,7 @@ Cross-Compilation - i586-pc-gnu - i686-linux-gnu - i686-w64-mingw32 + - loongarch64-linux-gnu - mips64el-linux-gnu - or1k-elf - powerpc-linux-gnu @@ -48981,6 +48982,10 @@ Supported Platforms Platform targeting ARM v8 CPU running GNU/Linux. @end defvar +@defvar loongarch64-linux +Platform targeting loongarch 64-bit CPU running GNU/Linux. +@end defvar + @defvar mips64-linux Platform targeting MIPS little-endian 64-bit CPU running GNU/Linux. @end defvar diff --git a/guix/platforms/loongarch.scm b/guix/platforms/loongarch.scm new file mode 100644 index 00000000000..3c73c75ffd1 --- /dev/null +++ b/guix/platforms/loongarch.scm @@ -0,0 +1,30 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (guix platforms loongarch) + #:use-module (guix platform) + #:use-module (guix records) + #:export (loongarch64-linux)) + +(define loongarch64-linux + (platform + (target "loongarch64-linux-gnu") + (system "loongarch64-linux") + (linux-architecture "loongarch") + (rust-target "loongarch64-unknown-linux-gnu") + (glibc-dynamic-linker "/lib/ld-linux-loongarch-lp64d.so.1"))) -- 2.46.0