From: Theodoros Foradis <theodoros.for@openmailbox.org>
To: rekado@elephly.net
Cc: guix-devel@gnu.org
Subject: [PATCH v2 4/4] gnu: Add arm-none-eabi-toolchain.
Date: Mon, 19 Sep 2016 23:23:40 +0300 [thread overview]
Message-ID: <20160919202340.4122-5-theodoros.for@openmailbox.org> (raw)
In-Reply-To: <20160919202340.4122-1-theodoros.for@openmailbox.org>
* gnu/packages/embedded.scm (arm-none-eabi-toolchain): New procedure.
(arm-none-eabi-toolchain-4.9, arm-none-eabi-toolchain-nano-4.9): New variables.
(arm-none-eabi-toolchain-6, arm-none-eabi-toolchain-nano-6): New variables.
---
gnu/packages/embedded.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 29033b9..0adbcfa 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -188,3 +188,39 @@ usable on embedded products.")
"--enable-newlib-nano-formatted-io"
"--disable-nls"))))))
+(define (arm-none-eabi-toolchain xgcc newlib-arm-none-eabi)
+ (let ((newlib (newlib-arm-none-eabi xgcc)))
+ (package
+ (name "arm-none-eabi-toolchain")
+ (version
+ (cond ((string=? (package-name newlib) "newlib")
+ (package-version xgcc))
+ ((string=? (package-name newlib) "newlib-nano")
+ (string-append "nano-" (package-version xgcc)))))
+ (source #f)
+ (build-system trivial-build-system)
+ (arguments '(#:builder (mkdir %output)))
+ (propagated-inputs
+ `(("binutils" ,xbinutils-arm-none-eabi)
+ ("gcc" ,xgcc)
+ ("newlib" ,newlib)))
+ (synopsis "Complete GCC tool chain for ARM bare metal development")
+ (description "This package provides a complete GCC tool chain for ARM
+bare metal development. This includes the GCC arm-none-eabi cross compiler and
+newlib (or newlib-nano) as the C library. The supported programming languages
+are C and C++.")
+ (home-page (package-home-page xgcc))
+ (license (package-license xgcc)))))
+
+(define-public arm-none-eabi-toolchain-4.9
+ (arm-none-eabi-toolchain gcc-arm-none-eabi-4.9 newlib-arm-none-eabi))
+
+(define-public arm-none-eabi-toolchain-6
+ (arm-none-eabi-toolchain gcc-arm-none-eabi-6 newlib-arm-none-eabi))
+
+(define-public arm-none-eabi-toolchain-nano-4.9
+ (arm-none-eabi-toolchain gcc-arm-none-eabi-4.9 newlib-nano-arm-none-eabi))
+
+(define-public arm-none-eabi-toolchain-nano-6
+ (arm-none-eabi-toolchain gcc-arm-none-eabi-6 newlib-nano-arm-none-eabi))
+
--
2.9.3
next prev parent reply other threads:[~2016-09-19 20:25 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-18 6:35 [PATCH 0/3] Add GCC cross compiler for arm-none-eabi Ricardo Wurmus
2016-09-18 6:35 ` [PATCH 1/3] gnu: Add arm-none-eabi cross compiler Ricardo Wurmus
2016-09-21 8:34 ` Ludovic Courtès
2016-09-18 6:35 ` [PATCH 2/3] gnu: Add newlib-arm-none-eabi Ricardo Wurmus
2016-09-21 8:38 ` Ludovic Courtès
2016-09-18 6:35 ` [PATCH 3/3] gnu: Add newlib-nano-arm-none-eabi Ricardo Wurmus
2016-09-21 8:40 ` Ludovic Courtès
2016-10-02 18:47 ` Ricardo Wurmus
2016-09-19 20:23 ` [PATCH v2 0/4] Add GCC cross compiler for arm-none-eabi Theodoros Foradis
2016-09-19 20:23 ` [PATCH v2 1/4] gnu: Add arm-none-eabi cross compiler Theodoros Foradis
2016-09-19 20:23 ` [PATCH v2 2/4] gnu: Add arm-none-eabi-gcc-6 and patches Theodoros Foradis
2016-10-10 20:22 ` Ricardo Wurmus
2016-09-19 20:23 ` [PATCH v2 3/4] gnu: Add newlib-arm-none-eabi Theodoros Foradis
2016-09-19 20:23 ` Theodoros Foradis [this message]
2016-09-27 9:03 ` [PATCH v2 0/4] Add GCC cross compiler for arm-none-eabi Ludovic Courtès
2016-09-29 9:24 ` Ricardo Wurmus
2016-09-29 17:39 ` Theodoros Foradis
2016-10-10 18:09 ` Theodoros Foradis
2016-10-10 18:23 ` Ricardo Wurmus
2016-10-11 15:50 ` theodoros.for
2016-10-16 10:01 ` Ricardo Wurmus
2016-10-23 17:01 ` Theodoros Foradis
2016-11-26 8:55 ` Ricardo Wurmus
2016-09-20 10:50 ` [PATCH v2 0/1] " Theodoros Foradis
2016-09-20 10:50 ` [PATCH v2 1/4] gnu: Add arm-none-eabi cross compiler Theodoros Foradis
2016-09-20 10:50 ` [PATCH v2 2/4] gnu: Add arm-none-eabi-gcc-6 and patches Theodoros Foradis
2016-09-20 10:50 ` [PATCH v2 3/4] gnu: Add newlib-arm-none-eabi Theodoros Foradis
2016-09-20 10:50 ` [PATCH v2 4/4] gnu: Add arm-none-eabi-toolchain Theodoros Foradis
2016-09-21 8:30 ` [PATCH 0/3] Add GCC cross compiler for arm-none-eabi Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160919202340.4122-5-theodoros.for@openmailbox.org \
--to=theodoros.for@openmailbox.org \
--cc=guix-devel@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).