mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-20 16:49:44 +01:00
starfive visionfive2: use nixpkgs default u-boot version
This commit is contained in:
parent
7e3a3f3170
commit
1bcf716420
1 changed files with 2 additions and 22 deletions
|
@ -1,29 +1,9 @@
|
||||||
{ lib
|
{ buildUBoot
|
||||||
, fetchFromGitHub
|
|
||||||
, buildUBoot
|
|
||||||
, buildPackages
|
|
||||||
, opensbi
|
, opensbi
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildUBoot rec {
|
buildUBoot {
|
||||||
version = "2024.01";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "u-boot";
|
|
||||||
repo = "u-boot";
|
|
||||||
rev = "refs/tags/v${version}";
|
|
||||||
hash = "sha256-0Da7Czy9cpQ+D5EICc3/QSZhAdCBsmeMvBgykYhAQFw=";
|
|
||||||
};
|
|
||||||
|
|
||||||
# workaround for https://github.com/NixOS/nixpkgs/pull/146634
|
|
||||||
# uboot: only apply raspberry pi patches to raspberry pi builds
|
|
||||||
patches = [ ];
|
|
||||||
|
|
||||||
extraMakeFlags = [
|
extraMakeFlags = [
|
||||||
# workaround for https://github.com/NixOS/nixpkgs/pull/277997
|
|
||||||
# buildUBoot: specify absolute path of dtc, fix building u-boot 2023.10+
|
|
||||||
"DTC=${lib.getExe buildPackages.dtc}"
|
|
||||||
|
|
||||||
"OPENSBI=${opensbi}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin"
|
"OPENSBI=${opensbi}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue