From 49d943303e71840c679aa9d1e34946fe854645ee Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 6 Feb 2019 14:44:22 +0100 Subject: [PATCH] guix-packages/ambrevar/linux-custom: Add linux-firmware-amdgpu --- .guix-packages/ambrevar/linux-custom.scm | 27 ++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.guix-packages/ambrevar/linux-custom.scm b/.guix-packages/ambrevar/linux-custom.scm index bf3f651a..41df2b00 100644 --- a/.guix-packages/ambrevar/linux-custom.scm +++ b/.guix-packages/ambrevar/linux-custom.scm @@ -22,8 +22,8 @@ "linux-" version ".tar.xz")) (sha256 (base32 - ;; 4.20.3 - "0ibz33xgmvyvaql2jbl9kagv13nar9pjar7pawxyga04hh9bvhdr")))) + ;; 4.20.5 + "057200c6wki2k29sp93gnmsq3pxjq5hs9pd2ncr66yll9abrd3gz")))) ;; (native-inputs ;; `(("kconfig" ,(local-file "./linux-laptop.conf")) ;; ,@(alist-delete "kconfig" (package-native-inputs linux-libre)))) @@ -97,3 +97,26 @@ (description "Non-free iwlwifi firmware") (license (license:non-copyleft "https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/LICENCE.iwlwifi_firmware?id=HEAD")))) + +(define-public linux-firmware-amdgpu + (package + (name "linux-firmware-amdgpu") + (version (linux-firmware-version)) + (source (linux-firmware-source version)) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder (begin + (use-modules (guix build utils)) + (let* ((source (assoc-ref %build-inputs "source")) + (fw-dir (string-append %output "/lib/firmware/")) + (bin-dir (string-append fw-dir "/amdgpu"))) + (mkdir-p bin-dir) + (copy-recursively (string-append source "/amdgpu") bin-dir) + (install-file (string-append source "/LICENSE.amdgpu") fw-dir) + #t)))) + (home-page "http://support.amd.com/en-us/download/linux") + (synopsis "Non-free firmware for AMD graphics chips") + (description "Non-free firmware for AMD graphics chips.") + (license (license:non-copyleft + "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/LICENSE.amdgpu"))))