Message ID | 20230929091627.7820-19-jean@foundationdevices.com |
---|---|
State | New |
Headers | show |
Series | guix: Add avr as a platform. | expand |
Hi, Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com> writes: > * gnu/packages/cross-toolchain.scm (gcc-cross-avr-toolchain): New > variable. > --- > gnu/packages/cross-toolchain.scm | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/gnu/packages/cross-toolchain.scm b/gnu/packages/cross-toolchain.scm > index 929e665e50..2ee039c7f6 100644 > --- a/gnu/packages/cross-toolchain.scm > +++ b/gnu/packages/cross-toolchain.scm > @@ -70,3 +70,11 @@ (define-deprecated/public avr-binutils binutils-cross-avr > > (define-public avr-libc > (cross-libc "avr")) > + > +;;; Cross toolchains: > + > +(define-public gcc-cross-avr-toolchain > + (make-cross-gcc-toolchain "avr" > + #:libc avr-libc > + #:xgcc (cross-gcc "avr" #:libc avr-libc) > + #:xbinutils binutils-cross-avr)) Is this still necessary given the make-avr-toolchain procedure we have? Perhaps it can use that? To be rebased on master.
diff --git a/gnu/packages/cross-toolchain.scm b/gnu/packages/cross-toolchain.scm index 929e665e50..2ee039c7f6 100644 --- a/gnu/packages/cross-toolchain.scm +++ b/gnu/packages/cross-toolchain.scm @@ -70,3 +70,11 @@ (define-deprecated/public avr-binutils binutils-cross-avr (define-public avr-libc (cross-libc "avr")) + +;;; Cross toolchains: + +(define-public gcc-cross-avr-toolchain + (make-cross-gcc-toolchain "avr" + #:libc avr-libc + #:xgcc (cross-gcc "avr" #:libc avr-libc) + #:xbinutils binutils-cross-avr))