nongnu: raspberrypi-firmware: Clean up sources and update.

* nongnu/packages/linux.scm (raspberrypi-firmware): Update to
1.20211118.
[source]: Add snippet to keep only firmware for boot up and dtb files.
[arguments]: Specify install-plan.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
Petr Hodina 2022-02-26 23:27:46 +01:00 committed by Jonathan Brielmaier
parent 3ae6f63be1
commit a073e42c85
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F

View file

@ -174,16 +174,30 @@ advanced 3D.")))
(define-public raspberrypi-firmware
(package
(name "raspberrypi-firmware")
(version "1.20210527")
(version "1.20211118")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/raspberrypi/firmware")
(commit version)))
(modules '((guix build utils)
(ice-9 ftw)
(srfi srfi-26)))
(snippet
'(begin
(for-each (lambda (name)
(delete-file-recursively name))
`("documentation" "extra" ".github" "hardfp" "modules" "opt" "README.md"
,@(map (lambda (name)
(string-append "boot/" name))
(scandir "boot" (cut (file-name-predicate "^(kernel.*|COPYING\\.linux)$") <> #f)))))))
(file-name (git-file-name name version))
(sha256
(base32
"08lgg90k6lhqm3ccg7db0lrrng0pgf63dvbrxpfpwm1pswrc5vf5"))))
"0ahkb50c61vlwlai4mvkf0kzz0afbh23xkx1y6vx6d56iw80ps4b"))))
(arguments
'(#:install-plan
'(("boot/" "."))))
(build-system copy-build-system)
(synopsis "Firmware for the Raspberry Pi boards")
(description "Pre-compiled binaries of the current Raspberry Pi kernel