guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#63576] [PATCH v1 4/4] gnu: Add aarch64-none-elf-gcc-toolchain.


From: Denis 'GNUtoo' Carikli
Subject: [bug#63576] [PATCH v1 4/4] gnu: Add aarch64-none-elf-gcc-toolchain.
Date: Thu, 18 May 2023 20:28:14 +0200

* 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))))
-- 
2.40.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]