@@ -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))))