diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2022-03-07 22:43:09 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2022-03-07 22:53:57 +0200 |
commit | 7b2f7498628b0ca8481820581dcd3f6e44e2cb17 (patch) | |
tree | 505ce58ac5cfd61ebc9e5cba9b2b958f063e7f5e /guix/build-system | |
parent | 758d3c99a7dd768d4f8a93611eb57f9ca1eac63f (diff) |
build-system/meson: Add more cross-compilation targets.
* guix/build-system/meson.scm (make-machine-alist): Add riscv64-linux
option for cpu_family. Add riscv64-linux and powerpc-linux options for
endian.
Diffstat (limited to 'guix/build-system')
-rw-r--r-- | guix/build-system/meson.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/guix/build-system/meson.scm b/guix/build-system/meson.scm index ad604f8871..9fee6c4570 100644 --- a/guix/build-system/meson.scm +++ b/guix/build-system/meson.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2018, 2019 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> +;;; Copyright © 2022 Efraim Flashner <efraim@flashner.co.il> ;;; ;;; This file is part of GNU Guix. ;;; @@ -58,6 +59,7 @@ for TRIPLET." (if (target-64bit? triplet) "ppc64" "ppc")) + ((target-riscv64? triplet) "riscv64") (#t (error "meson: unknown architecture")))) (cpu . ,(cond ((target-x86-32? triplet) ; i386, ..., i686 (substring triplet 0 4)) @@ -78,6 +80,8 @@ for TRIPLET." ;; At least in Guix. Aarch64 and 32-bit arm ;; have a big-endian mode as well. ((target-arm? triplet) "little") + ((target-ppc32? triplet) "big") + ((target-riscv64? triplet) "little") (#t (error "meson: unknown architecture")))))) (define (make-binaries-alist triplet) |