gnu: linux-firmware: Don’t skip deduplication.

* nongnu/packages/linux.scm (linux-firmware)[arguments]: Don’t skip file
deduplication.
[native-inputs]: Add rdfind.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
Timotej Lazar 2024-03-29 23:16:43 +01:00 committed by Jonathan Brielmaier
parent d6dbbc3a55
commit b04018d38a
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F

View file

@ -29,6 +29,7 @@
(define-module (nongnu packages linux) (define-module (nongnu packages linux)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages admin)
#:use-module (gnu packages base) #:use-module (gnu packages base)
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages cpio) #:use-module (gnu packages cpio)
@ -332,12 +333,9 @@ stable, responsive and smooth desktop experience.")))
(list #:tests? #f (list #:tests? #f
#:strip-binaries? #f #:strip-binaries? #f
#:validate-runpath? #f #:validate-runpath? #f
#:make-flags #~(list (string-append "DESTDIR=" #$output)) #:make-flags #~(list (string-append "DESTDIR=" #$output))))
#:phases (native-inputs
#~(modify-phases %standard-phases (list rdfind))
(replace 'install
(lambda* (#:key make-flags #:allow-other-keys)
(apply invoke "make" "install-nodedup" make-flags))))))
(home-page (home-page
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git") "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git")
(synopsis "Nonfree firmware blobs for Linux") (synopsis "Nonfree firmware blobs for Linux")
@ -364,7 +362,7 @@ if your hardware is supported by one of the smaller firmware packages.")
(arguments (arguments
(cons* #:license-file-regexp "LICENSE.amdgpu" (cons* #:license-file-regexp "LICENSE.amdgpu"
(substitute-keyword-arguments (package-arguments linux-firmware) (substitute-keyword-arguments (package-arguments linux-firmware)
((#:phases phases) ((#:phases phases #~%standard-phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-after 'unpack 'select-firmware (add-after 'unpack 'select-firmware
#$(select-firmware "^amdgpu/"))))))) #$(select-firmware "^amdgpu/")))))))
@ -387,7 +385,7 @@ advanced 3D.")
(arguments (arguments
(cons* #:license-file-regexp "LICENSE.radeon" (cons* #:license-file-regexp "LICENSE.radeon"
(substitute-keyword-arguments (package-arguments linux-firmware) (substitute-keyword-arguments (package-arguments linux-firmware)
((#:phases phases) ((#:phases phases #~%standard-phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-after 'unpack 'select-firmware (add-after 'unpack 'select-firmware
#$(select-firmware "^radeon/"))))))) #$(select-firmware "^radeon/")))))))
@ -444,7 +442,7 @@ and modules, userspace libraries, and bootloader/GPU firmware.")
(arguments (arguments
(cons* #:license-file-regexp "LICEN[CS]E.*[Aa]th" (cons* #:license-file-regexp "LICEN[CS]E.*[Aa]th"
(substitute-keyword-arguments (package-arguments linux-firmware) (substitute-keyword-arguments (package-arguments linux-firmware)
((#:phases phases) ((#:phases phases #~%standard-phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-after 'unpack 'select-firmware (add-after 'unpack 'select-firmware
#$(select-firmware "^(ar[3579]|ath[1369]|htc_[79]|qca/|wil6)"))))))) #$(select-firmware "^(ar[3579]|ath[1369]|htc_[79]|qca/|wil6)")))))))
@ -620,7 +618,7 @@ WLAN.TF.2.1-00021-QCARMSWP-1 (ath10k/QCA9377/hw1.0/firmware-6.bin)
(arguments (arguments
(cons* #:license-file-regexp "LICENCE.ibt_firmware" (cons* #:license-file-regexp "LICENCE.ibt_firmware"
(substitute-keyword-arguments (package-arguments linux-firmware) (substitute-keyword-arguments (package-arguments linux-firmware)
((#:phases phases) ((#:phases phases #~%standard-phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-after 'unpack 'select-firmware (add-after 'unpack 'select-firmware
#$(select-firmware "^intel/ibt-"))))))) #$(select-firmware "^intel/ibt-")))))))
@ -641,7 +639,7 @@ laptops).")
(arguments (arguments
(cons* #:license-file-regexp "LICENCE.iwlwifi_firmware" (cons* #:license-file-regexp "LICENCE.iwlwifi_firmware"
(substitute-keyword-arguments (package-arguments linux-firmware) (substitute-keyword-arguments (package-arguments linux-firmware)
((#:phases phases) ((#:phases phases #~%standard-phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-after 'unpack 'select-firmware (add-after 'unpack 'select-firmware
#$(select-firmware "^iwlwifi-"))))))) #$(select-firmware "^iwlwifi-")))))))
@ -662,7 +660,7 @@ support for 5GHz and 802.11ac, among others.")
(arguments (arguments
(cons* #:license-file-regexp "LICENCE.i915" (cons* #:license-file-regexp "LICENCE.i915"
(substitute-keyword-arguments (package-arguments linux-firmware) (substitute-keyword-arguments (package-arguments linux-firmware)
((#:phases phases) ((#:phases phases #~%standard-phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-after 'unpack 'select-firmware (add-after 'unpack 'select-firmware
#$(select-firmware "^i915/"))))))) #$(select-firmware "^i915/")))))))
@ -682,7 +680,7 @@ integrated graphics chipsets, including GuC, HuC and DMC.")
(arguments (arguments
(cons* #:license-file-regexp "LICENCE.rtlwifi_firmware.txt" (cons* #:license-file-regexp "LICENCE.rtlwifi_firmware.txt"
(substitute-keyword-arguments (package-arguments linux-firmware) (substitute-keyword-arguments (package-arguments linux-firmware)
((#:phases phases) ((#:phases phases #~%standard-phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-after 'unpack 'select-firmware (add-after 'unpack 'select-firmware
#$(select-firmware "^(rtlwifi|rtl_nic|rtl_bt|rtw88|rtw89)/"))))))) #$(select-firmware "^(rtlwifi|rtl_nic|rtl_bt|rtw88|rtw89)/")))))))
@ -1228,7 +1226,7 @@ your CPU.")
(arguments (arguments
(cons* #:license-file-regexp "LICENSE.amd-ucode" (cons* #:license-file-regexp "LICENSE.amd-ucode"
(substitute-keyword-arguments (package-arguments linux-firmware) (substitute-keyword-arguments (package-arguments linux-firmware)
((#:phases phases) ((#:phases phases #~%standard-phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-after 'unpack 'select-firmware (add-after 'unpack 'select-firmware
#$(select-firmware "^amd-ucode/"))))))) #$(select-firmware "^amd-ucode/")))))))