diff mbox series

[bug#66263,17/23] gnu: cross-gcc: Handle inputs for AVR.

Message ID 20230929091627.7820-17-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-base.scm (cross-gcc) <inputs>: Handle inputs for
  AVR.
---
 gnu/packages/cross-base.scm | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Maxim Cournoyer Oct. 5, 2023, 3:08 p.m. UTC | #1
Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com> writes:

> * gnu/packages/cross-base.scm (cross-gcc) <inputs>: Handle inputs for
>   AVR.

LGTM.
diff mbox series

Patch

diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index ee90424076..ef793557fc 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -366,6 +366,11 @@  (define* (cross-gcc target
                                   ,@(assoc-ref (%final-inputs)
                                                "libc:static"))))))
            (cond
+            ((target-avr? target)
+             (if libc
+                 `(,@inputs
+                   ("libc" ,libc))
+                 inputs))
             ((target-mingw? target)
              (if libc
                  `(,@inputs