nixos-hardware/starfive/visionfive/v2/linux-6.5.nix

31 lines
912 B
Nix
Raw Normal View History

{ lib, callPackage, linuxPackagesFor, kernelPatches, ... }:
2023-04-16 20:43:32 +00:00
let
modDirVersion = "6.5.0-rc1";
2023-04-16 20:43:32 +00:00
linuxPkg = { lib, fetchFromGitHub, buildLinux, ... }@args:
buildLinux (args // {
version = "${modDirVersion}-starfive-visionfive2";
src = fetchFromGitHub {
owner = "starfive-tech";
repo = "linux";
rev = "64a6c57ec372c44d0f25416c9614657e274fccff";
hash = "sha256-ZOCCj/VyUZa36+q6sUnE+qA0FcNCFnQjIUils0hBb28=";
2023-04-16 20:43:32 +00:00
};
inherit modDirVersion;
kernelPatches = [{
name = "verisilicon";
patch = ./verisilicon.patch;
}] ++ kernelPatches;
2023-04-16 20:43:32 +00:00
structuredExtraConfig = with lib.kernel; {
PINCTRL_STARFIVE_JH7110_SYS = yes;
SERIAL_8250_DW = yes;
};
extraMeta.branch = "JH7110_VisionFive2_upstream";
} // (args.argsOverride or { }));
in lib.recurseIntoAttrs (linuxPackagesFor (callPackage linuxPkg { }))