From a073e42c853d2a234b32eacdc0aab980dff1db2d Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sat, 26 Feb 2022 23:27:46 +0100 Subject: [PATCH] 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 --- nongnu/packages/linux.scm | 18 ++++++++++++++++-- 1 file 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