starfive visionfive2: use ubootVisionFive2

This commit is contained in:
Jonas Heinrich 2026-01-09 23:12:49 +01:00
parent 40b1a28dce
commit c9fd1cfdd4
2 changed files with 1 additions and 18 deletions

View file

@ -46,7 +46,7 @@ in
} }
); );
uboot = (pkgs.callPackage ./uboot.nix { inherit (config.system.build) opensbi; }).overrideAttrs ( uboot = (pkgs.ubootVisionFive2.override { inherit (config.system.build) opensbi; }).overrideAttrs (
_f: p: { _f: p: {
src = if cfg.uboot.src != null then cfg.uboot.src else p.src; src = if cfg.uboot.src != null then cfg.uboot.src else p.src;
patches = if cfg.uboot.patches != null then cfg.uboot.patches else (p.patches or [ ]); patches = if cfg.uboot.patches != null then cfg.uboot.patches else (p.patches or [ ]);

View file

@ -1,17 +0,0 @@
{
buildUBoot,
opensbi,
}:
buildUBoot {
extraMakeFlags = [
"OPENSBI=${opensbi}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin"
];
defconfig = "starfive_visionfive2_defconfig";
filesToInstall = [
"spl/u-boot-spl.bin.normal.out"
"u-boot.itb"
];
}