guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/60: gnu: Add commencement-build-target.


From: guix-commits
Subject: 06/60: gnu: Add commencement-build-target.
Date: Sun, 24 Nov 2024 02:50:10 -0500 (EST)

efraim pushed a commit to branch wip-riscv-bootstrap
in repository guix.

commit 7e8b16f869b73331df79c5bd90240a0227f8a93b
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Sep 25 09:11:53 2024 +0300

    gnu: Add commencement-build-target.
    
    * gnu/packages/commencement.scm (commencement-build-target): New
    procedure.
    
    Change-Id: Ie479ccd0afd659e843b45cb5cf22717f34ddff5c
---
 gnu/packages/commencement.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index bd59fbf95c..a01d3d20e0 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -145,6 +145,14 @@ the checkout from TARBALL, a tarball containing said 
checkout.
              #:graft? #f
              #:local-build? #t))))))
 
+(define* (commencement-build-target #:optional (system (%current-system)))
+  "Return an architecture triplet for use in various build scripts.  This is
+the supported 32-bit version of the architecture currently being built on."
+  (cond
+    ((target-x86-64?) "i686-unknown-linux-gnu")
+    ((target-arm?) "arm-unknown-linux-gnu")
+    (#t (nix-system->gnu-triplet system))))
+
 (define bootar
   (package
     (name "bootar")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]