[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
40/41: gnu: Add u-boot-sifive-unmatched-bootloader.
From: |
guix-commits |
Subject: |
40/41: gnu: Add u-boot-sifive-unmatched-bootloader. |
Date: |
Thu, 9 Sep 2021 08:39:40 -0400 (EDT) |
efraim pushed a commit to branch wip-riscv
in repository guix.
commit 2a6c2566f27f314a47d5ad756b099f24c7a6c596
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sat Sep 4 21:38:57 2021 +0300
gnu: Add u-boot-sifive-unmatched-bootloader.
* gnu/bootloader/u-boot.scm (u-boot-sifive-unmatched-bootloader): New
variable.
---
gnu/bootloader/u-boot.scm | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm
index 6cad33b..ad0003e 100644
--- a/gnu/bootloader/u-boot.scm
+++ b/gnu/bootloader/u-boot.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2017, 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -42,7 +43,8 @@
u-boot-puma-rk3399-bootloader
u-boot-rock64-rk3328-bootloader
u-boot-rockpro64-rk3399-bootloader
- u-boot-wandboard-bootloader))
+ u-boot-wandboard-bootloader
+ u-boot-sifive-unmatched-bootloader))
(define install-u-boot
#~(lambda (bootloader root-index image)
@@ -127,6 +129,16 @@
(define install-pinebook-pro-rk3399-u-boot install-rockpro64-rk3399-u-boot)
+(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")))
+ ;;
https://source.denx.de/u-boot/u-boot/-/blob/master/doc/board/sifive/unmatched.rst
+ (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)))))
+
;;;
@@ -255,3 +267,9 @@
(inherit u-boot-bootloader)
(package u-boot-pinebook-pro-rk3399)
(disk-image-installer install-pinebook-pro-rk3399-u-boot)))
+
+(define u-boot-sifive-unmatched-bootloader
+ (bootloader
+ (inherit u-boot-bootloader)
+ (package u-boot-sifive-unmatched)
+ (disk-image-installer install-sifive-unmatched-u-boot)))
- 35/41: gnu: make-opensbi-package: Fix native building., (continued)
- 35/41: gnu: make-opensbi-package: Fix native building., guix-commits, 2021/09/09
- 05/41: gnu: guile: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 07/41: gnu: bdb: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 12/41: gnu: openblas: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 16/41: gnu: openblas-ilp64: Add riscv64-linux as a supported architecture., guix-commits, 2021/09/09
- 18/41: gnu: texlive-bin: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 23/41: gnu: Use libunwind-next for riscv64-linux., guix-commits, 2021/09/09
- 27/41: gnu: mozjs-60: Add support for riscv64-linux., guix-commits, 2021/09/09
- 37/41: gnu: isc-dhcp: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 38/41: build-system/meson: Fix cross-building to riscv64-linux., guix-commits, 2021/09/09
- 40/41: gnu: Add u-boot-sifive-unmatched-bootloader.,
guix-commits <=
- 41/41: system: Add riscv64 support., guix-commits, 2021/09/09
- 10/41: gnu: openssl: Fix build on riscv64-linux., guix-commits, 2021/09/09
- 22/41: gnu: Add libunwind-next., guix-commits, 2021/09/09
- 31/41: gnu: make-opensbi-package: Adjust installed files., guix-commits, 2021/09/09
- 32/41: gnu: u-boot-sifive-unmatched: Build with opensbi., guix-commits, 2021/09/09
- 39/41: gnu: gtk+: Remove some more failing tests., guix-commits, 2021/09/09
- 29/41: gnu: nss: Adjust make-flags for riscv64-linux., guix-commits, 2021/09/09
- 33/41: gnu: dtc: Build without valgrind on riscv64-linux., guix-commits, 2021/09/09
- 26/41: gnu: qemu: Skip some tests on riscv64-linux., guix-commits, 2021/09/09
- 34/41: gnu: php: Skip tests failing on riscv64-linux., guix-commits, 2021/09/09