[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: gnu: raspberry-pi: New make-raspi-bcm28-dtbs procedure.
From: |
guix-commits |
Subject: |
06/07: gnu: raspberry-pi: New make-raspi-bcm28-dtbs procedure. |
Date: |
Thu, 1 Dec 2022 14:33:04 -0500 (EST) |
apteryx pushed a commit to branch master
in repository guix.
commit 0ea832805290e9ee25d53f14b918dea86e95009a
Author: Stefan <stefan-guix@vodafonemail.de>
AuthorDate: Thu Dec 1 13:36:01 2022 -0500
gnu: raspberry-pi: New make-raspi-bcm28-dtbs procedure.
* gnu/packages/raspberry-pi.scm (make-raspi-bcm28-dtbs): New procedure.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/raspberry-pi.scm | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/raspberry-pi.scm b/gnu/packages/raspberry-pi.scm
index d4b183981b..18a041b6af 100644
--- a/gnu/packages/raspberry-pi.scm
+++ b/gnu/packages/raspberry-pi.scm
@@ -30,6 +30,7 @@
#:use-module (gnu packages file)
#:use-module (gnu packages gcc)
#:use-module (gnu packages linux)
+ #:use-module (guix build-system copy)
#:use-module (guix build-system gnu)
#:use-module (guix download)
#:use-module (guix git-download)
@@ -43,7 +44,8 @@
#:use-module (srfi srfi-2)
#:use-module (srfi srfi-26)
#:use-module (ice-9 match)
- #:export (raspi-config-file
+ #:export (make-raspi-bcm28-dtbs
+ raspi-config-file
raspi-custom-txt))
(define-public bcm2835
@@ -293,6 +295,27 @@ CONTENT can be a list of strings, which are concatenated
with a newline
character. Alternatively CONTENT can be a string with the full file content."
(raspi-config-file "custom.txt" content))
+(define (make-raspi-bcm28-dtbs linux)
+ "Make a package with the device-tree files for Raspberry Pi models from the
+kernel LINUX."
+ (package
+ (inherit linux)
+ (name "raspi-bcm28-dtbs")
+ (source #f)
+ (build-system copy-build-system)
+ (arguments
+ #~(list
+ #:phases #~(modify-phases %standard-phases (delete 'unpack))
+ #:install-plan
+ (list (list (search-input-directory %build-inputs
+ "lib/dtbs/broadcom/")
+ "." #:include-regexp '("/bcm....-rpi.*\\.dtb")))))
+ (inputs (list linux))
+ (synopsis "Device-tree files for a Raspberry Pi")
+ (description
+ (format #f "The device-tree files for Raspberry Pi models from ~a."
+ (package-name linux)))))
+
(define (make-raspi-defconfig arch defconfig sha256-as-base32)
"Make for the architecture ARCH a file-like object from the DEFCONFIG file
with the hash SHA256-AS-BASE32. This object can be used as the #:defconfig
- branch master updated (1a63aea943 -> c7793b82ef), guix-commits, 2022/12/01
- 02/07: gnu: bootloader: Add U-Boot packages for Raspberry Pi models., guix-commits, 2022/12/01
- 05/07: gnu: raspberry-pi: Add helpers for config.txt file generation., guix-commits, 2022/12/01
- 01/07: gnu: bootloader: Rework chaining, add grub-efi-netboot-removable-bootloader., guix-commits, 2022/12/01
- 03/07: gnu: linux: Add a 'customize-linux' procedure., guix-commits, 2022/12/01
- 04/07: gnu: raspberry-pi: Add defconfig objects to build customized Linux kernels., guix-commits, 2022/12/01
- 06/07: gnu: raspberry-pi: New make-raspi-bcm28-dtbs procedure.,
guix-commits <=
- 07/07: gnu: raspberry-pi: Add a bootloader-chain for the Raspberry Pi and os examples., guix-commits, 2022/12/01