From c9fd1cfdd472834dc19a2f145bb722bb546fcb23 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Fri, 9 Jan 2026 23:12:49 +0100 Subject: [PATCH] starfive visionfive2: use ubootVisionFive2 --- starfive/visionfive/v2/firmware.nix | 2 +- starfive/visionfive/v2/uboot.nix | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 starfive/visionfive/v2/uboot.nix diff --git a/starfive/visionfive/v2/firmware.nix b/starfive/visionfive/v2/firmware.nix index 5436009..4072734 100644 --- a/starfive/visionfive/v2/firmware.nix +++ b/starfive/visionfive/v2/firmware.nix @@ -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: { 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 [ ]); diff --git a/starfive/visionfive/v2/uboot.nix b/starfive/visionfive/v2/uboot.nix deleted file mode 100644 index 6fe62a7..0000000 --- a/starfive/visionfive/v2/uboot.nix +++ /dev/null @@ -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" - ]; -}