From patchwork Thu May 18 18:28:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denis 'GNUtoo' Carikli X-Patchwork-Id: 50137 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 35AA127BBE2; Thu, 18 May 2023 19:29:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 23DCE179AE for ; Thu, 18 May 2023 19:29:21 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pziNB-0005Iw-RD; Thu, 18 May 2023 14:29:09 -0400 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 1pziN6-0005GD-Bc for guix-patches@gnu.org; Thu, 18 May 2023 14:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pziN6-0003Xl-2v for guix-patches@gnu.org; Thu, 18 May 2023 14:29:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pziN5-0002lE-VD for guix-patches@gnu.org; Thu, 18 May 2023 14:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63576] [PATCH v1 4/4] gnu: Add aarch64-none-elf-gcc-toolchain. Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 May 2023 18:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63576@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , Efraim Flashner , Denis 'GNUtoo' Carikli Received: via spool by 63576-submit@debbugs.gnu.org id=B63576.168443452610567 (code B ref 63576); Thu, 18 May 2023 18:29:03 +0000 Received: (at 63576) by debbugs.gnu.org; 18 May 2023 18:28:46 +0000 Received: from localhost ([127.0.0.1]:54519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pziMn-0002kI-S5 for submit@debbugs.gnu.org; Thu, 18 May 2023 14:28:46 -0400 Received: from cyberdimension.org ([80.67.179.20]:34922 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pziMk-0002jY-P6 for 63576@debbugs.gnu.org; Thu, 18 May 2023 14:28:43 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id fb42cd20; Thu, 18 May 2023 18:28:37 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 49dce1c0; Thu, 18 May 2023 18:28:37 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Thu, 18 May 2023 20:28:14 +0200 Message-Id: <20230518182814.15881-4-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230518182814.15881-1-GNUtoo@cyberdimension.org> References: <20230518182814.15881-1-GNUtoo@cyberdimension.org> 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: , 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/aarch64-none-elf-toolchain.scm (aarch64-none-elf-gcc-toolchain): New variable. --- gnu/packages/aarch64-none-elf-toolchain.scm | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/aarch64-none-elf-toolchain.scm b/gnu/packages/aarch64-none-elf-toolchain.scm index 9863e65dad..a9a7ca2866 100644 --- a/gnu/packages/aarch64-none-elf-toolchain.scm +++ b/gnu/packages/aarch64-none-elf-toolchain.scm @@ -23,6 +23,7 @@ (define-module (gnu packages aarch64-none-elf-toolchain) #:use-module (guix download) #:use-module (guix packages) #:use-module (guix build-system gnu) + #:use-module (guix build-system trivial) #:use-module (gnu packages cross-base) #:use-module (gnu packages gcc) #:use-module (gnu packages texinfo)) @@ -128,3 +129,31 @@ (define-public aarch64-none-elf-newlib usable on embedded products.") (license (license:non-copyleft "https://www.sourceware.org/newlib/COPYING.NEWLIB")))) + +(define-public aarch64-none-elf-gcc-toolchain + (package + (name "aarch64-none-elf-gcc-toolchain") + (version (package-version aarch64-none-elf-gcc)) + (source #f) + (build-system trivial-build-system) + (arguments + '(#:modules ((guix build union)) + #:builder + (begin + (use-modules (ice-9 match) + (guix build union)) + (match %build-inputs + (((names . directories) ...) + (union-build (assoc-ref %outputs "out") + directories) + #t))))) + (propagated-inputs + `(("binutils" ,aarch64-none-elf-binutils) + ("gcc" ,aarch64-none-elf-gcc) + ("libc" ,aarch64-none-elf-newlib))) + (synopsis "C GCC tool chain for aarch64 microcontroller development") + (description "This package provides a C GCC tool chain for aarch64 +microcontroller development. This includes the GCC aarch64 cross compiler and +the newlib libc. This supports the C programming language.") + (home-page (package-home-page aarch64-none-elf-newlib)) + (license (package-license aarch64-none-elf-gcc))))