diff mbox series

[bug#66263,21/23] guix: meson-build-system: Support AVR.

Message ID 20230929091627.7820-21-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
* guix/build-system/meson.scm (make-machine-alist)
  <system> [target-avr?]: Set to none.
  <cpu_family> [target-avr?]: Set to avr.
  <cpu> [target-avr?]: Set to avr.
---
 guix/build-system/meson.scm | 3 +++
 1 file changed, 3 insertions(+)

Comments

Maxim Cournoyer Oct. 5, 2023, 3:13 p.m. UTC | #1
Hello,

Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com> writes:

> * guix/build-system/meson.scm (make-machine-alist)
>   <system> [target-avr?]: Set to none.
>   <cpu_family> [target-avr?]: Set to avr.
>   <cpu> [target-avr?]: Set to avr.

LGTM.
diff mbox series

Patch

diff --git a/guix/build-system/meson.scm b/guix/build-system/meson.scm
index 7c617bffb0..b894789fb8 100644
--- a/guix/build-system/meson.scm
+++ b/guix/build-system/meson.scm
@@ -49,11 +49,13 @@  (define (make-machine-alist triplet)
   `((system . ,(cond ((target-hurd? triplet) "gnu")
                      ((target-linux? triplet) "linux")
                      ((target-mingw? triplet) "windows")
+                     ((target-avr? triplet) "none")
                      (#t (error "meson: unknown operating system"))))
     (cpu_family . ,(cond ((target-x86-32? triplet) "x86")
                          ((target-x86-64? triplet) "x86_64")
                          ((target-arm32? triplet) "arm")
                          ((target-aarch64? triplet) "aarch64")
+                         ((target-avr? triplet) "avr")
                          ((target-mips64el? triplet) "mips64")
                          ((target-powerpc? triplet)
                           (if (target-64bit? triplet)
@@ -66,6 +68,7 @@  (define (make-machine-alist triplet)
                   ((target-x86-64? triplet) "x86_64")
                   ((target-aarch64? triplet) "armv8-a")
                   ((target-arm32? triplet) "armv7")
+                  ((target-avr? triplet) "avr")
                   ;; According to #mesonbuild on OFTC, there does not appear
                   ;; to be an official-ish list of CPU types recognised by
                   ;; Meson, the "cpu" field is not used by Meson itself and