mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-18 08:59:41 +01:00
e5ea582133
Fix for https://github.com/NixOS/nixpkgs/issues/235179 Update Microchip uboot version to linux4microchip+fpga-2023.06 Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
35 lines
967 B
Nix
35 lines
967 B
Nix
{
|
|
pkgs, targetBoard, ...
|
|
}:
|
|
|
|
with pkgs; let
|
|
payload-generator = pkgs.callPackage ./hss-payload-generator.nix {};
|
|
payload_config = ./uboot.yaml;
|
|
in
|
|
buildUBoot rec {
|
|
pname = "uboot";
|
|
version = "linux4microchip+fpga-2023.06";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "polarfire-soc";
|
|
repo = "u-boot";
|
|
rev = "7e19f9dff788025403ac6a34d9acf8736eef32ff";
|
|
sha256 = "sha256-1qmifjjNxPOUWRgZdQk6Ld5KGQk/PypSRK/ILPSsTLs";
|
|
};
|
|
|
|
extraMakeFlags = [
|
|
"OPENSBI=${opensbi}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin"
|
|
];
|
|
|
|
patches = [
|
|
./patches/0001-Boot-environment-for-Microchip-Iciclle-Kit.patch
|
|
./patches/0002-Riscv-Fix-build-against-binutils-2.38.patch
|
|
];
|
|
defconfig = "${targetBoard}_defconfig";
|
|
enableParallelBuilding = true;
|
|
extraMeta.platforms = ["riscv64-linux"];
|
|
postBuild = ''
|
|
${payload-generator}/hss-payload-generator -c ${payload_config} payload.bin
|
|
'';
|
|
filesToInstall = [ "payload.bin" ];
|
|
}
|