[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
28/37: gnu: u-boot-sifive-unmatched: Build with opensbi.
From: |
guix-commits |
Subject: |
28/37: gnu: u-boot-sifive-unmatched: Build with opensbi. |
Date: |
Thu, 14 Oct 2021 14:41:27 -0400 (EDT) |
efraim pushed a commit to branch wip-riscv
in repository guix.
commit 04b082b21f033de06209f1a1f7bda6f700ba10a4
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 54d1f0a..4a6a462 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -905,7 +905,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")))
- 05/37: gnu: elfutils: Fix building on riscv64-linux., (continued)
- 05/37: gnu: elfutils: Fix building on riscv64-linux., guix-commits, 2021/10/14
- 15/37: gnu: lz4: Build on riscv64-linux without valgrind., guix-commits, 2021/10/14
- 16/37: gnu: lapack: Fix building on riscv64-linux., guix-commits, 2021/10/14
- 01/37: gnu: bootstrap: Add support for riscv64-linux., guix-commits, 2021/10/14
- 06/37: gnu: pcre: Fix building on riscv64-linux., guix-commits, 2021/10/14
- 11/37: gnu: icu4c: Skip tests on riscv64-linux., guix-commits, 2021/10/14
- 03/37: gnu: %boot3-inputs: Add missing input., guix-commits, 2021/10/14
- 09/37: gnu: mesa: Add support for riscv64-linux., guix-commits, 2021/10/14
- 08/37: gnu: openblas: Fix building on riscv64-linux., guix-commits, 2021/10/14
- 23/37: gnu: mozjs-60: Add support for riscv64-linux., guix-commits, 2021/10/14
- 28/37: gnu: u-boot-sifive-unmatched: Build with opensbi.,
guix-commits <=
- 12/37: gnu: openblas-ilp64: Add riscv64-linux as a supported architecture., guix-commits, 2021/10/14
- 14/37: gnu: texlive-bin: Fix building on riscv64-linux., guix-commits, 2021/10/14
- 21/37: gnu: libfaketime: Adjust flags on riscv64-linux., guix-commits, 2021/10/14
- 34/37: build-system/meson: Fix cross-building to riscv64-linux., guix-commits, 2021/10/14
- 26/37: system: system-linux-image-file-name: Set kernel name for riscv64-linux., guix-commits, 2021/10/14
- 13/37: gnu: openlibm: Remove riscv64-linux from supported systems., guix-commits, 2021/10/14
- 07/37: gnu: libtool: Fix test suite on riscv64-linux., guix-commits, 2021/10/14
- 17/37: gnu: texlive-latex-base: Skip JIT formats on riscv64-linux., guix-commits, 2021/10/14
- 20/37: gnu: libaio: Fix test suite on riscv64-linux., guix-commits, 2021/10/14
- 22/37: gnu: qemu: Skip some tests on riscv64-linux., guix-commits, 2021/10/14