[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70892] [PATCH 4/6] gnu: Add u-boot-starfive-visionfive2.
From: |
Zheng Junjie |
Subject: |
[bug#70892] [PATCH 4/6] gnu: Add u-boot-starfive-visionfive2. |
Date: |
Sun, 12 May 2024 19:09:27 +0800 |
* gnu/packages/bootloaders.scm (u-boot-starfive-visionfive2): New variable.
Change-Id: I2a7d2275b1a0f4253ffc3152c892687aae11a471
---
gnu/packages/bootloaders.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index cfe8046731..1d52e961fd 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -19,6 +19,7 @@
;;; Copyright ?? 2021 Stefan <stefan-guix@vodafonemail.de>
;;; Copyright ?? 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright ?? 2023 Herman Rimm <herman@rimm.ee>
+;;; Copyright ?? 2024 Zheng Junjie <873216071@qq.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1343,6 +1344,36 @@ (define-public u-boot-sifive-unmatched
(modify-inputs (package-inputs base)
(append opensbi-generic))))))
+(define-public u-boot-starfive-visionfive2
+ (let ((opensbi (package
+ (inherit opensbi-generic)
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments opensbi-generic)
+ ((#:make-flags flags)
+ `(cons* "FW_TEXT_START=0x40000000"
+ "FW_OPTIONS=0"
+ ,flags))))))
+ (base (make-u-boot-package "starfive_visionfive2"
"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)
+ (setenv "OPENSBI" (search-input-file inputs
+ "fw_dynamic.bin"))))
+ (add-after 'install 'install-u-boot-spl.bin.normal.out
+ (lambda _
+ (install-file "spl/u-boot-spl.bin.normal.out"
+ (string-append #$output
+ "/libexec/spl"))))))))
+ (inputs
+ (modify-inputs (package-inputs base)
+ (append opensbi))))))
+
(define-public u-boot-rock64-rk3328
(let ((base (make-u-boot-package "rock64-rk3328" "aarch64-linux-gnu")))
(package
--
2.41.0
- [bug#70892] [PATCH 0/6] Add visionfive2 support., Zheng Junjie, 2024/05/12
- [bug#70892] [PATCH 3/6] gnu: shepherd-0.10: When target riscv64, use guile-fibers-1.1., Zheng Junjie, 2024/05/12
- [bug#70892] [PATCH 5/6] bootloader: Add u-boot-starfive-visionfive2-bootloader., Zheng Junjie, 2024/05/12
- [bug#70892] [PATCH 1/6] gnu: linux-libre-6.8: add riscv config., Zheng Junjie, 2024/05/12
- [bug#70892] [PATCH 2/6] image: raise error when use both grub-efi* bootloader and not gpt image., Zheng Junjie, 2024/05/12
- [bug#70892] [PATCH 4/6] gnu: Add u-boot-starfive-visionfive2.,
Zheng Junjie <=
- [bug#70892] [PATCH 6/6] system: images: Add visionfive2 module., Zheng Junjie, 2024/05/12
- [bug#70892] [PATCH 0/6] Add visionfive2 support., Vagrant Cascadian, 2024/05/15
- [bug#70892] [PATCH v2 0/7] Add visionfive2 support., Zheng Junjie, 2024/05/18