From patchwork Mon Dec 23 17:10:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35221 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1FD7427BBEA; Mon, 23 Dec 2024 17:12:18 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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 6805E27BBE2 for ; Mon, 23 Dec 2024 17:12:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPlyP-0007eO-UC; Mon, 23 Dec 2024 12:12:05 -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 1tPlyN-0007di-M7 for guix-patches@gnu.org; Mon, 23 Dec 2024 12:12:03 -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 1tPlyN-0001EZ-9t; Mon, 23 Dec 2024 12:12:03 -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=DDNV53HXH0bvNDPNe8HPA/bLxXDXaIvfzGbc6+tS1XU=; b=Iadw+WBRjRkSv6nUZyiwOYPwKafp/Sjebj90PMmHQQ2AKOlVmn38H3ag189SaW9QTphorH3/voVubrsKrJ9g5Tbvp49sLJEZsYqo3bcmt1fZsmlt7AMbcSJ13vx30SQsWBPxiK/a2ZYhcwf4KWRzgNuFx3jg3vo1nmjWyAz9xzoIKJtzknoUMiMlZ6zlqnyIM5DJb5IFXLYZ4dLuZYvmtO1ph0dNDWM1/iAehOxPVWjeYCibUh/PyCUOmjJ9TrzKitOfoVTuIPOsPYvVC+nsyCNoxWZ4mI6Buts1UYH92m+exz6JXMGtIIrniN8ZKTNU16Kr+N41X32MG810lU3Uow==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPlyM-0007wu-As; Mon, 23 Dec 2024 12:12:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 04/14] gnu: cross-base: Add cross-compiling support for loongarch64. Resent-From: Zheng Junjie <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, janneke@gnu.org, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:12: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: Andreas Enge , Janneke Nieuwenhuizen , Ludovic =?utf-8?q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Andreas Enge , Janneke Nieuwenhuizen , Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.173497386530456 (code B ref 75051); Mon, 23 Dec 2024 17:12:02 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:11:05 +0000 Received: from localhost ([127.0.0.1]:55865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlxQ-0007vA-QU for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:11:05 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:56679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlxN-0007ue-W4 for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:11:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973854; bh=DDNV53HXH0bvNDPNe8HPA/bLxXDXaIvfzGbc6+tS1XU=; h=From:To:Subject:Date:In-Reply-To:References; b=w1RoEdW8BoMfBZR44Osa1oDwFh+4LPWuxwhsCTkK93/qdC13jG1GacYZOCjdtoEGT Qh1VQMNEd6eiQg9fC9t4ml3SPWhd3SOgy4X3uNyRd0qNhoAaLEv7SIlNceakZCnjph /hXmQGv6P/+0U/D/jP5P2ssdRTfhBrFXh1iKLqmg= Received: from m.tailaa68d.ts.net ([107.174.64.25]) by newxmesmtplogicsvrsza36-0.qq.com (NewEsmtp) with SMTP id 2AC18064; Tue, 24 Dec 2024 01:10:44 +0800 X-QQ-mid: xmsmtpt1734973844ts7yn6vp3 Message-ID: X-QQ-XMAILINFO: N/WmRbclY25GK62OQFrB/2W0BXCqicDlhK9iPTaszYQoEXwpOLY2wcem4LKkNv fSAQep1yuVE0aM9n7737+5hGmoKFiHf+m59evzTEKS+4wm2I+qFEcXdKS1qzEU6Pvt2OMkSmfOE1 awgaE9LpMSNpULOPrqUWaVREfE0KUVsTF1NGRI2gTxWzJOyLi4S3kVAkyjWizPVKIk3LOmDsFcai lqz2yx9uC3uA0YStKzLnURjnVcbkyt/ShFekqJEpEWGU6tq4KSoLr1R9849Yn/08xnhpbAULMIiA M0nC3u5fIU2Q33Al2hb1r4w1xxzxsOv6kuZzyWjucV0cjBcfxRLxzjeGQK/bPyK/h/gB4y8xkkfN cHY396NDRgD1abkQjlScdT1LjIu5tPTh0oEPfFrz7YnEHiQl7bL4BvP+/M32hwHTU6UNWK3yh/fQ JOGqqGFiUBKlXhTaznBY+qX58BmeN2h6Aj/J5hc27jiAI7wFkvaZsXu0wVFqQi7T9Xp19IM3YxAM sRZ0kaPCCg9ZkygZxZIT++6kBJNoYmtRMFTCQoDNROu407DnnyX9Wd1fTeieoQbbRiZO46UV7xgG QvfaVxfksDE5gdD29kpKgIGiGMQ8vPuujdn46+GiThhZS5lkrTcH5CeQ8fwGDQc7APLMI/QNh76i a7jdsw34rIKC6PRRmrfBs/Et35usGXEqxyDj07PPh0fbMv5ue8U47rLgxGnWvrQkiblKaxxZo1II Aj+x8zSL1JoEsQlU0r5vGhjWaflUzoJXkY5Uu9IQuvTKOOdKWCg/MCYCqQZGJBn1cmifiPww8nNH UKA5uRazpY44Xgf0AqyIaR0djaxKaM7kq9HEfhoM3WmYYlt1Qf6KIvVYA06aOmZTLwFLL+1auMqy MD4w4herN1RVhaPyQOlUleo6BPpVC2IjEQOaKQ3fVySl4NvtRH86cjpeSxfzqO/H+eRborO/DnGI iCSWySxp5F+bzqtqOkGlsv6F+SXNVWE0Ch9G/Vb74= X-QQ-XMRINFO: OWPUhxQsoeAVDbp3OJHYyFg= Date: Tue, 24 Dec 2024 01:10:43 +0800 X-OQ-MSGID: <5102857426b19a4f23e93270dc3e46bcf66f5e9a.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 gnu/packages/cross-base.scm (cross-kernel-headers/deprecated, cross-kernel-headers*): When target loongarch64, use linux-libre-headers-5.19.17. Change-Id: Ib144ebf86428dddd92f5b899dc241a428f8dc374 --- gnu/packages/cross-base.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index ad3616eaba0..a4e9c2a9cb1 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -418,7 +418,10 @@ (define* (cross-kernel-headers . args) (define* (cross-kernel-headers/deprecated target #:optional - (linux-headers linux-libre-headers) + (linux-headers + (if (target-loongarch64? target) + linux-libre-headers-5.19.17 + linux-libre-headers)) (xgcc (cross-gcc target)) (xbinutils (cross-binutils target))) (warning (G_ "'cross-kernel-headers' must be used with keyword arguments~%")) @@ -493,7 +496,9 @@ (define* (cross-mig target (define* (cross-kernel-headers* target #:key - (linux-headers linux-libre-headers) + (linux-headers (if (target-loongarch64? target) + linux-libre-headers-5.19.17 + linux-libre-headers)) (xgcc (cross-gcc target)) (xbinutils (cross-binutils target))) "Return headers depending on TARGET."