[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32/41: gnu: u-boot-sifive-unmatched: Build with opensbi.
From: |
guix-commits |
Subject: |
32/41: gnu: u-boot-sifive-unmatched: Build with opensbi. |
Date: |
Thu, 9 Sep 2021 08:39:38 -0400 (EDT) |
efraim pushed a commit to branch wip-riscv
in repository guix.
commit af5cc160700a86147237e76fe6d53f109d8f796f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Aug 31 10:31:35 2021 +0300
gnu: u-boot-sifive-unmatched: Build with opensbi.
* gnu/packages/bootloaders.scm (u-boot-sifive-unmatched)[arguments]: Add
phase to set location of opensbi firmware.
[inputs]: Add opensbi-firmware-fu540.
---
gnu/packages/bootloaders.scm | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 8708bc6..f5b2d44 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -898,7 +898,21 @@ to Novena upstream, does not load u-boot.img from the
first partition.")
(make-u-boot-package "sifive_unleashed" "riscv64-linux-gnu"))
(define-public u-boot-sifive-unmatched
- (make-u-boot-package "sifive_unmatched" "riscv64-linux-gnu"))
+ (let ((base (make-u-boot-package "sifive_unmatched" "riscv64-linux-gnu")))
+ (package
+ (inherit base)
+ (arguments
+ (substitute-keyword-arguments (package-arguments base)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'set-environment
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((opensbi (string-append (assoc-ref inputs "firmware")
+ "/fw_dynamic.bin")))
+ (setenv "OPENSBI" opensbi))))))))
+ (inputs
+ `(("firmware" ,opensbi-sifive-fu540)
+ ,@(package-inputs base))))))
(define-public u-boot-rock64-rk3328
(let ((base (make-u-boot-package "rock64-rk3328" "aarch64-linux-gnu")))
- 18/41: gnu: texlive-bin: Fix building on riscv64-linux., (continued)
- 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, 2021/09/09
- 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 <=
- 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