gnu: ovmf-arm: Fix syntax error on armhf-linux.

* gnu/packages/firmware.scm (ovmf-arm)[arguments]: Don't add an empty set-env
phase when building for armhf-linux.
This commit is contained in:
Marius Bakke 2023-01-12 04:13:55 +01:00
parent 2a93b66882
commit ffb9813aee
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -926,11 +926,11 @@ (define-public ovmf-arm
(substitute-keyword-arguments (package-arguments ovmf)
((#:phases phases)
#~(modify-phases #$phases
(add-before 'configure 'set-env
(lambda _
#$@(if (not (string-prefix? "armhf" (%current-system)))
#~((setenv "GCC49_ARM_PREFIX" "arm-linux-gnueabihf-"))
#~())))
#$@(if (string-prefix? "armhf" (%current-system))
'()
'((add-before 'configure 'set-env
(lambda _
(setenv "GCC49_ARM_PREFIX" "arm-linux-gnueabihf-")))))
(replace 'build
(lambda _
(invoke "build" "-a" "ARM" "-t" "GCC49"