mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-26 18:35:19 +01:00
nongnu: Add amd-microcode.
* nongnu/packages/linux.scm (amd-microcode): New variable.
This commit is contained in:
parent
304da1fffb
commit
663c4c3e6c
1 changed files with 29 additions and 0 deletions
|
@ -693,3 +693,32 @@ behavior as documented in the respective processor specification updates. The
|
||||||
@code{iucode-tool} package can be used to determine the appropriate file for
|
@code{iucode-tool} package can be used to determine the appropriate file for
|
||||||
your CPU.")
|
your CPU.")
|
||||||
(license (nonfree "file://license"))))
|
(license (nonfree "file://license"))))
|
||||||
|
|
||||||
|
(define-public amd-microcode
|
||||||
|
(package
|
||||||
|
(inherit linux-firmware)
|
||||||
|
(name "amd-microcode")
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f
|
||||||
|
#:license-file-regexp "LICENSE.amd-ucode"
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(replace 'install
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(fw-dir (string-append out "/lib/firmware"))
|
||||||
|
(bin-dir (string-append fw-dir "/amd-ucode")))
|
||||||
|
(for-each (lambda (file)
|
||||||
|
(install-file file bin-dir))
|
||||||
|
(find-files "amd-ucode" "^microcode_amd.*\\.bin$"))
|
||||||
|
#t)))
|
||||||
|
(delete 'validate-runpath))))
|
||||||
|
(synopsis "Processor microcode firmware for AMD CPUs")
|
||||||
|
(description "Updated system processor microcode for AMD x86-64
|
||||||
|
processors. AMD releases microcode updates to correct processor behavior as
|
||||||
|
documented in the respective processor revision guides.")
|
||||||
|
(license
|
||||||
|
(nonfree
|
||||||
|
(string-append "https://git.kernel.org/pub/scm/linux/kernel/git/"
|
||||||
|
"firmware/linux-firmware.git/plain/LICENSE.amd-ucode")))))
|
||||||
|
|
Loading…
Reference in a new issue