[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32/42: gnu: u-boot-sifive-unmatched: Build with opensbi.
From: |
guix-commits |
Subject: |
32/42: gnu: u-boot-sifive-unmatched: Build with opensbi. |
Date: |
Fri, 8 Oct 2021 04:20:22 -0400 (EDT) |
efraim pushed a commit to branch wip-riscv
in repository guix.
commit 31561d8d19abb23ef2cef6bfe870031ca1fe7187
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")))
- 20/42: gnu: lapack: Fix building on riscv64-linux., (continued)
- 20/42: gnu: lapack: Fix building on riscv64-linux., guix-commits, 2021/10/08
- 22/42: gnu: Add libunwind-next., guix-commits, 2021/10/08
- 24/42: gnu: libaio: Fix test suite on riscv64-linux., guix-commits, 2021/10/08
- 29/42: gnu: nss: Adjust make-flags for riscv64-linux., guix-commits, 2021/10/08
- 25/42: gnu: libfaketime: Adjust flags on riscv64-linux., guix-commits, 2021/10/08
- 28/42: gnu: webrtc-audio-processing: Fix riscv64 detection., guix-commits, 2021/10/08
- 30/42: system: system-linux-image-file-name: Set kernel name for riscv64-linux., guix-commits, 2021/10/08
- 35/42: gnu: make-opensbi-package: Fix native building., guix-commits, 2021/10/08
- 38/42: build-system/meson: Fix cross-building to riscv64-linux., guix-commits, 2021/10/08
- 37/42: gnu: isc-dhcp: Fix building on riscv64-linux., guix-commits, 2021/10/08
- 32/42: gnu: u-boot-sifive-unmatched: Build with opensbi.,
guix-commits <=
- 36/42: gnu: postgresql: Fix building on riscv64-linux., guix-commits, 2021/10/08
- 39/42: gnu: gtk+: Remove some more failing tests., guix-commits, 2021/10/08
- 41/42: system: Add riscv64 support., guix-commits, 2021/10/08
- 40/42: gnu: Add u-boot-sifive-unmatched-bootloader., guix-commits, 2021/10/08
- 33/42: gnu: dtc: Build without valgrind on riscv64-linux., guix-commits, 2021/10/08
- 34/42: gnu: php: Skip tests failing on riscv64-linux., guix-commits, 2021/10/08
- 31/42: gnu: make-opensbi-package: Adjust installed files., guix-commits, 2021/10/08
- 42/42: gnu: libx264: Fix building on riscv64-linux., guix-commits, 2021/10/08