From 5c792737b6414a5cf104d8ee2bddc2e2c33e928e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 24 Dec 2019 23:35:18 +0100 Subject: gnu: Add newlib-arm-none-eabi-7-2018-q2-update. * gnu/packages/embedded.scm (newlib-arm-none-eabi-7-2018-q2-update): New variable. --- gnu/packages/embedded.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index d2918c9263..257ae4968f 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -285,6 +285,38 @@ usable on embedded products.") (variable "CROSS_LIBRARY_PATH") (files '("arm-none-eabi/lib")))))))) +(define-public newlib-arm-none-eabi-7-2018-q2-update + ;; This is the same commit as used for the 7-2018-q2-update release + ;; according to the release.txt. + (let ((commit "3ccfb407af410ba7e54ea0da11ae1e40b554a6f4") + (revision "0")) + (package + (inherit newlib-arm-none-eabi) + (version (git-version "3.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "http://sourceware.org/git/newlib-cygwin.git") + (commit commit))) + (file-name (git-file-name "newlib" commit)) + (sha256 + (base32 + "1dq23fqrk75g1a4v7569fvnnw5q440zawbxi3w0g05n8jlqsmvcy")))) + (arguments + (substitute-keyword-arguments (package-arguments newlib-arm-none-eabi) + ;; The configure flags are identical to the flags used by the "GCC ARM + ;; embedded" project. + ((#:configure-flags flags) + `(cons* "--enable-newlib-io-c99-formats" + "--enable-newlib-retargetable-locking" + "--with-headers=yes" + ,flags)))) + (native-inputs + `(("xbinutils" ,(cross-binutils "arm-none-eabi")) + ("xgcc" ,gcc-arm-none-eabi-7-2018-q2-update) + ("texinfo" ,texinfo)))))) + (define (make-libstdc++-arm-none-eabi xgcc newlib) (let ((libstdc++ (make-libstdc++ xgcc))) (package (inherit libstdc++) -- cgit v1.2.3