mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: Add ovmf-i686.
* gnu/packages/firmware.scm (ovmf-i686): New variable. Change-Id: Ie5702435695e24ed1d2731152a89b0aeb9a050dd
This commit is contained in:
parent
d0de3c7602
commit
2a45000102
1 changed files with 22 additions and 0 deletions
|
@ -1016,6 +1016,28 @@ (define-public ovmf-x86-64
|
|||
"OVMF_CODE"
|
||||
"OVMF_VARS"))))))))))))
|
||||
|
||||
(define-public ovmf-i686
|
||||
(let ((base (make-ovmf-firmware "i686")))
|
||||
(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)
|
||||
(for-each
|
||||
(lambda (file)
|
||||
(copy-file
|
||||
(string-append "Build/OvmfIa32/RELEASE_GCC"
|
||||
"/FV/" file ".fd")
|
||||
(string-append fmw "/" (string-downcase file) "_ia32.bin")))
|
||||
(list "OVMF"
|
||||
"OVMF_CODE"
|
||||
"OVMF_VARS"))))))))))))
|
||||
|
||||
(define-public ovmf
|
||||
(let ((toolchain-ver "GCC5"))
|
||||
(package
|
||||
|
|
Loading…
Reference in a new issue