[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/26: gnu: bootloader: Add u-boot-sifive-unmatched-bootloader.
From: |
guix-commits |
Subject: |
02/26: gnu: bootloader: Add u-boot-sifive-unmatched-bootloader. |
Date: |
Wed, 14 Jun 2023 07:58:52 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 39250fc6229d60b7ae397749caf1e4c99e49b419
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun May 28 10:57:35 2023 +0300
gnu: bootloader: Add u-boot-sifive-unmatched-bootloader.
* gnu/bootloader/u-boot.scm (install-sifive-unmatched-u-boot,
u-boot-sifive-unmatched-bootloader): New variables.
---
gnu/bootloader/u-boot.scm | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm
index 65d7923465..712db15b02 100644
--- a/gnu/bootloader/u-boot.scm
+++ b/gnu/bootloader/u-boot.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2023 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -43,6 +44,7 @@
u-boot-puma-rk3399-bootloader
u-boot-rock64-rk3328-bootloader
u-boot-rockpro64-rk3399-bootloader
+ u-boot-sifive-unmatched-bootloader
u-boot-ts7970-q-2g-1000mhz-c-bootloader
u-boot-wandboard-bootloader))
@@ -135,6 +137,15 @@
(install-dir (string-append mount-point "/boot")))
(install-file u-boot.imx install-dir))))
+(define install-sifive-unmatched-u-boot
+ #~(lambda (bootloader root-index image)
+ (let ((spl (string-append bootloader "/libexec/spl/u-boot-spl.bin"))
+ (u-boot (string-append bootloader "/libexec/u-boot.itb")))
+ (write-file-on-device spl (stat:size (stat spl))
+ image (* 34 512))
+ (write-file-on-device u-boot (stat:size (stat u-boot))
+ image (* 2082 512)))))
+
;;;
@@ -273,3 +284,9 @@
(package u-boot-ts7970-q-2g-1000mhz-c)
(installer install-u-boot-ts7970-q-2g-1000mhz-c-u-boot)
(disk-image-installer #f)))
+
+(define u-boot-sifive-unmatched-bootloader
+ (bootloader
+ (inherit u-boot-bootloader)
+ (package u-boot-sifive-unmatched)
+ (disk-image-installer install-sifive-unmatched-u-boot)))
- branch master updated (59e27b23ed -> 9edf093e58), guix-commits, 2023/06/14
- 03/26: gnu: image: Add support for unformatted partitions., guix-commits, 2023/06/14
- 02/26: gnu: bootloader: Add u-boot-sifive-unmatched-bootloader.,
guix-commits <=
- 06/26: gnu: Add python-pysynphot., guix-commits, 2023/06/14
- 04/26: system: images: Add unmatched module., guix-commits, 2023/06/14
- 09/26: gnu: Add python-stsci-image., guix-commits, 2023/06/14
- 05/26: gnu: glibc-2.33: Fix building for riscv64-linux., guix-commits, 2023/06/14
- 10/26: gnu: Add python-stsci-imagestats., guix-commits, 2023/06/14
- 12/26: gnu: Add python-tweakwcs., guix-commits, 2023/06/14
- 15/26: gnu: Add python-parsley., guix-commits, 2023/06/14
- 16/26: gnu: Add python-crds., guix-commits, 2023/06/14
- 22/26: gnu: Add python-stcal., guix-commits, 2023/06/14
- 01/26: gnu: opencv: Fix building on riscv64-linux., guix-commits, 2023/06/14