aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-04-30 16:29:13 +0300
committerEfraim Flashner <efraim@flashner.co.il>2024-05-27 10:26:23 +0300
commit15d4cca1a8ddb7f87a84896fc544a8f60e91c4c1 (patch)
tree2fa6713e9d845677006c8953ca902d1da9938d43 /gnu/packages
parent2a45000102f5e9add6f6d47e4d460c40701cc9c9 (diff)
downloadguix-15d4cca1a8ddb7f87a84896fc544a8f60e91c4c1.tar.gz
guix-15d4cca1a8ddb7f87a84896fc544a8f60e91c4c1.zip
gnu: ovmf-aarch64: Update to 202402.
* gnu/packages/firmware.scm (ovmf-aarch64): Update to 202402. Build using make-ovmf-firmware. Change-Id: I270bd8fa79f2df3d73bdf8d5685d27a3cc0cef6a
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/firmware.scm51
1 files changed, 16 insertions, 35 deletions
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index bd7b8f9026..99ca2359a5 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -1038,6 +1038,22 @@ Virtual Machines. OVMF contains a sample UEFI firmware for QEMU and KVM.")
"OVMF_CODE"
"OVMF_VARS"))))))))))))
+(define-public ovmf-aarch64
+ (let ((base (make-ovmf-firmware "aarch64")))
+ (package
+ (inherit base)
+ (arguments
+ (substitute-keyword-arguments (package-arguments base)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'install
+ (lambda _
+ (let ((fmw (string-append #$output "/share/firmware")))
+ (mkdir-p fmw)
+ (copy-file (string-append "Build/ArmVirtQemu-AARCH64/"
+ "RELEASE_GCC/FV/QEMU_EFI.fd")
+ (string-append fmw "/ovmf_aarch64.bin"))))))))))))
+
(define-public ovmf
(let ((toolchain-ver "GCC5"))
(package
@@ -1138,41 +1154,6 @@ Virtual Machines. OVMF contains a sample UEFI firmware for QEMU and KVM.")
(license (list license:expat
license:bsd-2 license:bsd-3 license:bsd-4)))))
-(define-public ovmf-aarch64
- (let ((toolchain-ver "GCC5"))
- (package
- (inherit ovmf)
- (name "ovmf-aarch64")
- (native-inputs
- (append (package-native-inputs ovmf)
- (if (not (string-prefix? "aarch64" (%current-system)))
- `(("cross-gcc" ,(cross-gcc "aarch64-linux-gnu"))
- ("cross-binutils" ,(cross-binutils "aarch64-linux-gnu")))
- '())))
- (arguments
- (substitute-keyword-arguments (package-arguments ovmf)
- ((#:phases phases)
- #~(modify-phases #$phases
- #$@(if (string-prefix? "aarch64" (%current-system))
- '()
- #~((add-before 'configure 'set-env
- (lambda _
- (setenv (string-append #$toolchain-ver "_AARCH64_PREFIX")
- "aarch64-linux-gnu-")))))
- (replace 'build
- (lambda _
- (invoke "build" "-a" "AARCH64" "-t" #$toolchain-ver
- "-p" "ArmVirtPkg/ArmVirtQemu.dsc")))
- (delete 'build-x64)
- (replace 'install
- (lambda _
- (let ((fmw (string-append #$output "/share/firmware")))
- (mkdir-p fmw)
- (copy-file (string-append "Build/ArmVirtQemu-AARCH64/RELEASE_"
- #$toolchain-ver "/FV/QEMU_EFI.fd")
- (string-append fmw "/ovmf_aarch64.bin")))))))))
- (supported-systems %supported-systems))))
-
(define-public ovmf-arm
(let ((toolchain-ver "GCC5"))
(package