Archived
1
0
Fork 0

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.
This commit is contained in:
Marius Bakke 2023-01-12 04:10:20 +01:00
parent 8d813a7eba
commit 2a93b66882
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -894,11 +894,11 @@ Virtual Machines. OVMF contains a sample UEFI firmware for QEMU and KVM.")
(substitute-keyword-arguments (package-arguments ovmf) (substitute-keyword-arguments (package-arguments ovmf)
((#:phases phases) ((#:phases phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-before 'configure 'set-env #$@(if (string-prefix? "aarch64" (%current-system))
(lambda _ '()
#$@(if (not (string-prefix? "aarch64" (%current-system))) '((add-before 'configure 'set-env
#~((setenv "GCC49_AARCH64_PREFIX" "aarch64-linux-gnu-")) (lambda _
#~()))) (setenv "GCC49_AARCH64_PREFIX" "aarch64-linux-gnu-")))))
(replace 'build (replace 'build
(lambda _ (lambda _
(invoke "build" "-a" "AARCH64" "-t" "GCC49" (invoke "build" "-a" "AARCH64" "-t" "GCC49"