[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
28/38: gnu: u-boot-sifive-unmatched: Build with opensbi.
From: |
guix-commits |
Subject: |
28/38: gnu: u-boot-sifive-unmatched: Build with opensbi. |
Date: |
Sun, 10 Oct 2021 09:28:04 -0400 (EDT) |
efraim pushed a commit to branch wip-riscv
in repository guix.
commit e148a093da2af4f60f3517b374777c56e20f3d3f
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 91c5830..3f6a470 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -904,7 +904,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")))
- 21/38: gnu: libfaketime: Adjust flags on riscv64-linux., (continued)
- 21/38: gnu: libfaketime: Adjust flags on riscv64-linux., guix-commits, 2021/10/10
- 08/38: gnu: openblas: Fix building on riscv64-linux., guix-commits, 2021/10/10
- 09/38: gnu: mesa: Add support for riscv64-linux., guix-commits, 2021/10/10
- 16/38: gnu: lapack: Fix building on riscv64-linux., guix-commits, 2021/10/10
- 17/38: gnu: texlive-latex-base: Skip JIT formats on riscv64-linux., guix-commits, 2021/10/10
- 27/38: gnu: make-opensbi-package: Adjust installed files., guix-commits, 2021/10/10
- 32/38: gnu: postgresql: Fix building on riscv64-linux., guix-commits, 2021/10/10
- 24/38: gnu: webrtc-audio-processing: Fix riscv64 detection., guix-commits, 2021/10/10
- 20/38: gnu: libaio: Fix test suite on riscv64-linux., guix-commits, 2021/10/10
- 26/38: system: system-linux-image-file-name: Set kernel name for riscv64-linux., guix-commits, 2021/10/10
- 28/38: gnu: u-boot-sifive-unmatched: Build with opensbi.,
guix-commits <=
- 29/38: gnu: dtc: Build without valgrind on riscv64-linux., guix-commits, 2021/10/10
- 34/38: build-system/meson: Fix cross-building to riscv64-linux., guix-commits, 2021/10/10
- 35/38: gnu: gtk+: Remove some more failing tests., guix-commits, 2021/10/10
- 19/38: gnu: Use libunwind-next for riscv64-linux., guix-commits, 2021/10/10
- 23/38: gnu: mozjs-60: Add support for riscv64-linux., guix-commits, 2021/10/10
- 25/38: gnu: nss: Adjust make-flags for riscv64-linux., guix-commits, 2021/10/10
- 30/38: gnu: php: Skip tests failing on riscv64-linux., guix-commits, 2021/10/10
- 31/38: gnu: make-opensbi-package: Fix native building., guix-commits, 2021/10/10
- 33/38: gnu: isc-dhcp: Fix building on riscv64-linux., guix-commits, 2021/10/10
- 37/38: system: Add riscv64 support., guix-commits, 2021/10/10