aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorspacecadet@purge.sh <spacecadet@purge.sh>2023-11-12 03:02:17 +0000
committerEfraim Flashner <efraim@flashner.co.il>2023-12-19 16:27:11 +0200
commit1c9908fad5a9a9a3127c98148697bc5888af1cfc (patch)
treeced05f5d20bb0be6f65580828f9918495eb02958 /gnu/packages
parent57aaaf290373075ae7a27c1eb8b5c66c03adb99f (diff)
downloadguix-1c9908fad5a9a9a3127c98148697bc5888af1cfc.tar.gz
guix-1c9908fad5a9a9a3127c98148697bc5888af1cfc.zip
gnu: ovmf: Add OVMF_CODE and OVMF_VARS files.
* gnu/packages/firmware.scm (ovmf)[arguments]: Add OVMF_CODE.fd and OVMF_VARS.fs to outputs as ovmf_code_arch.bin and ovmf_vars_arch.bin, respectively, for both ia32 and x64 architectures. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Change-Id: Ie329f3f3515e7d015d9fbad01b8c2b82dc7da76e
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/firmware.scm21
1 files changed, 13 insertions, 8 deletions
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index 9b2edcf9de..4ee5dc5523 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -954,14 +954,19 @@ Executables included are:
(lambda _
(let ((fmw (string-append #$output "/share/firmware")))
(mkdir-p fmw)
- (copy-file (string-append "Build/OvmfIa32/RELEASE_"
- #$toolchain-ver "/FV/OVMF.fd")
- (string-append fmw "/ovmf_ia32.bin"))
- #$@(if (string=? "x86_64-linux" (%current-system))
- #~((copy-file (string-append "Build/OvmfX64/RELEASE_"
- #$toolchain-ver "/FV/OVMF.fd")
- (string-append fmw "/ovmf_x64.bin")))
- #~())))))))
+ (for-each
+ (lambda (file)
+ (copy-file (string-append "Build/OvmfIa32/RELEASE_"
+ #$toolchain-ver "/FV/" file ".fd")
+ (string-append fmw "/" (string-downcase file) "_ia32.bin"))
+ #$@(if (string=? "x86_64-linux" (%current-system))
+ #~((copy-file (string-append "Build/OvmfX64/RELEASE_"
+ #$toolchain-ver "/FV/" file ".fd")
+ (string-append fmw "/" (string-downcase file) "_x64.bin")))
+ #~()))
+ (list "OVMF"
+ "OVMF_CODE"
+ "OVMF_VARS"))))))))
(native-inputs
`(("acpica" ,acpica)
("gcc@5" ,gcc-5)