diff options
author | Petr Hodina <phodina@protonmail.com> | 2022-02-26 23:27:46 +0100 |
---|---|---|
committer | Jonathan Brielmaier <jonathan.brielmaier@web.de> | 2022-02-26 23:30:39 +0100 |
commit | a073e42c853d2a234b32eacdc0aab980dff1db2d (patch) | |
tree | 39882937e5ab5af6261dc16b6e0230803f896b92 | |
parent | 3ae6f63be19782c835f52f29eb44731951a72069 (diff) |
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>
-rw-r--r-- | nongnu/packages/linux.scm | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/nongnu/packages/linux.scm b/nongnu/packages/linux.scm index 31e0d21..671a70b 100644 --- a/nongnu/packages/linux.scm +++ b/nongnu/packages/linux.scm @@ -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 |