summaryrefslogtreecommitdiff
path: root/gnu/packages/efi.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-02-12 18:08:06 +0200
committerEfraim Flashner <efraim@flashner.co.il>2019-02-12 18:08:19 +0200
commitb856a78c949543da2cb829b36cb96e74309e8d35 (patch)
treea215bd2f679bf1a2f517e952e7746e48e854e573 /gnu/packages/efi.scm
parent385d7546e1e8fa3488cc2da07ad5d00a33e8d6c8 (diff)
downloadpatches-b856a78c949543da2cb829b36cb96e74309e8d35.tar
patches-b856a78c949543da2cb829b36cb96e74309e8d35.tar.gz
gnu: efilinux: Set ARCH variable on some architectures.
Even with this patch efilinux does not build for arm*. * gnu/packages/efi.scm (efilinux)[arguments]: On armhf-linux and aarch64-linux set the ARCH variable apropriately.
Diffstat (limited to 'gnu/packages/efi.scm')
-rw-r--r--gnu/packages/efi.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/efi.scm b/gnu/packages/efi.scm
index 43e660743a..49ca740088 100644
--- a/gnu/packages/efi.scm
+++ b/gnu/packages/efi.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Danny Milosavljevic <dannym@scratchpost.org>
+;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -29,7 +30,8 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix packages)
- #:use-module (guix utils))
+ #:use-module (guix utils)
+ #:use-module (ice-9 match))
(define-public gnu-efi
(package
@@ -195,6 +197,12 @@ and EFI variable management.")
(arguments
`(#:make-flags
(list "CC=gcc"
+ ,@(match (%current-system)
+ ("aarch64-linux"
+ '("ARCH=aarch64"))
+ ("armhf-linux"
+ '("ARCH=arm"))
+ (_ '()))
(string-append "INCDIR=" (assoc-ref %build-inputs "gnu-efi")
"/include")
(string-append "LIBDIR=" (assoc-ref %build-inputs "gnu-efi")