diff mbox series

[bug#66263,19/23] gnu: Add gcc-cross-avr-toolchain.

Message ID 20230929091627.7820-19-jean@foundationdevices.com
State New
Headers show
Series guix: Add avr as a platform. | expand

Commit Message

Jean-Pierre De Jesus DIAZ Sept. 29, 2023, 9:16 a.m. UTC
* gnu/packages/cross-toolchain.scm (gcc-cross-avr-toolchain): New
  variable.
---
 gnu/packages/cross-toolchain.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Maxim Cournoyer Oct. 5, 2023, 3:11 p.m. UTC | #1
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 mbox series

Patch

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