diff --git a/starfive/visionfive/v2/uboot.nix b/starfive/visionfive/v2/uboot.nix index 9c0eb7a..ef92cce 100644 --- a/starfive/visionfive/v2/uboot.nix +++ b/starfive/visionfive/v2/uboot.nix @@ -1,29 +1,9 @@ -{ lib -, fetchFromGitHub -, buildUBoot -, buildPackages +{ buildUBoot , opensbi }: -buildUBoot rec { - 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 = [ ]; - +buildUBoot { 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" ];