guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: grub-efi32: Fix building on aarch64-linux.


From: guix-commits
Subject: branch master updated: gnu: grub-efi32: Fix building on aarch64-linux.
Date: Thu, 04 Aug 2022 20:03:14 -0400

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 116c0268ff gnu: grub-efi32: Fix building on aarch64-linux.
116c0268ff is described below

commit 116c0268ffd387c88b6b47135203fb330eb422f0
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Fri Aug 5 00:20:21 2022 +0300

    gnu: grub-efi32: Fix building on aarch64-linux.
    
    * gnu/packages/bootloaders.scm (grub-efi32)[arguments]: When building
    for aarch64-linux add TARGET_CC to configure-flags.
    [native-inputs]: When building for aarch64-linux add cross-gcc and
    cross-binutils for arm-linux-gnueabihf.
---
 gnu/packages/bootloaders.scm | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 71a10f54d5..d19cf55bc4 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -340,10 +340,23 @@ menu to select one of the installed operating systems.")
     (synopsis "GRand Unified Boot loader (UEFI 32bit version)")
     (arguments
      `(,@(substitute-keyword-arguments (package-arguments grub-efi)
-           ((#:configure-flags flags
-             ''()) `(cons* ,(cond ((target-x86?) "--target=i386")
-                                  ((target-arm?) "--target=arm"))
-                           ,flags)))))))
+           ((#:configure-flags flags ''())
+            `(cons*
+               ,@(cond ((target-x86?) '("--target=i386"))
+                       ((target-aarch64?)
+                        (list "--target=arm"
+                              (string-append "TARGET_CC="
+                                             (cc-for-target 
"arm-linux-gnueabihf"))))
+                       ((target-arm?) '("--target=arm"))
+                       (else '()))
+               ,flags)))))
+    (native-inputs
+     (if (target-aarch64?)
+       (modify-inputs (package-native-inputs grub-efi)
+         (prepend
+           (cross-gcc "arm-linux-gnueabihf")
+           (cross-binutils "arm-linux-gnueabihf")))
+       (package-native-inputs grub-efi)))))
 
 ;; Because grub searches hardcoded paths it's easiest to just build grub
 ;; again to make it find both grub-pc and grub-efi.  There is a command



reply via email to

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