From e59fd9fa186855cc69b4d1229e80a8506f08857c Mon Sep 17 00:00:00 2001 From: Dariqq Date: Tue, 28 Oct 2025 13:58:05 +0000 Subject: [PATCH] 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 --- 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 fe0e01c95939f98638ca44bb75d0a04befd2f016..19a252b2391d1c98b2bf2171048c13c684169823 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")