[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66263] [PATCH 08/23] gnu: avr-libc: Convert to procedure.
From: |
Jean-Pierre De Jesus DIAZ |
Subject: |
[bug#66263] [PATCH 08/23] gnu: avr-libc: Convert to procedure. |
Date: |
Fri, 29 Sep 2023 11:16:12 +0200 |
* gnu/packages/avr.scm (make-avr-libc): New procedure.
* gnu/packages/avr.scm (avr-libc): Use make-avr-libc procedure.
---
gnu/packages/avr.scm | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm
index ccce686010..df1523274b 100644
--- a/gnu/packages/avr.scm
+++ b/gnu/packages/avr.scm
@@ -34,7 +34,8 @@ (define-module (gnu packages avr)
#:use-module (gnu packages check)
#:use-module (gnu packages cross-base)
#:use-module (gnu packages flashing-tools)
- #:use-module (gnu packages gcc))
+ #:use-module (gnu packages gcc)
+ #:export (make-avr-libc))
(define-public avr-binutils
(package
@@ -93,7 +94,9 @@ (define avr-gcc
`(("gcc" ,gcc)
,@(package-native-inputs xgcc))))))
-(define avr-libc
+(define* (make-avr-libc #:key
+ (xbinutils (cross-binutils "avr"))
+ (xgcc (cross-gcc "avr")))
(package
(name "avr-libc")
(version "2.0.0")
@@ -106,10 +109,12 @@ (define avr-libc
"15svr2fx8j6prql2il2fc0ppwlv50rpmyckaxx38d3gxxv97zpdj"))))
(build-system gnu-build-system)
(arguments
- '(#:out-of-source? #t
- #:configure-flags '("--host=avr")))
- (native-inputs `(("avr-binutils" ,avr-binutils)
- ("avr-gcc" ,avr-gcc)))
+ (list #:target "avr"
+
+ #:out-of-source? #t
+
+ #:implicit-cross-inputs? #f))
+ (native-inputs (list xbinutils xgcc))
(home-page "https://www.nongnu.org/avr-libc/")
(synopsis "The AVR C Library")
(description
@@ -118,6 +123,8 @@ (define avr-libc
(license
(license:non-copyleft "http://www.nongnu.org/avr-libc/LICENSE.txt"))))
+(define avr-libc (make-avr-libc))
+
(define-public avr-toolchain
;; avr-libc checks the compiler version and passes "--enable-device-lib" for
avr-gcc > 5.1.0.
;; It wouldn't install the library for atmega32u4 etc if we didn't use the
corret avr-gcc.
--
2.34.1
- [bug#66263] [PATCH 04/23] guix: utils: Add target-avr?., (continued)
- [bug#66263] [PATCH 04/23] guix: utils: Add target-avr?., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 19/23] gnu: Add gcc-cross-avr-toolchain., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 02/23] guix: gnu: Handle platforms without libc., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 23/23] gnu: Add unity., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 21/23] guix: meson-build-system: Support AVR., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 20/23] gnu: Add avr-toolchain., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 06/23] gnu: microscheme: Move to avr-xyz., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 13/23] gnu: cross-libc: Add AVR Libc case., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 16/23] gnu: cross-gcc-search-paths: Handle AVR target., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 18/23] gnu: Add avr-libc., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 08/23] gnu: avr-libc: Convert to procedure.,
Jean-Pierre De Jesus DIAZ <=
- [bug#66263] [PATCH 09/23] gnu: Add make-cross-gcc-toolchain., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 10/23] gnu: Add binutils-cross-avr., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 12/23] gnu: Remove various AVR packages., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 07/23] gnu: Add AVR phases to cross-gcc-build-phases., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 15/23] guix: meson-configuration: Fix boolean assigment., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 17/23] gnu: cross-gcc: Handle inputs for AVR., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 03/23] gnu: Add avr platform., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 14/23] gnu: cross-gcc-arguments: Handle AVR target., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 22/23] guix: meson-build-system: Disable PIC for AVR., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 00/23] guix: Add avr as a platform., Jean-Pierre De Jesus Diaz, 2023/09/29