guix_mirror_bot pushed a commit to branch master
in repository guix.
commit e59fd9fa186855cc69b4d1229e80a8506f08857c
Author: Dariqq <[email protected]>
AuthorDate: Tue Oct 28 13:58:05 2025 +0000
build-system: meson: Add kernel field to machine-alist.
* guix/build-system/meson.scm (make-machine-alist): Add kernel value.
Change-Id: I29b67d2ed28b693db524c798786c39e705619897
Signed-off-by: Liliana Marie Prikler <[email protected]>
---
guix/build-system/meson.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/guix/build-system/meson.scm b/guix/build-system/meson.scm
index fe0e01c959..19a252b239 100644
--- a/guix/build-system/meson.scm
+++ b/guix/build-system/meson.scm
@@ -58,6 +58,16 @@ for TRIPLET."
(&unsupported-cross-compilation-target-error
(build-system meson-build-system)
(target triplet)))))))
+ (kernel . ,(cond ((target-hurd? triplet) "gnu")
+ ((target-linux? triplet) "linux")
+ ((target-mingw? triplet) "nt")
+ ((target-avr? triplet) "none")
+ (else
+ (raise
+ (condition
+ (&unsupported-cross-compilation-target-error
+ (build-system meson-build-system)
+ (target triplet)))))))
(cpu_family . ,(cond ((target-x86-32? triplet) "x86")
((target-x86-64? triplet) "x86_64")
((target-arm32? triplet) "arm")