summary refs log tree commit diff
path: root/gnu/packages/firmware.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2023-01-12 04:10:20 +0100
committerMarius Bakke <marius@gnu.org>2023-01-13 03:19:39 +0100
commit2a93b66882c5d52b3872a26b19a609dd2b4e99fb (patch)
tree27726d462ba319a8497d1f2821b1f4a5646e8ed6 /gnu/packages/firmware.scm
parent8d813a7eba5c47f29e5f5571483db96b7acde286 (diff)
downloadguix-2a93b66882c5d52b3872a26b19a609dd2b4e99fb.tar.gz
gnu: ovmf-aarch64: Fix syntax error on aarch64-linux.
* gnu/packages/firmware.scm (ovmf-aarch64)[arguments]: Don't add an empty
set-env phase when building for aarch64.
Diffstat (limited to 'gnu/packages/firmware.scm')
-rw-r--r--gnu/packages/firmware.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index f08d59752a..529200118d 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -894,11 +894,11 @@ Virtual Machines.  OVMF contains a sample UEFI firmware for QEMU and KVM.")
      (substitute-keyword-arguments (package-arguments ovmf)
        ((#:phases phases)
         #~(modify-phases #$phases
-            (add-before 'configure 'set-env
-              (lambda _
-                #$@(if (not (string-prefix? "aarch64" (%current-system)))
-                       #~((setenv "GCC49_AARCH64_PREFIX" "aarch64-linux-gnu-"))
-                       #~())))
+            #$@(if (string-prefix? "aarch64" (%current-system))
+                   '()
+                   '((add-before 'configure 'set-env
+                       (lambda _
+                         (setenv "GCC49_AARCH64_PREFIX" "aarch64-linux-gnu-")))))
             (replace 'build
               (lambda _
                 (invoke "build" "-a" "AARCH64" "-t" "GCC49"